diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-12-04 10:03:05 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-12-04 10:03:05 -0500 |
commit | 3c2acc322782cc08e575405f8123029342e33542 (patch) | |
tree | 5914ce68730390f69105fb97e43fe5f066ee9695 /tests/unit/dialog | |
parent | 975bde542b165375c48b07e2e2f8a62d2a2230a4 (diff) | |
download | jquery-ui-3c2acc322782cc08e575405f8123029342e33542.tar.gz jquery-ui-3c2acc322782cc08e575405f8123029342e33542.zip |
Dialog: Remove width, min-height, height styles on destroy. Fixes #8119 - Dialog: Destroying a dialog leaves some styles changed.
Diffstat (limited to 'tests/unit/dialog')
-rw-r--r-- | tests/unit/dialog/dialog_methods.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/dialog/dialog_methods.js b/tests/unit/dialog/dialog_methods.js index e5275c7a4..6eeb50273 100644 --- a/tests/unit/dialog/dialog_methods.js +++ b/tests/unit/dialog/dialog_methods.js @@ -35,6 +35,11 @@ test("init", function() { test("destroy", function() { expect( 6 ); + + // Dialogs are expected to be hidden on destroy, so make sure they're hidden + // before the test + $( "#dialog1, #form-dialog" ).hide(); + domEqual( "#dialog1", function() { var dialog = $( "#dialog1" ).dialog().dialog( "destroy" ); equal( dialog.parent()[ 0 ], $( "#qunit-fixture" )[ 0 ] ); |