Skip to content
Permalink
Browse files

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
  • Loading branch information
jzaefferer committed Mar 27, 2010
1 parent 4941198 commit d969e661643f001837ca07d34f471231886aa2ca
Showing with 11 additions and 1 deletion.
  1. +11 −1 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() {

0 comments on commit d969e66

Please sign in to comment.
You can’t perform that action at this time.