aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/selector.js
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2009-05-04 00:19:57 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2009-05-04 00:19:57 +0000
commit31b573185b7728fa74452fbecc515c6de94640a6 (patch)
treec162294e441b64158c0dd4929620d815d5f61358 /test/unit/selector.js
parentd72b8307de97a715c8916d571278b4bc35be23a6 (diff)
downloadjquery-31b573185b7728fa74452fbecc515c6de94640a6.tar.gz
jquery-31b573185b7728fa74452fbecc515c6de94640a6.zip
fix :hidden selector that was accidentally reverted in previous commit, also fixed tests for :hidden selector in IE6
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r--test/unit/selector.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js
index 708204b6e..3e70481af 100644
--- a/test/unit/selector.js
+++ b/test/unit/selector.js
@@ -364,6 +364,7 @@ test("pseudo (:) selectors", function() {
t( "Is Hidden", "#dl:hidden", ["dl"] );
var $div = jQuery('#nothiddendivchild');
+ $div.css({ fontSize: 0, lineHeight: 0 });// IE also needs to set font-size and line-height to 0
$div.width(0).height(0);
t( "Is Hidden", '#nothiddendivchild:hidden', ['nothiddendivchild'] );
t( "Is Not Hidden", '#nothiddendivchild:visible', [] );
@@ -376,7 +377,7 @@ test("pseudo (:) selectors", function() {
$div.width(1).height(1);
t( "Is Visible", '#nothiddendivchild:visible', ['nothiddendivchild'] );
t( "Is Not Visible", '#nothiddendivchild:hidden', [] );
- $div.width('').height('');
+ $div.width('').height('').css({ fontSize: '', lineHeight: '' });
t( "Check position filtering", "div#nothiddendiv:eq(0)", ["nothiddendiv"] );
t( "Check position filtering", "div#nothiddendiv:last", ["nothiddendiv"] );