Index: third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-enabledforall.php |
diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-enabledforall.php b/third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-enabledforall.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..471f7b05bef19d1763655c6a3cafd20a3ace4252 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-enabledforall.php |
@@ -0,0 +1,28 @@ |
+<?php |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// This test ensures that navigator.vibrate when enabled for all works across |
+// origins. |
+ |
+Header("Feature-Policy: {\"vibrate\": [\"*\"]}"); |
+?> |
+ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.dumpChildFramesAsText(); |
+ } |
+</script> |
+</head> |
+<body> |
+<iframe id="f1" src="resources/feature-policy-vibrate-enabled.html"></iframe> |
+<iframe id="f2" src="http://localhost:8000/feature-policy/resources/feature-policy-vibrate-enabled.html"></iframe> |
+</body> |
+</html> |