mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-29 21:36:54 -04:00
Added Slider component
This commit is contained in:
@@ -170,6 +170,26 @@ describe('manipulators', function() {
|
||||
testHide(type);
|
||||
});
|
||||
|
||||
describe('slider', function() {
|
||||
var type = {
|
||||
type: 'slider',
|
||||
min: 0,
|
||||
max: 100,
|
||||
step: 0.1
|
||||
};
|
||||
|
||||
testSetGet(type, '12', 12);
|
||||
testSetGet(type, 12);
|
||||
testSetGet(type, '12.3', 12.3);
|
||||
testSetGet(type, 12.3);
|
||||
testSetGet(type, 12.34, 12.3);
|
||||
testSetGet(type, '12.34', 12.3);
|
||||
testDisable(type);
|
||||
testEnable(type);
|
||||
testShow(type);
|
||||
testHide(type);
|
||||
});
|
||||
|
||||
describe('checked', function() {
|
||||
var type = 'toggle';
|
||||
testSetGet({type: type, defaultValue: false}, 1, true);
|
||||
|
||||
Reference in New Issue
Block a user