aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-03-23 18:37:03 -0400
committerScott González <scott.gonzalez@gmail.com>2015-03-25 15:55:12 -0400
commite4363ab82d0997a00c96e0f4b3a504a94ddfe62e (patch)
tree43ad1ad258690ba53e575310f5bf0994cd129a1c /tests
parent12643739a93b1f39d0934321973b96989845a606 (diff)
downloadjquery-ui-e4363ab82d0997a00c96e0f4b3a504a94ddfe62e.tar.gz
jquery-ui-e4363ab82d0997a00c96e0f4b3a504a94ddfe62e.zip
Tests: Update `domEqual()` to work with jQuery git
jQuery now returns `null` for empty attributes instead of `undefined`. Ref gh-1516
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/testsuite.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js
index 175fadd97..e03fd8f67 100644
--- a/tests/unit/testsuite.js
+++ b/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" );