define( [ "qunit", "jquery", "lib/helper", "ui/widgets/progressbar" ], function( QUnit, $, helper ) { QUnit.module( "progressbar: methods", { afterEach: helper.moduleAfterEach } ); QUnit.test( "destroy", function( assert ) { assert.expect( 1 ); assert.domEqual( "#progressbar", function() { $( "#progressbar" ).progressbar().progressbar( "destroy" ); } ); } ); QUnit.test( "disable", function( assert ) { assert.expect( 3 ); var element = $( "#progressbar" ).progressbar().progressbar( "disable" ); assert.hasClasses( element.progressbar( "widget" ), "ui-state-disabled" ); assert.ok( element.progressbar( "widget" ).attr( "aria-disabled" ), "element gets aria-disabled" ); assert.hasClasses( element.progressbar( "widget" ), "ui-progressbar-disabled" ); } ); QUnit.test( "value", function( assert ) { assert.expect( 3 ); var element = $( "