mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Progressbar tests: Added test for widget() method.
This commit is contained in:
parent
2e491e0bb7
commit
dc7c26b8d1
@ -15,3 +15,11 @@ test( "value", function() {
|
||||
equal( element.progressbar( "value", 30), element, "chainable as setter" );
|
||||
equal( element.progressbar( "option", "value" ), 30, "correct value after setter" );
|
||||
});
|
||||
|
||||
test( "widget", function() {
|
||||
expect( 2 );
|
||||
var element = $( "#progressbar" ).progressbar(),
|
||||
widgetElement = element.progressbar( "widget" );
|
||||
equal( widgetElement.length, 1, "one element" );
|
||||
strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" );
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user