OLD | NEW |
1 <?php | 1 <?php |
2 // Copyright 2016 The Chromium Authors. All rights reserved. | 2 // Copyright 2016 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 // This test ensures that navigator.vibrate when enabled for all works across | 6 // This test ensures that navigator.vibrate when enabled for all works across |
7 // origins. | 7 // origins. |
8 | 8 |
9 Header("Feature-Policy: {\"vibrate\": [\"*\"]}"); | 9 Header("Feature-Policy: {\"vibrate\": [\"*\"]}"); |
10 ?> | 10 ?> |
11 | 11 |
12 <!DOCTYPE html> | 12 <!DOCTYPE html> |
13 <html> | |
14 <head> | |
15 <script src="../../resources/testharness.js"></script> | 13 <script src="../../resources/testharness.js"></script> |
16 <script src="../../resources/testharnessreport.js"></script> | 14 <script src="../../resources/testharnessreport.js"></script> |
17 <script> | 15 <script> |
18 if (window.testRunner) { | 16 if (window.testRunner) { |
19 testRunner.dumpAsText(); | 17 testRunner.dumpAsText(); |
20 testRunner.dumpChildFramesAsText(); | 18 testRunner.dumpChildFramesAsText(); |
21 } | 19 } |
22 </script> | 20 </script> |
23 </head> | |
24 <body> | |
25 <iframe id="f1" src="resources/feature-policy-vibrate-enabled.html"></iframe> | 21 <iframe id="f1" src="resources/feature-policy-vibrate-enabled.html"></iframe> |
26 <iframe id="f2" src="http://localhost:8000/feature-policy/resources/feature-poli
cy-vibrate-enabled.html"></iframe> | 22 <iframe id="f2" src="http://localhost:8000/feature-policy/resources/feature-poli
cy-vibrate-enabled.html"></iframe> |
27 </body> | |
28 </html> | |
OLD | NEW |