mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core tests: Updated support comments.
This commit is contained in:
parent
f612a41b18
commit
0e550f16bb
@ -156,12 +156,16 @@ test( "outerHeight(true) - setter", function() {
|
||||
test( "uniqueId / removeUniqueId", function() {
|
||||
var el = $( "img" ).eq( 0 );
|
||||
|
||||
// TODO use equal(id, undefined) when dropping jQuery 1.6 support (or IE6/7)
|
||||
// support: jQuery <1.6.2
|
||||
// support: IE <8
|
||||
// We should use equal( id, undefined ) when dropping jQuery 1.6.1 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();
|
||||
// TODO see above
|
||||
// support: jQuery <1.6.2
|
||||
// support: IE <8
|
||||
// see above
|
||||
ok( !el.attr( "id" ), "unique id has been removed from element" );
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user