OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <title>Feature-Policy Vibrate Enabled</title> | 3 <title>Feature-Policy Vibrate Enabled</title> |
4 <script src="/resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
5 <script src="/resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <script src="/js-test-resources/user-gesture-utils.js"></script> |
6 </head> | 7 </head> |
| 8 <h4 id="test"></h4> |
7 <script> | 9 <script> |
8 test(function() { | 10 // Simulates a user click for vibrate to be allowed. |
9 assert_true(navigator.vibrate(200)); | 11 simulateUserClick("test"); |
10 }, 'Any iframe may call navigator.vibrate when enabled.'); | 12 |
| 13 test(function() { |
| 14 assert_true(navigator.vibrate(200)); |
| 15 }, 'Any iframe may call navigator.vibrate when enabled.'); |
11 </script> | 16 </script> |
OLD | NEW |