aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/unit/progressbar/progressbar_events.js7
-rw-r--r--tests/unit/progressbar/progressbar_options.js10
2 files changed, 15 insertions, 2 deletions
diff --git a/tests/unit/progressbar/progressbar_events.js b/tests/unit/progressbar/progressbar_events.js
index 6b73e2e8d..b273cd5e9 100644
--- a/tests/unit/progressbar/progressbar_events.js
+++ b/tests/unit/progressbar/progressbar_events.js
@@ -6,7 +6,12 @@
module("progressbar: events");
test("change", function() {
- ok(false, "missing test - untested code is broken code.");
+ expect(1);
+ $("#progressbar").progressbar({
+ change: function() {
+ same( 5, $(this).progressbar("value") );
+ }
+ }).progressbar("value", 5);
});
})(jQuery);
diff --git a/tests/unit/progressbar/progressbar_options.js b/tests/unit/progressbar/progressbar_options.js
index f6069a5de..a60b0efaf 100644
--- a/tests/unit/progressbar/progressbar_options.js
+++ b/tests/unit/progressbar/progressbar_options.js
@@ -6,7 +6,15 @@
module("progressbar: options");
test("{ value : 0 }, default", function() {
- ok(false, "missing test - untested code is broken code.");
+ $("#progressbar").progressbar();
+ same( 0, $("#progressbar").progressbar("value") );
+});
+
+test("{ value : 5 }", function() {
+ $("#progressbar").progressbar({
+ value: 5
+ });
+ same( 5, $("#progressbar").progressbar("value") );
});
})(jQuery);