r3209 committed - progressbar: implemented missing tests
Revision: 3209
Author: joern.zaefferer
Date: Fri Sep 11 11:47:34 2009
Log: progressbar: implemented missing tests
http://code.google.com/p/jquery-ui/source/detail?r=3209
Modified:
/trunk/tests/unit/progressbar/progressbar_events.js
/trunk/tests/unit/progressbar/progressbar_options.js
=======================================
--- /trunk/tests/unit/progressbar/progressbar_events.js Tue Feb 3 20:39:31
2009
+++ /trunk/tests/unit/progressbar/progressbar_events.js Fri Sep 11 11:47:34
2009
@@ -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);
=======================================
--- /trunk/tests/unit/progressbar/progressbar_options.js Tue Feb 3
20:39:31 2009
+++ /trunk/tests/unit/progressbar/progressbar_options.js Fri Sep 11
11:47:34 2009
@@ -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);