jquery-ui/tests/unit/progressbar/progressbar_methods.js

25 lines
431 B
JavaScript
Raw Normal View History

/*
* progressbar_methods.js
*/
(function($) {
module("progressbar: methods");
test("init", function() {
expect(1);
$("<div></div>").appendTo('body').progressbar().remove();
ok(true, '.progressbar() called on element');
});
test("destroy", function() {
expect(1);
$("<div></div>").appendTo('body').progressbar().progressbar("destroy").remove();
ok(true, '.progressbar("destroy") called on element');
});
})(jQuery);