define( [ "qunit", "jquery", "ui/widgets/progressbar" ], function( QUnit, $ ) { QUnit.module( "progressbar: methods" ); 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 = $( "