2012-05-26 03:10:46 +00:00
|
|
|
module( "progressbar: methods" );
|
2009-02-02 14:36:08 +00:00
|
|
|
|
2012-05-26 03:10:46 +00:00
|
|
|
test( "destroy", function() {
|
|
|
|
expect( 1 );
|
|
|
|
domEqual( "#progressbar", function() {
|
|
|
|
$( "#progressbar" ).progressbar().progressbar( "destroy" );
|
|
|
|
});
|
2009-02-02 14:36:08 +00:00
|
|
|
});
|
|
|
|
|
2012-05-26 03:10:46 +00:00
|
|
|
test( "value", function() {
|
|
|
|
expect( 3 );
|
2012-02-28 14:56:32 +00:00
|
|
|
|
2012-05-26 03:10:46 +00:00
|
|
|
var element = $( "<div>" ).progressbar({ value: 20 });
|
|
|
|
equal( element.progressbar( "value" ), 20, "correct value as getter" );
|
|
|
|
equal( element.progressbar( "value", 30), element, "chainable as setter" );
|
|
|
|
equal( element.progressbar( "option", "value" ), 30, "correct value after setter" );
|
2009-04-16 01:57:56 +00:00
|
|
|
});
|