diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-06-19 17:12:38 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-06-19 17:12:38 +0200 |
commit | 0fcf37fba6126c24c1ff9a5e2979fd565a9b4cec (patch) | |
tree | e796ca335e521959fa2ce03fc39042cd4546e851 | |
parent | 8f6c656c280354111302bc352bde0f9db4d1ba54 (diff) | |
download | jquery-ui-0fcf37fba6126c24c1ff9a5e2979fd565a9b4cec.tar.gz jquery-ui-0fcf37fba6126c24c1ff9a5e2979fd565a9b4cec.zip |
Tooltip: Make title-tests pass in IE6/7 with jQuery 1.6, where undefined attribute is returned as empty string
-rw-r--r-- | tests/unit/tooltip/tooltip_core.js | 3 | ||||
-rw-r--r-- | tests/unit/tooltip/tooltip_methods.js | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/tooltip/tooltip_core.js b/tests/unit/tooltip/tooltip_core.js index 1c8817aa8..52941784f 100644 --- a/tests/unit/tooltip/tooltip_core.js +++ b/tests/unit/tooltip/tooltip_core.js @@ -34,7 +34,8 @@ test( "accessibility", function() { equal( element.attr( "aria-describedby" ), "fixture-span " + tooltipId, "multiple describedby when open" ); // strictEqual to distinguish between .removeAttr( "title" ) and .attr( "title", "" ) - strictEqual( element.attr( "title" ), undefined, "no title when open" ); + // TODO actually use strictEqual(..., undefined, msg) when dropping jQuery 1.6 support (or IE6/7) + ok( !element.attr( "title" ), "no title when open" ); element.tooltip( "close" ); equal( element.attr( "aria-describedby" ), "fixture-span", "correct describedby when closed" ); diff --git a/tests/unit/tooltip/tooltip_methods.js b/tests/unit/tooltip/tooltip_methods.js index 1b8cd2bf2..33ce44764 100644 --- a/tests/unit/tooltip/tooltip_methods.js +++ b/tests/unit/tooltip/tooltip_methods.js @@ -42,7 +42,8 @@ test( "enable/disable", function() { element.tooltip( "disable" ); equal( $( ".ui-tooltip" ).length, 0, "no tooltip when disabled" ); - equal( tooltip.attr( "title" ), undefined, "title removed on disable" ); + // TODO use equal(..., undefined, msg) when dropping jQuery 1.6 support (or IE6/7) + ok( !tooltip.attr( "title" ), "title removed on disable" ); element.tooltip( "open" ); equal( $( ".ui-tooltip" ).length, 0, "open does nothing when disabled" ); |