OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../fast/js/resources/js-test-pre.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 shouldThrow("navigator.vibrate(1, 2);"); |
12 shouldThrow("navigator.vibrate([1], [2]);"); | 12 shouldThrow("navigator.vibrate([1], [2]);"); |
13 | 13 |
14 </script> | 14 </script> |
15 <script src="../fast/js/resources/js-test-post.js"></script> | |
16 </body> | 15 </body> |
17 </html> | 16 </html> |
OLD | NEW |