aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip/tooltip_methods.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-04-06 20:28:55 -0400
committerScott González <scott.gonzalez@gmail.com>2015-04-09 09:26:27 -0400
commita2da340e0d1b02d243c71b86382e5e624e7211d6 (patch)
tree91726ee56f182a1d2bae81b4d9de68291dc8c876 /tests/unit/tooltip/tooltip_methods.js
parent7d4811206f8b64e9bd8eea168a77edf23629659b (diff)
downloadjquery-ui-a2da340e0d1b02d243c71b86382e5e624e7211d6.tar.gz
jquery-ui-a2da340e0d1b02d243c71b86382e5e624e7211d6.zip
Tooltip: Convert tests to new infrastructure
Ref #10119 Ref gh-1528
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 ) );
+} );