| Index: third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-vibrate-enabled.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-vibrate-enabled.html b/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-vibrate-enabled.html
|
| index 81d57692cb5f314a039e16df4052865a942c0faa..8e2062785dd21f6d3992b5592eccc52b06c3a834 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-vibrate-enabled.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-vibrate-enabled.html
|
| @@ -3,9 +3,14 @@
|
| <title>Feature-Policy Vibrate Enabled</title>
|
| <script src="/resources/testharness.js"></script>
|
| <script src="/resources/testharnessreport.js"></script>
|
| + <script src="/js-test-resources/user-gesture-utils.js"></script>
|
| </head>
|
| +<h4 id="test"></h4>
|
| <script>
|
| - test(function() {
|
| - assert_true(navigator.vibrate(200));
|
| - }, 'Any iframe may call navigator.vibrate when enabled.');
|
| +// Simulates a user click for vibrate to be allowed.
|
| +simulateUserClick("test");
|
| +
|
| +test(function() {
|
| + assert_true(navigator.vibrate(200));
|
| +}, 'Any iframe may call navigator.vibrate when enabled.');
|
| </script>
|
|
|