Skip to content
Permalink
Browse files

Progressbar tests: Added test for widget() method.

  • Loading branch information
scottgonzalez committed Aug 27, 2012
1 parent 2e491e0 commit dc7c26b8d1a75ae4784006a44d64134bb6a0354f
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/unit/progressbar/progressbar_methods.js
@@ -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" );
});

0 comments on commit dc7c26b

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