Skip to content
Permalink
Browse files

Spinner tests: Added test for widget() method.

  • Loading branch information
scottgonzalez committed Aug 27, 2012
1 parent dc7c26b commit 383d0dbfaec3da07c07bf3cb424795c2f1439022
Showing with 8 additions and 0 deletions.
  1. +8 −0 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 );

0 comments on commit 383d0db

Please sign in to comment.
You can’t perform that action at this time.