Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / vibration / vibration-exceptions.html
blobee16c08ea9b7958fec472fb8b58f34fad2f61c15
1 <html>
2 <head>
3 <script src="../resources/js-test.js"></script>
4 <script src="vibration-utils.js"></script>
5 </head>
6 <body>
7 <script>
8 description('Tests that bad input throws exceptions in the Vibration API.');
10 shouldThrow("navigator.vibrate()");
11 shouldBe("navigator.vibrate(1, 2)", "true");
12 shouldBe("navigator.vibrate([1], [2])", "true");
14 </script>
15 </body>
16 </html>