aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip/tooltip_methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/tooltip/tooltip_methods.js')
-rw-r--r--tests/unit/tooltip/tooltip_methods.js13
1 files changed, 8 insertions, 5 deletions
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 ) );
+} );