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

This commit is contained in:
jzaefferer 2010-03-27 02:00:59 +01:00
parent 49411982c2
commit d969e66164

View File

@ -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() {