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.js26
1 files changed, 10 insertions, 16 deletions
diff --git a/tests/unit/tooltip/tooltip_methods.js b/tests/unit/tooltip/tooltip_methods.js
index 496a5fdb7..cb99ea457 100644
--- a/tests/unit/tooltip/tooltip_methods.js
+++ b/tests/unit/tooltip/tooltip_methods.js
@@ -1,22 +1,17 @@
-/*
- * tooltip_methods.js
- */
-(function($) {
-
+(function( $ ) {
-module("tooltip: methods");
+module( "tooltip: methods" );
-test("destroy", function() {
- var beforeHtml = $("#tooltipped1").parent().html();
- var afterHtml = $("#tooltipped1").tooltip().tooltip("destroy").parent().html();
+test( "destroy", function() {
+ var beforeHtml = $( "#tooltipped1" ).parent().html();
+ var afterHtml = $( "#tooltipped1" ).tooltip().tooltip( "destroy" ).parent().html();
equal( afterHtml, beforeHtml );
});
-test("open", function() {
- var e = $("#tooltipped1").tooltip();
- e.tooltip("open");
- ok( $(".ui-tooltip").is(":visible") );
- $(":ui-tooltip").tooltip("destroy");
+test( "open", function() {
+ var element = $( "#tooltipped1" ).tooltip();
+ element.tooltip( "open" );
+ ok( $( ".ui-tooltip" ).is( ":visible" ) );
});
/*
@@ -29,5 +24,4 @@ test("widget", function() {
});
*/
-
-})(jQuery);
+}( jQuery ) );