diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-08-26 20:20:43 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-08-26 20:20:43 -0400 |
commit | 072919467dec74e2c4b2b3af0ed005a861cf6ff9 (patch) | |
tree | 15519ef938333ffcd0fd1f5bd0aca602e0f309c4 /tests/unit | |
parent | 1540f4afc82347cc77c5c6324e068c4bbd332456 (diff) | |
download | jquery-ui-072919467dec74e2c4b2b3af0ed005a861cf6ff9.tar.gz jquery-ui-072919467dec74e2c4b2b3af0ed005a861cf6ff9.zip |
Tabs tests: Added test for widget() method.
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/tabs/tabs_methods.js | 8 |
1 files changed, 8 insertions, 0 deletions
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 ) ); |