aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-08-26 20:00:36 -0400
committerScott González <scott.gonzalez@gmail.com>2012-08-26 20:00:36 -0400
commit103463323a0c4108c29ab7b6859d83067aafc4c6 (patch)
tree5e262f7f6ae1755cbf7d4fd552b0f28c44c106b6 /tests/unit
parent42b21fd3eddda0adfedbeaa4629735ab0928d69d (diff)
downloadjquery-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.js8
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 ) );