diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2011-11-21 20:33:06 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-11-21 20:45:24 -0500 |
commit | ca08d93b72d63d5c6d719f818f8f1ca401dc3cfe (patch) | |
tree | d2ab5ce67d10ebd3995cda3c95571088da890c0a | |
parent | dff11c039215d0c4b1b27d631e9c7aaf30eb792e (diff) | |
download | jquery-ca08d93b72d63d5c6d719f818f8f1ca401dc3cfe.tar.gz jquery-ca08d93b72d63d5c6d719f818f8f1ca401dc3cfe.zip |
Ensure all elements are removed from 10006 test block
-rw-r--r-- | test/unit/effects.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js index 02ddd973d..71e560993 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -197,26 +197,32 @@ test( "show() resolves correct default display, detached nodes (#10006)", functi div = jQuery("<div class='hidden'>"); div.show().appendTo("#qunit-fixture"); equal( div.css("display"), "block", "Make sure a detached, pre-hidden( through stylesheets ) div is visible." ); + div.remove(); div = jQuery("<div style='display: none'>"); div.show().appendTo("#qunit-fixture"); equal( div.css("display"), "block", "Make sure a detached, pre-hidden( through inline style ) div is visible." ); + div.remove(); span = jQuery("<span class='hidden'/>"); span.show().appendTo("#qunit-fixture"); equal( span.css("display"), "inline", "Make sure a detached, pre-hidden( through stylesheets ) span has default display." ); + span.remove(); span = jQuery("<span style='display: inline'/>"); span.show().appendTo("#qunit-fixture"); equal( span.css("display"), "inline", "Make sure a detached, pre-hidden( through inline style ) span has default display." ); + span.remove(); div = jQuery("<div><div class='hidden'></div></div>").children("div"); div.show().appendTo("#qunit-fixture"); equal( div.css("display"), "block", "Make sure a detached, pre-hidden( through stylesheets ) div inside another visible div is visible." ); + div.remove(); div = jQuery("<div><div style='display: none'></div></div>").children("div"); div.show().appendTo("#qunit-fixture"); equal( div.css("display"), "block", "Make sure a detached, pre-hidden( through inline style ) div inside another visible div is visible." ); + div.remove(); div = jQuery("div.hidden"); div.detach().show(); @@ -231,14 +237,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(); }); |