mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tests: Update support comments.
This commit is contained in:
parent
0e550f16bb
commit
abbf6a79a9
@ -158,7 +158,7 @@ test( "uniqueId / removeUniqueId", function() {
|
||||
|
||||
// support: jQuery <1.6.2
|
||||
// support: IE <8
|
||||
// We should use equal( id, undefined ) when dropping jQuery 1.6.1 support (or IE6/7)
|
||||
// We should use strictEqual( 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" );
|
||||
|
@ -34,7 +34,9 @@ test( "accessibility", function() {
|
||||
equal( element.attr( "aria-describedby" ), "fixture-span " + tooltipId,
|
||||
"multiple describedby when open" );
|
||||
// strictEqual to distinguish between .removeAttr( "title" ) and .attr( "title", "" )
|
||||
// TODO actually use strictEqual(..., undefined, msg) when dropping jQuery 1.6 support (or IE6/7)
|
||||
// support: jQuery <1.6.2
|
||||
// support: IE <8
|
||||
// We should use strictEqual( ..., undefined ) when dropping jQuery 1.6.1 support (or IE6/7)
|
||||
ok( !element.attr( "title" ), "no title when open" );
|
||||
element.tooltip( "close" );
|
||||
equal( element.attr( "aria-describedby" ), "fixture-span",
|
||||
|
@ -42,7 +42,9 @@ test( "enable/disable", function() {
|
||||
|
||||
element.tooltip( "disable" );
|
||||
equal( $( ".ui-tooltip" ).length, 0, "no tooltip when disabled" );
|
||||
// TODO use equal(..., undefined, msg) when dropping jQuery 1.6 support (or IE6/7)
|
||||
// support: jQuery <1.6.2
|
||||
// support: IE <8
|
||||
// We should use strictEqual( ..., undefined ) when dropping jQuery 1.6.1 support (or IE6/7)
|
||||
ok( !tooltip.attr( "title" ), "title removed on disable" );
|
||||
|
||||
element.tooltip( "open" );
|
||||
|
Loading…
Reference in New Issue
Block a user