diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-06-09 20:12:03 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-06-09 20:12:03 -0400 |
commit | aa1e8b5e6ce0b5012deb98dd30a93c89491dfa3f (patch) | |
tree | 4dbb3bb2b79f7516bf9e35d0b676b0c9166f2b4c /tests | |
parent | db5f95fcdf37dbf540bb7ac88a4e2229cceda049 (diff) | |
download | jquery-ui-aa1e8b5e6ce0b5012deb98dd30a93c89491dfa3f.tar.gz jquery-ui-aa1e8b5e6ce0b5012deb98dd30a93c89491dfa3f.zip |
Tests: Check .data() and event bindings in domEqual().
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/testsuite.js | 3 |
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 ) { |