| Index: third_party/WebKit/LayoutTests/vibration/vibration-exceptions.html
|
| diff --git a/third_party/WebKit/LayoutTests/vibration/vibration-exceptions.html b/third_party/WebKit/LayoutTests/vibration/vibration-exceptions.html
|
| index ee16c08ea9b7958fec472fb8b58f34fad2f61c15..66c16476c7ef264e6ad10fd62d9d2a9a06e0a3f9 100644
|
| --- a/third_party/WebKit/LayoutTests/vibration/vibration-exceptions.html
|
| +++ b/third_party/WebKit/LayoutTests/vibration/vibration-exceptions.html
|
| @@ -1,12 +1,19 @@
|
| <html>
|
| <head>
|
| <script src="../resources/js-test.js"></script>
|
| +<script src="../resources/user-gesture-utils.js"></script>
|
| <script src="vibration-utils.js"></script>
|
| </head>
|
| <body>
|
| +<h4 id="test"></h4>
|
| <script>
|
| description('Tests that bad input throws exceptions in the Vibration API.');
|
|
|
| +// Simulates a user click for vibrate to be allowed.
|
| +// See: https://www.chromestatus.com/feature/5644273861001216.
|
| +var element = document.getElementById("test");
|
| +simulateUserClick(element.offsetLeft + 2, element.offsetTop + 2);
|
| +
|
| shouldThrow("navigator.vibrate()");
|
| shouldBe("navigator.vibrate(1, 2)", "true");
|
| shouldBe("navigator.vibrate([1], [2])", "true");
|
|
|