mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Tests: fix tests in accordance with new :visible behavior
This commit is contained in:
@@ -924,9 +924,9 @@ test( "css opacity consistency across browsers (#12685)", function() {
|
||||
});
|
||||
|
||||
test( ":visible/:hidden selectors", function() {
|
||||
expect( 18 );
|
||||
expect( 17 );
|
||||
|
||||
var $div, $br, $table, $a;
|
||||
var $div, $table, $a;
|
||||
|
||||
ok( jQuery("#nothiddendiv").is(":visible"), "Modifying CSS display: Assert element is visible" );
|
||||
jQuery("#nothiddendiv").css({ display: "none" });
|
||||
@@ -948,8 +948,10 @@ test( ":visible/:hidden selectors", function() {
|
||||
$div.css( { width: 0, height: 0, overflow: "hidden" } );
|
||||
ok( $div.is( ":visible" ), "Div with width and height of 0 is still visible (gh-2227)" );
|
||||
|
||||
$br = jQuery( "<br/>" ).appendTo( "#qunit-fixture" );
|
||||
ok( $br.is( ":visible" ), "br element is visible" );
|
||||
// Safari 6-7 and iOS 6-7 report 0 width for br elements
|
||||
// When newer browsers propagate, re-enable this test
|
||||
// $br = jQuery( "<br/>" ).appendTo( "#qunit-fixture" );
|
||||
// ok( $br.is( ":visible" ), "br element is visible" );
|
||||
|
||||
$table = jQuery("#table");
|
||||
$table.html("<tr><td style='display:none'>cell</td><td>cell</td></tr>");
|
||||
|
||||
Reference in New Issue
Block a user