diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-12-04 00:35:33 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-12-04 00:35:47 +0100 |
commit | d687a1b10d1e176a6a8dd4420f1ea3a890640da0 (patch) | |
tree | 88c6312ce4f83a00ccc24dd6630e553abbe9ab11 /tests/unit/dialog/dialog_methods.js | |
parent | 8b15aaf4964490a2a84e8f9d32d86ac750e0d4a2 (diff) | |
download | jquery-ui-d687a1b10d1e176a6a8dd4420f1ea3a890640da0.tar.gz jquery-ui-d687a1b10d1e176a6a8dd4420f1ea3a890640da0.zip |
Dialog: Cleanup style properties on _destroy. Reenables style check in domEqual, while removing commented and unnecessary old code. Fixes #8119 - Dialog: Destroying a dialog leaves style, scrollleft, and scrolltop leftovers.
Diffstat (limited to 'tests/unit/dialog/dialog_methods.js')
-rw-r--r-- | tests/unit/dialog/dialog_methods.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/dialog/dialog_methods.js b/tests/unit/dialog/dialog_methods.js index e5275c7a4..3753144f3 100644 --- a/tests/unit/dialog/dialog_methods.js +++ b/tests/unit/dialog/dialog_methods.js @@ -35,6 +35,8 @@ test("init", function() { test("destroy", function() { expect( 6 ); + // expect dialogs to be hidden before and after + $( "#dialog1, #form-dialog" ).hide(); domEqual( "#dialog1", function() { var dialog = $( "#dialog1" ).dialog().dialog( "destroy" ); equal( dialog.parent()[ 0 ], $( "#qunit-fixture" )[ 0 ] ); |