define( [
"jquery",
"ui/widgets/button"
], function( $ ) {
module("button: methods");
test("destroy", function( assert ) {
expect( 1 );
assert.domEqual( "#button", function() {
$( "#button" ).button().button( "destroy" );
});
});
test( "refresh: Ensure disabled state is preserved correctly.", function() {
expect( 8 );
var element = $( "" );
element.button({ disabled: true }).button( "refresh" );
ok( element.button( "option", "disabled" ), "Anchor button should remain disabled after refresh" ); //See #8237
element = $( "
" );
element.button({ disabled: true }).button( "refresh" );
ok( element.button( "option", "disabled" ), " buttons should remain disabled after refresh" );
element = $( "" );
element.button( { disabled: true} ).button( "refresh" );
ok( element.button( "option", "disabled" ), "