1 Tests for how durations are handled in the Vibration API.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS navigator.vibrate([]) is true
7 PASS areArraysEqual(internals.pendingVibrationPattern(document), []) is true
8 PASS internals.isVibrating(document) is false
9 PASS navigator.vibrate(0) is true
10 PASS areArraysEqual(internals.pendingVibrationPattern(document), []) is true
11 PASS internals.isVibrating(document) is false
12 PASS navigator.vibrate([0]) is true
13 PASS areArraysEqual(internals.pendingVibrationPattern(document), []) is true
14 PASS internals.isVibrating(document) is false
15 PASS navigator.vibrate(10000) is true
16 PASS areArraysEqual(internals.pendingVibrationPattern(document), [10000]) is true
17 PASS internals.isVibrating(document) is true
18 PASS navigator.vibrate(10001) is true
19 PASS areArraysEqual(internals.pendingVibrationPattern(document), [10000]) is true
20 PASS internals.isVibrating(document) is true
21 PASS navigator.vibrate([10001, 10001, 10001]) is true
22 PASS areArraysEqual(internals.pendingVibrationPattern(document), [10000, 10000, 10000]) is true
23 PASS internals.isVibrating(document) is true
24 PASS navigator.vibrate(-1) is true
25 PASS areArraysEqual(internals.pendingVibrationPattern(document), []) is true
26 PASS internals.isVibrating(document) is false
27 PASS navigator.vibrate([-1, -1, -1]) is true
28 PASS areArraysEqual(internals.pendingVibrationPattern(document), [10000, 10000, 10000]) is true
29 PASS internals.isVibrating(document) is true
30 PASS successfullyParsed is true