]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs tests: Added test for widget() method.
authorScott González <scott.gonzalez@gmail.com>
Mon, 27 Aug 2012 00:20:43 +0000 (20:20 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 27 Aug 2012 00:20:43 +0000 (20:20 -0400)
tests/unit/tabs/tabs_methods.js

index 866ea130789cd0725e983540ca717c8ba802e52d..fa6535158e3cd6aff5b52f6f0b1167b621fe1015 100644 (file)
@@ -264,4 +264,12 @@ asyncTest( "load", function() {
        }
 });
 
+test( "widget", function() {
+       expect( 2 );
+       var element = $( "#tabs1" ).tabs(),
+               widgetElement = element.tabs( "widget" );
+       equal( widgetElement.length, 1, "one element" );
+       strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" );
+});
+
 }( jQuery ) );