diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-08-26 20:19:35 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-08-26 20:19:35 -0400 |
commit | 383d0dbfaec3da07c07bf3cb424795c2f1439022 (patch) | |
tree | 025445709ebe78996bdff0b71b09ff9291b2d799 | |
parent | dc7c26b8d1a75ae4784006a44d64134bb6a0354f (diff) | |
download | jquery-ui-383d0dbfaec3da07c07bf3cb424795c2f1439022.tar.gz jquery-ui-383d0dbfaec3da07c07bf3cb424795c2f1439022.zip |
Spinner tests: Added test for widget() method.
-rw-r--r-- | tests/unit/spinner/spinner_methods.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/spinner/spinner_methods.js b/tests/unit/spinner/spinner_methods.js index bafd949a7..af872f257 100644 --- a/tests/unit/spinner/spinner_methods.js +++ b/tests/unit/spinner/spinner_methods.js @@ -163,4 +163,12 @@ test( "value", function() { equal( element.spinner( "value" ), 9, "get value via value method" ); }); +test( "widget", function() { + expect( 2 ); + var element = $( "#spin" ).spinner(), + widgetElement = element.spinner( "widget" ); + equal( widgetElement.length, 1, "one element" ); + strictEqual( widgetElement[ 0 ], element.parent()[ 0 ], "parent element" ); +}); + })( jQuery ); |