mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Spinner tests: Added test for widget() method.
This commit is contained in:
parent
dc7c26b8d1
commit
383d0dbfae
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user