]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Check .data() and event bindings in domEqual().
authorScott González <scott.gonzalez@gmail.com>
Sun, 10 Jun 2012 00:12:03 +0000 (20:12 -0400)
committerScott González <scott.gonzalez@gmail.com>
Sun, 10 Jun 2012 00:12:03 +0000 (20:12 -0400)
tests/unit/testsuite.js

index 3c8ec04c43c5dface2730eb48d7a797acd38afe0..59bda7df881c2608270d2bf5f36769f5fb5e81cc 100644 (file)
@@ -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 ) {