Skip to content
Permalink
Browse files

Tests: Update `domEqual()` to work with jQuery git

jQuery now returns `null` for empty attributes instead of `undefined`.

Ref gh-1516
  • Loading branch information
scottgonzalez committed Mar 23, 2015
1 parent 1264373 commit e4363ab82d0997a00c96e0f4b3a504a94ddfe62e
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/unit/testsuite.js
@@ -305,11 +305,11 @@ window.domEqual = function( selector, modifier, message ) {
result = {};
$.each( properties, function( index, attr ) {
var value = elem.prop( attr );
result[ attr ] = value !== undefined ? value : "";
result[ attr ] = value != null ? value : "";
});
$.each( attributes, function( index, attr ) {
var value = elem.attr( attr );
result[ attr ] = value !== undefined ? value : "";
result[ attr ] = value != null ? value : "";
});
result.style = getElementStyles( elem[ 0 ] );
result.events = $._data( elem[ 0 ], "events" );

0 comments on commit e4363ab

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