aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/progressbar/progressbar_methods.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-02-04 04:39:31 +0000
committerRichard Worth <rdworth@gmail.com>2009-02-04 04:39:31 +0000
commit04b304031193ff08f2aaac61ce65fefef025adea (patch)
tree595324bbede23fb620b0a57e5dc689066bda426f /tests/unit/progressbar/progressbar_methods.js
parent52005f42dda87e4dc06d5688c27bf6b82ad80621 (diff)
downloadjquery-ui-04b304031193ff08f2aaac61ce65fefef025adea.tar.gz
jquery-ui-04b304031193ff08f2aaac61ce65fefef025adea.zip
progressbar unit tests: split tests into individual files
Diffstat (limited to 'tests/unit/progressbar/progressbar_methods.js')
-rw-r--r--tests/unit/progressbar/progressbar_methods.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/unit/progressbar/progressbar_methods.js b/tests/unit/progressbar/progressbar_methods.js
index 810d33a11..ece100e02 100644
--- a/tests/unit/progressbar/progressbar_methods.js
+++ b/tests/unit/progressbar/progressbar_methods.js
@@ -5,8 +5,20 @@
module("progressbar: methods");
-test("testname", function() {
- ok(false, "missing test - untested code is broken code.");
+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);