OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../resources/js-test.js"></script> | 3 <script src="../resources/js-test.js"></script> |
4 <script src="vibration-utils.js"></script> | 4 <script src="vibration-utils.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('Tests that bad input throws exceptions in the Vibration API.'); | 8 description('Tests that bad input throws exceptions in the Vibration API.'); |
9 | 9 |
10 shouldThrow("navigator.vibrate();"); | 10 shouldThrow("navigator.vibrate()"); |
11 shouldThrow("navigator.vibrate(1, 2);"); | 11 shouldBe("navigator.vibrate(1, 2)", "true"); |
12 shouldThrow("navigator.vibrate([1], [2]);"); | 12 shouldBe("navigator.vibrate([1], [2])", "true"); |
13 | 13 |
14 </script> | 14 </script> |
15 </body> | 15 </body> |
16 </html> | 16 </html> |
OLD | NEW |