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/testsuite.js | |
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/testsuite.js')
-rw-r--r-- | tests/unit/testsuite.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js index 18337fe4e..42fdf4f9e 100644 --- a/tests/unit/testsuite.js +++ b/tests/unit/testsuite.js @@ -212,7 +212,7 @@ window.domEqual = function( selector, modifier, message ) { "tabIndex", "title" ]; -/* + function getElementStyles( elem ) { var key, len, style = elem.ownerDocument.defaultView ? @@ -239,7 +239,7 @@ window.domEqual = function( selector, modifier, message ) { return styles; } -*/ + function extract( elem ) { if ( !elem || !elem.length ) { QUnit.push( false, actual, expected, @@ -257,8 +257,7 @@ window.domEqual = function( selector, modifier, message ) { var value = elem.attr( attr ); result[ attr ] = value !== undefined ? value : ""; }); - // TODO: Enable when we can figure out what's happening with accordion - //result.style = getElementStyles( elem[ 0 ] ); + result.style = getElementStyles( elem[ 0 ] ); result.events = $._data( elem[ 0 ], "events" ); result.data = $.extend( {}, elem.data() ); delete result.data[ $.expando ]; |