aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-03-27 02:00:59 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2010-03-27 02:00:59 +0100
commitd969e661643f001837ca07d34f471231886aa2ca (patch)
tree9f314fb5f6e5ddf3bf92ab550b7cfd475f563c6d
parent49411982c2ade2f678965b395a56e740a12d049e (diff)
downloadjquery-ui-d969e661643f001837ca07d34f471231886aa2ca.tar.gz
jquery-ui-d969e661643f001837ca07d34f471231886aa2ca.zip
Slider: Test for test-option, setting the value with the value-method; either test is wrong or the implementation ignores the step-option when set programmatically
-rw-r--r--tests/unit/slider/slider_options.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/unit/slider/slider_options.js b/tests/unit/slider/slider_options.js
index 88eb26a8f..65d308e26 100644
--- a/tests/unit/slider/slider_options.js
+++ b/tests/unit/slider/slider_options.js
@@ -93,7 +93,17 @@ test("range", function() {
});
test("step", function() {
- ok(false, "missing test - untested code is broken code.");
+ var el = $('<div></div>').slider({
+ step: 10
+ });
+ equals( el.slider("value"), 0 )
+ el.slider("value", 1);
+ equals( el.slider("value"), 10 );
+ el.slider("value", 10);
+ equals( el.slider("value"), 10 );
+ el.slider("value", 11);
+ equals( el.slider("value"), 20 );
+ el.slider('destroy');
});
test("value", function() {