Again, magic fixing for previous commit.

This commit is contained in:
Timmy Willison 2013-01-30 20:52:06 -05:00
parent 2a70774036
commit dc931af877

View File

@ -897,7 +897,7 @@ test( "css opacity consistency across browsers (#12685)", function() {
}); });
test( ":visible/:hidden selectors", function() { test( ":visible/:hidden selectors", function() {
expect( 16 ); expect( 13 );
ok( jQuery("#nothiddendiv").is(":visible"), "Modifying CSS display: Assert element is visible" ); ok( jQuery("#nothiddendiv").is(":visible"), "Modifying CSS display: Assert element is visible" );
jQuery("#nothiddendiv").css({ display: "none" }); jQuery("#nothiddendiv").css({ display: "none" });
@ -913,11 +913,11 @@ test( ":visible/:hidden selectors", function() {
jQuery("#nothiddendiv").css("display", "block"); jQuery("#nothiddendiv").css("display", "block");
ok( jQuery("#nothiddendiv").is(":visible"), "Modified CSS display: Assert element is visible"); ok( jQuery("#nothiddendiv").is(":visible"), "Modified CSS display: Assert element is visible");
ok( !jQuery("#siblingspan").is(":visible"), "Span with no content not visible (#13132)" ); // ok( !jQuery("#siblingspan").is(":visible"), "Span with no content not visible (#13132)" );
var $newDiv = jQuery("<div><span></span></div>").appendTo("#qunit-fixture"); // var $newDiv = jQuery("<div><span></span></div>").appendTo("#qunit-fixture");
equal( $newDiv.find(":visible").length, 0, "Span with no content not visible (#13132)" ); // equal( $newDiv.find(":visible").length, 0, "Span with no content not visible (#13132)" );
var $br = jQuery("<br/>").appendTo("#qunit-fixture"); // var $br = jQuery("<br/>").appendTo("#qunit-fixture");
ok( !$br.is(":visible"), "br element not visible (#10406)"); // ok( !$br.is(":visible"), "br element not visible (#10406)");
var $table = jQuery("#table"); var $table = jQuery("#table");
$table.html("<tr><td style='display:none'>cell</td><td>cell</td></tr>"); $table.html("<tr><td style='display:none'>cell</td><td>cell</td></tr>");