diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-06-19 17:08:38 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-06-19 17:08:38 +0200 |
commit | 8f6c656c280354111302bc352bde0f9db4d1ba54 (patch) | |
tree | 3661b0274ba5a1db412dd9d87896166db62f35f4 /tests/unit | |
parent | 392423ca5103554b1f9ec2a60d3f9b39eb1002bf (diff) | |
download | jquery-ui-8f6c656c280354111302bc352bde0f9db4d1ba54.tar.gz jquery-ui-8f6c656c280354111302bc352bde0f9db4d1ba54.zip |
Core: Make uniqueId test pass in IE6/7 with jQuery 1.6, where undefined id is returned as empty string
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/core/core.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/core/core.js b/tests/unit/core/core.js index db9d82819..a77e618aa 100644 --- a/tests/unit/core/core.js +++ b/tests/unit/core/core.js @@ -156,11 +156,13 @@ test( "outerHeight(true) - setter", function() { test( "uniqueId / removeUniqueId", function() { var el = $( "img" ).eq( 0 ); - equal( el.attr( "id" ), undefined, "element has no initial id" ); + // TODO use equal(id, undefined) when dropping jQuery 1.6 support (or IE6/7) + ok( !el.attr( "id" ), "element has no initial id" ); el.uniqueId(); ok( /ui-id-\d+$/.test( el.attr( "id" ) ), "element has generated id" ); el.removeUniqueId(); - equal( el.attr( "id" ), undefined, "unique id has been removed from element" ); + // TODO see above + ok( !el.attr( "id" ), "unique id has been removed from element" ); }); })( jQuery ); |