diff options
Diffstat (limited to 'test/unit/css.js')
-rw-r--r-- | test/unit/css.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index d968775e0..208353777 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -547,14 +547,17 @@ test( "show() resolves correct default display, detached nodes (#10006)", functi div = jQuery("<div>"); div.show().appendTo("#qunit-fixture"); ok( !!div.get( 0 ).style.display, "Make sure not hidden div has a inline style." ); + div.remove(); div = jQuery( document.createElement("div") ); div.show().appendTo("#qunit-fixture"); equal( div.css("display"), "block", "Make sure a pre-created element has default display." ); + div.remove(); div = jQuery("<div style='display: inline'/>"); div.show().appendTo("#qunit-fixture"); equal( div.css("display"), "inline", "Make sure that element has same display when it was created." ); + div.remove(); }); test("toggle()", function() { |