diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-08-26 20:18:21 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-08-26 20:18:21 -0400 |
commit | dc7c26b8d1a75ae4784006a44d64134bb6a0354f (patch) | |
tree | fcde22b5694c3f7611846be7aede063d3ee6598e | |
parent | 2e491e0bb747da7dd1d465e78cc46e9c98237051 (diff) | |
download | jquery-ui-dc7c26b8d1a75ae4784006a44d64134bb6a0354f.tar.gz jquery-ui-dc7c26b8d1a75ae4784006a44d64134bb6a0354f.zip |
Progressbar tests: Added test for widget() method.
-rw-r--r-- | tests/unit/progressbar/progressbar_methods.js | 8 |
1 files changed, 8 insertions, 0 deletions
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" ); +}); |