diff options
Diffstat (limited to 'tests/unit/core/core.js')
-rw-r--r-- | tests/unit/core/core.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/core/core.js b/tests/unit/core/core.js index 96a197aa5..f26257053 100644 --- a/tests/unit/core/core.js +++ b/tests/unit/core/core.js @@ -48,4 +48,13 @@ test('focus', function() { other.focus(); }); +test('zIndex', function() { + var el = $('#zIndexAutoWithParent'); + equals(el.zIndex(), 100, 'zIndex traverses up to find value'); + equals(el.zIndex(200), el, 'zIndex setter is chainable'); + equals(el.zIndex(), 200, 'zIndex setter changed zIndex'); + + equals($('#zIndexAutoNoParent').zIndex(), 0, 'zIndex never explicitly set in hierarchy'); +}); + })(jQuery); |