aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 );