| Index: third_party/WebKit/LayoutTests/vibration/vibration.html
|
| diff --git a/third_party/WebKit/LayoutTests/vibration/vibration.html b/third_party/WebKit/LayoutTests/vibration/vibration.html
|
| index 1dfcde4e5c3ecec5805f1eb368d1f31e11daad9e..65f1c3beb421c655bfc1be444ce0213da020d279 100644
|
| --- a/third_party/WebKit/LayoutTests/vibration/vibration.html
|
| +++ b/third_party/WebKit/LayoutTests/vibration/vibration.html
|
| @@ -2,7 +2,10 @@
|
| <script src="../resources/testharness.js"></script>
|
| <script src="../resources/testharnessreport.js"></script>
|
| <script src="../resources/mojo-helpers.js"></script>
|
| +<script src="../resources/user-gesture-utils.js"></script>
|
| <script src="resources/vibration-helpers.js"></script>
|
| +<script src="vibration-utils.js"></script>
|
| +<h4 id="test"></h4>
|
| <script>
|
|
|
| 'use strict';
|
| @@ -10,6 +13,11 @@
|
| if (!window.testRunner)
|
| debug('This test cannot be run without the TestRunner');
|
|
|
| +// 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);
|
| +
|
| vibration_test(vibration => {
|
| assert_true(vibration instanceof Object);
|
| assert_true(vibration.mockVibrationManager instanceof Object);
|
|
|