From a2da340e0d1b02d243c71b86382e5e624e7211d6 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 6 Apr 2015 20:28:55 -0400 Subject: Tooltip: Convert tests to new infrastructure Ref #10119 Ref gh-1528 --- tests/unit/tooltip/tooltip_methods.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tests/unit/tooltip/tooltip_methods.js') diff --git a/tests/unit/tooltip/tooltip_methods.js b/tests/unit/tooltip/tooltip_methods.js index f027d5226..3db7b8f7c 100644 --- a/tests/unit/tooltip/tooltip_methods.js +++ b/tests/unit/tooltip/tooltip_methods.js @@ -1,17 +1,20 @@ -(function( $ ) { +define( [ + "jquery", + "ui/tooltip" +], function( $ ) { module( "tooltip: methods" ); -test( "destroy", function() { +test( "destroy", function( assert ) { expect( 3 ); var element = $( "#tooltipped1" ); - domEqual( "#tooltipped1", function() { + assert.domEqual( "#tooltipped1", function() { element.tooltip().tooltip( "destroy" ); }); // make sure that open tooltips are removed on destroy - domEqual( "#tooltipped1", function() { + assert.domEqual( "#tooltipped1", function() { element .tooltip() .tooltip( "open", $.Event( "mouseover", { target: element[0] }) ) @@ -133,4 +136,4 @@ test( "preserve changes to title attributes on close and destroy", function() { } ); }); -}( jQuery ) ); +} ); -- cgit v1.2.3