]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Make uniqueId test pass in IE6/7 with jQuery 1.6, where undefined id is returne...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 19 Jun 2012 15:08:38 +0000 (17:08 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 19 Jun 2012 15:08:38 +0000 (17:08 +0200)
tests/unit/core/core.js

index db9d828193729f47b712c77d45eca2c7e9345d7b..a77e618aa7a4cac118f9b29fa1a955fe94d0aae4 100644 (file)
@@ -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 );