We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67540fd commit 7c74af7Copy full SHA for 7c74af7
tests/unit/button/button_methods.js
@@ -7,13 +7,10 @@
7
module("button: methods");
8
9
test("destroy", function() {
10
- var beforeHtml = $("#button").parent().html(),
11
- afterHtml = $("#button").button().button("destroy").parent().html();
12
- // Opera 9 outputs role="" instead of removing the attribute like everyone else
13
- if ($.browser.opera) {
14
- afterHtml = afterHtml.replace(/ role=""/g, "");
15
- }
16
- equal( afterHtml, beforeHtml );
+ expect( 1 );
+ domEqual( "#button", function() {
+ $( "#button" ).button().button( "destroy" );
+ });
17
});
18
19
})(jQuery);
0 commit comments