mirror of
https://github.com/google/pebble.git
synced 2026-02-19 11:46:49 -05:00
Import of the watch repository from Pebble
This commit is contained in:
217
tools/tests/json2vibe_test.json
Normal file
217
tools/tests/json2vibe_test.json
Normal file
@@ -0,0 +1,217 @@
|
||||
{
|
||||
"good_using_string_ids":{
|
||||
"comments":"Haptic double-pulse",
|
||||
"notes":[
|
||||
{
|
||||
"id":"short_pulse",
|
||||
"vibe_duration_ms":15,
|
||||
"brake_duration_ms":9,
|
||||
"strength":100
|
||||
},
|
||||
{
|
||||
"id":"delay_100",
|
||||
"vibe_duration_ms":100,
|
||||
"brake_duration_ms":0,
|
||||
"strength":0
|
||||
}
|
||||
],
|
||||
"pattern":[
|
||||
"short_pulse",
|
||||
"delay_100",
|
||||
"short_pulse"
|
||||
]
|
||||
},
|
||||
"good_using_numeric_ids":{
|
||||
"comments":"Numeric ids",
|
||||
"notes":[
|
||||
{
|
||||
"id":17,
|
||||
"vibe_duration_ms":15,
|
||||
"brake_duration_ms":9,
|
||||
"strength":100
|
||||
},
|
||||
{
|
||||
"id":"delay_100",
|
||||
"vibe_duration_ms":100,
|
||||
"brake_duration_ms":0,
|
||||
"strength":0
|
||||
}
|
||||
],
|
||||
"pattern":[
|
||||
17,
|
||||
"delay_100",
|
||||
17
|
||||
]
|
||||
},
|
||||
"good_negative_strength":{
|
||||
"comments":"Random pattern",
|
||||
"notes":[
|
||||
{
|
||||
"id":"long_pulse",
|
||||
"vibe_duration_ms":1700,
|
||||
"brake_duration_ms":120,
|
||||
"strength":-76
|
||||
},
|
||||
{
|
||||
"id":"medium_pulse",
|
||||
"vibe_duration_ms":900,
|
||||
"brake_duration_ms":100,
|
||||
"strength":-50
|
||||
},
|
||||
{
|
||||
"id":"delay_2000",
|
||||
"vibe_duration_ms":2000,
|
||||
"brake_duration_ms":0,
|
||||
"strength":0
|
||||
}
|
||||
],
|
||||
"pattern":[
|
||||
"medium_pulse",
|
||||
"medium_pulse",
|
||||
"delay_2000",
|
||||
"long_pulse",
|
||||
"delay_2000",
|
||||
"long_pulse"
|
||||
]
|
||||
},
|
||||
"bad_no_pattern":{
|
||||
"comments":"No pattern",
|
||||
"notes":[
|
||||
{
|
||||
"id":"short_pulse",
|
||||
"vibe_duration_ms":15,
|
||||
"brake_duration_ms":9,
|
||||
"strength":100
|
||||
},
|
||||
{
|
||||
"id":"delay_100",
|
||||
"vibe_duration_ms":100,
|
||||
"brake_duration_ms":0,
|
||||
"strength":0
|
||||
}
|
||||
]
|
||||
},
|
||||
"bad_empty_pattern":{
|
||||
"comments":"No pattern",
|
||||
"notes":[
|
||||
{
|
||||
"id":"short_pulse",
|
||||
"vibe_duration_ms":15,
|
||||
"brake_duration_ms":9,
|
||||
"strength":100
|
||||
},
|
||||
{
|
||||
"id":"delay_100",
|
||||
"vibe_duration_ms":100,
|
||||
"brake_duration_ms":0,
|
||||
"strength":0
|
||||
}
|
||||
],
|
||||
"pattern":[]
|
||||
},
|
||||
"bad_reference_nonexistent_id":{
|
||||
"comments":"Reference nonexistent id",
|
||||
"notes":[
|
||||
{
|
||||
"id":"delay_100",
|
||||
"vibe_duration_ms":100,
|
||||
"brake_duration_ms":0,
|
||||
"strength":0
|
||||
}
|
||||
],
|
||||
"pattern":[
|
||||
"short_pulse",
|
||||
"delay_100",
|
||||
"short_pulse"
|
||||
]
|
||||
},
|
||||
"bad_negative_vibe_duration":{
|
||||
"comments":"Negative duration",
|
||||
"notes":[
|
||||
{
|
||||
"id":"short_pulse",
|
||||
"vibe_duration_ms":-15,
|
||||
"brake_duration_ms":9,
|
||||
"strength":100
|
||||
},
|
||||
{
|
||||
"id":"delay_100",
|
||||
"vibe_duration_ms":100,
|
||||
"brake_duration_ms":0,
|
||||
"strength":0
|
||||
}
|
||||
],
|
||||
"pattern":[
|
||||
"short_pulse",
|
||||
"delay_100",
|
||||
"short_pulse"
|
||||
]
|
||||
},
|
||||
"bad_negative_brake_duration":{
|
||||
"comments":"Negative duration",
|
||||
"notes":[
|
||||
{
|
||||
"id":"short_pulse",
|
||||
"vibe_duration_ms":15,
|
||||
"brake_duration_ms":-9,
|
||||
"strength":100
|
||||
},
|
||||
{
|
||||
"id":"delay_100",
|
||||
"vibe_duration_ms":100,
|
||||
"brake_duration_ms":0,
|
||||
"strength":0
|
||||
}
|
||||
],
|
||||
"pattern":[
|
||||
"short_pulse",
|
||||
"delay_100",
|
||||
"short_pulse"
|
||||
]
|
||||
},
|
||||
"bad_strength_greater_than_100":{
|
||||
"comments":"Strength greater than 100",
|
||||
"notes":[
|
||||
{
|
||||
"id":"short_pulse",
|
||||
"vibe_duration_ms":15,
|
||||
"brake_duration_ms":9,
|
||||
"strength":150
|
||||
},
|
||||
{
|
||||
"id":"delay_100",
|
||||
"vibe_duration_ms":100,
|
||||
"brake_duration_ms":0,
|
||||
"strength":0
|
||||
}
|
||||
],
|
||||
"pattern":[
|
||||
"short_pulse",
|
||||
"delay_100",
|
||||
"short_pulse"
|
||||
]
|
||||
},
|
||||
"nonzero_repeating_delay":{
|
||||
"comments":"Haptic double-pulse",
|
||||
"notes":[
|
||||
{
|
||||
"id":"short_pulse",
|
||||
"vibe_duration_ms":15,
|
||||
"brake_duration_ms":9,
|
||||
"strength":100
|
||||
},
|
||||
{
|
||||
"id":"delay_100",
|
||||
"vibe_duration_ms":100,
|
||||
"brake_duration_ms":0,
|
||||
"strength":0
|
||||
}
|
||||
],
|
||||
"pattern":[
|
||||
"short_pulse",
|
||||
"delay_100",
|
||||
"short_pulse"
|
||||
],
|
||||
"repeat_delay_ms":1092
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user