/*
* button_methods.js
*/
(function($) {
module("button: methods");
test("destroy", function() {
expect( 1 );
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" ), "