Skip to content

Commit

Permalink
Magic fixing for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Jan 31, 2013
1 parent f3ce0e6 commit d3a2ef7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit/css.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -857,7 +857,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" });
Expand All @@ -873,11 +873,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>");
Expand Down

0 comments on commit d3a2ef7

Please sign in to comment.