diff options
author | Felix Nagel <info@felixnagel.com> | 2012-08-30 22:57:37 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-08-30 22:57:37 +0200 |
commit | daadc84416d22eca651c85627d5dd683d7727d3e (patch) | |
tree | c52b8c3e89336d4d91e5a4aac8c298d472312c7a /tests/unit/tooltip/tooltip_methods.js | |
parent | c1799024684780995ba666aa1c9acfa34c69f12a (diff) | |
parent | dec9c54632be191947c310b402810cf6f1b4250a (diff) | |
download | jquery-ui-daadc84416d22eca651c85627d5dd683d7727d3e.tar.gz jquery-ui-daadc84416d22eca651c85627d5dd683d7727d3e.zip |
Merge branch 'master' into selectmenu
Diffstat (limited to 'tests/unit/tooltip/tooltip_methods.js')
-rw-r--r-- | tests/unit/tooltip/tooltip_methods.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/unit/tooltip/tooltip_methods.js b/tests/unit/tooltip/tooltip_methods.js index ef783cbd3..0af1e06e9 100644 --- a/tests/unit/tooltip/tooltip_methods.js +++ b/tests/unit/tooltip/tooltip_methods.js @@ -59,14 +59,12 @@ test( "enable/disable", function() { $.fx.off = false; }); -/* -TODO currently tooltip doesn't override widget -can't return anything useful if no element is kept around and there's no useful reference -test("widget", function() { - var tooltip = $("#tooltipped1").tooltip(); - deepEqual(tooltip.tooltip("widget")[0], $(".ui-tooltip")[0]); - deepEqual(tooltip.tooltip("widget").end()[0], tooltip[0]); +test( "widget", function() { + expect( 2 ); + var element = $( "#tooltipped1" ).tooltip(), + widgetElement = element.tooltip( "widget" ); + equal( widgetElement.length, 1, "one element" ); + strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" ); }); -*/ }( jQuery ) ); |