From: Scott González Date: Mon, 27 Aug 2012 00:20:43 +0000 (-0400) Subject: Tabs tests: Added test for widget() method. X-Git-Tag: 1.9.0~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=072919467dec74e2c4b2b3af0ed005a861cf6ff9;p=jquery-ui.git Tabs tests: Added test for widget() method. --- diff --git a/tests/unit/tabs/tabs_methods.js b/tests/unit/tabs/tabs_methods.js index 866ea1307..fa6535158 100644 --- a/tests/unit/tabs/tabs_methods.js +++ b/tests/unit/tabs/tabs_methods.js @@ -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 ) );