aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/testsuite.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-12-04 00:35:33 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-12-04 00:35:47 +0100
commitd687a1b10d1e176a6a8dd4420f1ea3a890640da0 (patch)
tree88c6312ce4f83a00ccc24dd6630e553abbe9ab11 /tests/unit/testsuite.js
parent8b15aaf4964490a2a84e8f9d32d86ac750e0d4a2 (diff)
downloadjquery-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/testsuite.js')
-rw-r--r--tests/unit/testsuite.js32
1 files changed, 2 insertions, 30 deletions
diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js
index 18337fe4e..808e6c6ea 100644
--- a/tests/unit/testsuite.js
+++ b/tests/unit/testsuite.js
@@ -210,36 +210,10 @@ window.domEqual = function( selector, modifier, message ) {
"nodeName",
"role",
"tabIndex",
- "title"
+ "title",
+ "style"
];
-/*
- function getElementStyles( elem ) {
- var key, len,
- style = elem.ownerDocument.defaultView ?
- elem.ownerDocument.defaultView.getComputedStyle( elem, null ) :
- elem.currentStyle,
- styles = {};
-
- if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {
- len = style.length;
- while ( len-- ) {
- key = style[ len ];
- if ( typeof style[ key ] === "string" ) {
- styles[ $.camelCase( key ) ] = style[ key ];
- }
- }
- // support: Opera, IE <9
- } else {
- for ( key in style ) {
- if ( typeof style[ key ] === "string" ) {
- styles[ key ] = style[ key ];
- }
- }
- }
- return styles;
- }
-*/
function extract( elem ) {
if ( !elem || !elem.length ) {
QUnit.push( false, actual, expected,
@@ -257,8 +231,6 @@ 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.events = $._data( elem[ 0 ], "events" );
result.data = $.extend( {}, elem.data() );
delete result.data[ $.expando ];