Index: third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-payment.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-payment.html b/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-payment.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..37b15570197d113fdb39c01ab505dbfca28c059e |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-payment.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<title>Feature-Policy PaymentRequest Disabled</title> |
+<script> |
+window.onload = function() { |
+ var supportedInstruments = [ { supportedMethods: [ 'visa' ] } ]; |
+ var details = { |
+ total: { label: 'Test', amount: { currency: 'USD', value: '5.00' } } |
+ }; |
+ try { |
+ new PaymentRequest(supportedInstruments, details); |
+ parent.postMessage({ enabled: true, name: 'N/A', message: 'N/A' }, '*'); |
+ } catch (e) { |
+ parent.postMessage({ enabled: false, name: e.name, message: e.message }, '*'); |
+ } |
+} |
+</script> |