mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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:
parent
49411982c2
commit
d969e66164
@ -93,7 +93,17 @@ test("range", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("step", 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() {
|
test("value", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user