aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/testsuite.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-06-09 20:12:03 -0400
committerScott González <scott.gonzalez@gmail.com>2012-06-09 20:12:03 -0400
commitaa1e8b5e6ce0b5012deb98dd30a93c89491dfa3f (patch)
tree4dbb3bb2b79f7516bf9e35d0b676b0c9166f2b4c /tests/unit/testsuite.js
parentdb5f95fcdf37dbf540bb7ac88a4e2229cceda049 (diff)
downloadjquery-ui-aa1e8b5e6ce0b5012deb98dd30a93c89491dfa3f.tar.gz
jquery-ui-aa1e8b5e6ce0b5012deb98dd30a93c89491dfa3f.zip
Tests: Check .data() and event bindings in domEqual().
Diffstat (limited to 'tests/unit/testsuite.js')
-rw-r--r--tests/unit/testsuite.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js
index 3c8ec04c4..59bda7df8 100644
--- a/tests/unit/testsuite.js
+++ b/tests/unit/testsuite.js
@@ -188,6 +188,9 @@ window.domEqual = function( selector, modifier, message ) {
var value = elem.attr( attr );
result[ attr ] = value !== undefined ? value : "";
});
+ result.events = $._data( elem[ 0 ], "events" );
+ result.data = $.extend( {}, elem.data() );
+ delete result.data[ $.expando ];
children = elem.children();
if ( children.length ) {
result.children = elem.children().map(function( ind ) {