Skip to content

Commit

Permalink
Slider: Test for test-option, setting the value with the value-method…
Browse files Browse the repository at this point in the history
…; 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 d969e66
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/unit/slider/slider_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d969e66

Please sign in to comment.