diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-03-23 18:37:03 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-06-09 13:14:13 -0400 |
commit | 1ca46175d564c7dde070819cbea9ea182585fec0 (patch) | |
tree | 1db27c31ec543a0a7946715bcb09da842edba2b8 /tests/unit | |
parent | 6fd43da409b02a078bb697d93abec9d2e15b8d30 (diff) | |
download | jquery-ui-1ca46175d564c7dde070819cbea9ea182585fec0.tar.gz jquery-ui-1ca46175d564c7dde070819cbea9ea182585fec0.zip |
Tests: Update `domEqual()` to work with jQuery git
jQuery now returns `null` for empty attributes instead of `undefined`.
Ref gh-1516
(cherry picked from commit e4363ab82d0997a00c96e0f4b3a504a94ddfe62e)
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/testsuite.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js index 1c0f17859..0ef5d2117 100644 --- a/tests/unit/testsuite.js +++ b/tests/unit/testsuite.js @@ -301,11 +301,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" ); |