From: Scott González Date: Mon, 27 Aug 2012 00:18:21 +0000 (-0400) Subject: Progressbar tests: Added test for widget() method. X-Git-Tag: 1.9.0~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc7c26b8d1a75ae4784006a44d64134bb6a0354f;p=jquery-ui.git Progressbar tests: Added test for widget() method. --- diff --git a/tests/unit/progressbar/progressbar_methods.js b/tests/unit/progressbar/progressbar_methods.js index 89478b9b1..990739c6e 100644 --- a/tests/unit/progressbar/progressbar_methods.js +++ b/tests/unit/progressbar/progressbar_methods.js @@ -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" ); +});