Removed broken hidden/visible test.

This commit is contained in:
jeresig 2009-12-03 12:26:25 -05:00
parent 47293ebe15
commit 9d6c4d8413

View File

@ -380,7 +380,7 @@ test("pseudo - position", function() {
}); });
test("pseudo - visibility", function() { test("pseudo - visibility", function() {
expect(13); expect(11);
t( "Is Visible", "#form input:visible", [] ); t( "Is Visible", "#form input:visible", [] );
t( "Is Visible", "div:visible:not(#qunit-testrunner-toolbar):lt(2)", ["nothiddendiv", "nothiddendivchild"] ); t( "Is Visible", "div:visible:not(#qunit-testrunner-toolbar):lt(2)", ["nothiddendiv", "nothiddendivchild"] );
@ -388,11 +388,8 @@ test("pseudo - visibility", function() {
t( "Is Hidden", "#main:hidden", ["main"] ); t( "Is Hidden", "#main:hidden", ["main"] );
t( "Is Hidden", "#dl:hidden", ["dl"] ); 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.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); $div.width(1).height(0);
t( "Is Visible", '#nothiddendivchild:visible', ['nothiddendivchild'] ); t( "Is Visible", '#nothiddendivchild:visible', ['nothiddendivchild'] );
t( "Is Not Visible", '#nothiddendivchild:hidden', [] ); t( "Is Not Visible", '#nothiddendivchild:hidden', [] );
@ -402,7 +399,7 @@ test("pseudo - visibility", function() {
$div.width(1).height(1); $div.width(1).height(1);
t( "Is Visible", '#nothiddendivchild:visible', ['nothiddendivchild'] ); t( "Is Visible", '#nothiddendivchild:visible', ['nothiddendivchild'] );
t( "Is Not Visible", '#nothiddendivchild:hidden', [] ); t( "Is Not Visible", '#nothiddendivchild:hidden', [] );
$div.width('').height('').css({ fontSize: '', lineHeight: '' }); $div.remove();
}); });
test("pseudo - form", function() { test("pseudo - form", function() {