diff options
author | jeresig <jeresig@gmail.com> | 2009-12-03 12:26:25 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-03 12:26:25 -0500 |
commit | 9d6c4d8413e678203a905ab3bc3a87415a6a70ce (patch) | |
tree | b97be34c74f181d8c26b2d7ae8a3f9d07985a08c | |
parent | 47293ebe15d7c475d432b843fa9a37800701055f (diff) | |
download | jquery-9d6c4d8413e678203a905ab3bc3a87415a6a70ce.tar.gz jquery-9d6c4d8413e678203a905ab3bc3a87415a6a70ce.zip |
Removed broken hidden/visible test.
-rw-r--r-- | test/unit/selector.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index 3332b1bbd..233d11a4b 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -380,19 +380,16 @@ test("pseudo - position", function() { }); test("pseudo - visibility", function() { - expect(13); + expect(11); t( "Is Visible", "#form input:visible", [] ); t( "Is Visible", "div:visible:not(#qunit-testrunner-toolbar):lt(2)", ["nothiddendiv", "nothiddendivchild"] ); t( "Is Hidden", "#form input:hidden", ["text1","text2","radio1","radio2","check1","check2","hidden1","hidden2","name","search"] ); t( "Is Hidden", "#main:hidden", ["main"] ); t( "Is Hidden", "#dl:hidden", ["dl"] ); - - var $div = jQuery('#nothiddendivchild'); + + var $div = jQuery('<div/>').appendTo("body"); $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', [] ); $div.width(1).height(0); t( "Is Visible", '#nothiddendivchild:visible', ['nothiddendivchild'] ); t( "Is Not Visible", '#nothiddendivchild:hidden', [] ); @@ -402,7 +399,7 @@ test("pseudo - visibility", function() { $div.width(1).height(1); t( "Is Visible", '#nothiddendivchild:visible', ['nothiddendivchild'] ); t( "Is Not Visible", '#nothiddendivchild:hidden', [] ); - $div.width('').height('').css({ fontSize: '', lineHeight: '' }); + $div.remove(); }); test("pseudo - form", function() { |