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 /tests/unit/tooltip/tooltip_methods.js | |
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
Diffstat (limited to 'tests/unit/tooltip/tooltip_methods.js')
-rw-r--r-- | tests/unit/tooltip/tooltip_methods.js | 3 |
1 files changed, 2 insertions, 1 deletions
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" ); |