diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-08-26 20:00:36 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-08-26 20:00:36 -0400 |
commit | 103463323a0c4108c29ab7b6859d83067aafc4c6 (patch) | |
tree | 5e262f7f6ae1755cbf7d4fd552b0f28c44c106b6 /tests/unit | |
parent | 42b21fd3eddda0adfedbeaa4629735ab0928d69d (diff) | |
download | jquery-ui-103463323a0c4108c29ab7b6859d83067aafc4c6.tar.gz jquery-ui-103463323a0c4108c29ab7b6859d83067aafc4c6.zip |
Accordion tests: Added test for widget() method.
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/accordion/accordion_methods.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/accordion/accordion_methods.js b/tests/unit/accordion/accordion_methods.js index 8723bcbb7..f8f556fa7 100644 --- a/tests/unit/accordion/accordion_methods.js +++ b/tests/unit/accordion/accordion_methods.js @@ -45,4 +45,12 @@ test( "refresh", function() { equalHeight( element, 455 ); }); +test( "widget", function() { + expect( 2 ); + var element = $( "#list1" ).accordion(), + widgetElement = element.accordion( "widget" ); + equal( widgetElement.length, 1, "one element" ); + strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" ); +}); + }( jQuery ) ); |