Index: third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-enabledforall.php |
diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-enabledforall.php b/third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-enabledforall.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4c6d52926fa800e8f3c684dc8cec2655fbf3b8bd |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-enabledforall.php |
@@ -0,0 +1,25 @@ |
+<?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 payment feature when enabled for all works across |
+// all origins regardless whether allowpaymentrequest is set. (Feature policy |
+// header takes precedence over the absence of allowpaymentrequest.) |
+ |
+Header("Feature-Policy: {\"payment\": [\"*\"]}"); |
+?> |
+ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.dumpChildFramesAsText(); |
+ } |
+</script> |
+<iframe id="f1" src="resources/feature-policy-payment-enabled.html"></iframe> |
+<iframe id="f2" src="http://localhost:8000/feature-policy/resources/feature-policy-payment-enabled.html"></iframe> |
+<iframe id="f3" src="resources/feature-policy-payment-enabled.html" allowpaymentrequest></iframe> |
+<iframe id="f4" src="http://localhost:8000/feature-policy/resources/feature-policy-payment-enabled.html" allowpaymentrequest></iframe> |