mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Landing pull request 530. Fixes coniditional path for tr, td defaultDisplay() calls. Fixes #10416.
More Details: - https://github.com/jquery/jquery/pull/530 - http://bugs.jquery.com/ticket/10416
This commit is contained in:
15
test/unit/effects.js
vendored
15
test/unit/effects.js
vendored
@@ -188,6 +188,21 @@ test("show() resolves correct default display #8099", function() {
|
||||
|
||||
});
|
||||
|
||||
test("defaultDisplay() correctly determines tr, td display #10416", function() {
|
||||
|
||||
expect( 1 );
|
||||
var tr = "<tr></tr>",
|
||||
td = "<td>new</td>";
|
||||
|
||||
jQuery( tr ).append( td ).appendTo( "#table" );
|
||||
jQuery( tr ).hide().append( td ).appendTo( "#table" ).show();
|
||||
|
||||
equal(
|
||||
jQuery( "#table" ).find( "tr" ).eq( 1 ).css( "display" ),
|
||||
jQuery( "#table" ).find( "tr" ).eq( 0 ).css( "display" ),
|
||||
"defaultDisplay() returns correct tr display values"
|
||||
);
|
||||
});
|
||||
|
||||
test("animate(Hash, Object, Function)", function() {
|
||||
expect(1);
|
||||
|
||||
Reference in New Issue
Block a user