From 5e89481ab851e28380f10675f6620345150c3007 Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 5 Aug 2009 13:30:55 +0000 Subject: Added zIndex method. Fixes #4709 - Add zIndex setter/getter method. --- tests/unit/core/core.html | 5 +++++ tests/unit/core/core.js | 9 +++++++++ 2 files changed, 14 insertions(+) (limited to 'tests') diff --git a/tests/unit/core/core.html b/tests/unit/core/core.html index f6c3bccd8..71d06b29a 100644 --- a/tests/unit/core/core.html +++ b/tests/unit/core/core.html @@ -93,6 +93,11 @@
+ +
+
+
+
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); -- cgit v1.2.3