diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-03-23 18:42:23 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-03-25 15:55:53 -0400 |
commit | 899d90709a141ce22fedab2cfdf6044d9928f831 (patch) | |
tree | 3ffc9ed66db142e5661586fa42083bb4bcb7cadd /tests/unit/core/core.js | |
parent | e109e768190089744804d084e9a26f010dd63a37 (diff) | |
download | jquery-ui-899d90709a141ce22fedab2cfdf6044d9928f831.tar.gz jquery-ui-899d90709a141ce22fedab2cfdf6044d9928f831.zip |
Tests: Handle jQuery git returning `null` for empty attributes
jQuery now returns `null` for empty attributes instead of `undefined`.
Closes gh-1516
Diffstat (limited to 'tests/unit/core/core.js')
-rw-r--r-- | tests/unit/core/core.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/core/core.js b/tests/unit/core/core.js index 2f3657605..a0d0a2de1 100644 --- a/tests/unit/core/core.js +++ b/tests/unit/core/core.js @@ -127,11 +127,11 @@ test( "outerHeight(true) - setter", function() { test( "uniqueId / removeUniqueId", function() { expect( 3 ); var el = $( "img" ).eq( 0 ); - strictEqual( el.attr( "id" ), undefined, "element has no initial id" ); + equal( el.attr( "id" ), null, "element has no initial id" ); el.uniqueId(); ok( /ui-id-\d+$/.test( el.attr( "id" ) ), "element has generated id" ); el.removeUniqueId(); - strictEqual( el.attr( "id" ), undefined, "unique id has been removed from element" ); + equal( el.attr( "id" ), null, "unique id has been removed from element" ); }); })( jQuery ); |