From aa1e8b5e6ce0b5012deb98dd30a93c89491dfa3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sat, 9 Jun 2012 20:12:03 -0400 Subject: [PATCH] Tests: Check .data() and event bindings in domEqual(). --- tests/unit/testsuite.js | 3 +++ 1 file changed, 3 insertions(+) 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 ) { -- 2.39.5