aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/spinner
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-08-26 20:19:35 -0400
committerScott González <scott.gonzalez@gmail.com>2012-08-26 20:19:35 -0400
commit383d0dbfaec3da07c07bf3cb424795c2f1439022 (patch)
tree025445709ebe78996bdff0b71b09ff9291b2d799 /tests/unit/spinner
parentdc7c26b8d1a75ae4784006a44d64134bb6a0354f (diff)
downloadjquery-ui-383d0dbfaec3da07c07bf3cb424795c2f1439022.tar.gz
jquery-ui-383d0dbfaec3da07c07bf3cb424795c2f1439022.zip
Spinner tests: Added test for widget() method.
Diffstat (limited to 'tests/unit/spinner')
-rw-r--r--tests/unit/spinner/spinner_methods.js8
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 );