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

index 89478b9b13ac61176baea90602e6296840d62b2e..990739c6e4af213beef19349bf1e5aa8874145e3 100644 (file)
@@ -15,3 +15,11 @@ test( "value", function() {
        equal( element.progressbar( "value", 30), element, "chainable as setter" );
        equal( element.progressbar( "option", "value" ), 30, "correct value after setter" );
 });
+
+test( "widget", function() {
+       expect( 2 );
+       var element = $( "#progressbar" ).progressbar(),
+               widgetElement = element.progressbar( "widget" );
+       equal( widgetElement.length, 1, "one element" );
+       strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" );
+});