Skip to content
Permalink
Browse files

Tests: Check .data() and event bindings in domEqual().

  • Loading branch information
scottgonzalez committed Jun 10, 2012
1 parent db5f95f commit aa1e8b5e6ce0b5012deb98dd30a93c89491dfa3f
Showing with 3 additions and 0 deletions.
  1. +3 −0 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 ) {

0 comments on commit aa1e8b5

Please sign in to comment.
You can’t perform that action at this time.