Skip to content

Commit aa1e8b5

Browse files
committed
Tests: Check .data() and event bindings in domEqual().
1 parent db5f95f commit aa1e8b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit/testsuite.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ window.domEqual = function( selector, modifier, message ) {
188188
var value = elem.attr( attr );
189189
result[ attr ] = value !== undefined ? value : "";
190190
});
191+
result.events = $._data( elem[ 0 ], "events" );
192+
result.data = $.extend( {}, elem.data() );
193+
delete result.data[ $.expando ];
191194
children = elem.children();
192195
if ( children.length ) {
193196
result.children = elem.children().map(function( ind ) {

0 commit comments

Comments
 (0)