diff options
Diffstat (limited to 'tests/unit/tooltip')
-rw-r--r-- | tests/unit/tooltip/tooltip_core.js | 5 | ||||
-rw-r--r-- | tests/unit/tooltip/tooltip_methods.js | 10 |
2 files changed, 4 insertions, 11 deletions
diff --git a/tests/unit/tooltip/tooltip_core.js b/tests/unit/tooltip/tooltip_core.js index 2e029c7b0..4933be9ba 100644 --- a/tests/unit/tooltip/tooltip_core.js +++ b/tests/unit/tooltip/tooltip_core.js @@ -39,10 +39,7 @@ test( "accessibility", function() { "multiple describedby when open" ); // strictEqual to distinguish between .removeAttr( "title" ) and .attr( "title", "" ) - // 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" ); + strictEqual( element.attr( "title" ), undefined, "no title when open" ); equal( liveRegion.children().length, 1 ); equal( liveRegion.children().last().html(), "..." ); element.tooltip( "close" ); diff --git a/tests/unit/tooltip/tooltip_methods.js b/tests/unit/tooltip/tooltip_methods.js index 8d1b1bd5b..e6641a14a 100644 --- a/tests/unit/tooltip/tooltip_methods.js +++ b/tests/unit/tooltip/tooltip_methods.js @@ -70,11 +70,7 @@ test( "enable/disable", function() { ok( !element.tooltip( "widget" ).hasClass( "ui-state-disabled" ), "element doesn't get ui-state-disabled" ); ok( !element.tooltip( "widget" ).attr( "aria-disabled" ), "element doesn't get aria-disabled" ); ok( !element.tooltip( "widget" ).hasClass( "ui-tooltip-disabled" ), "element doesn't get ui-tooltip-disabled" ); - - // 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" ); + strictEqual( tooltip.attr( "title" ), undefined, "title removed on disable" ); element.tooltip( "open" ); equal( $( ".ui-tooltip" ).length, 0, "open does nothing when disabled" ); @@ -123,7 +119,7 @@ test( "preserve changes to title attributes on close and destroy", function() { tests[ 5 ] = { expected: original, method: "destroy" }; $.each( tests, function( index, test ) { - + element.attr( "title", original ).tooltip() .tooltip( "open", $.Event( "mouseover", { target: element[ 0 ] } ) ); if ( test.title ) { @@ -133,7 +129,7 @@ test( "preserve changes to title attributes on close and destroy", function() { } element.tooltip( test.method ); equal( $( "#tooltipped1" ).attr( "title" ), test.expected ); - + } ); }); |