Index: third_party/WebKit/LayoutTests/http/tests/payments/payment-request-event.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/payments/payment-request-event.html b/third_party/WebKit/LayoutTests/http/tests/payments/payment-request-event.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b358ec44e36c145efc65436131968383c7eb029c |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/payments/payment-request-event.html |
@@ -0,0 +1,17 @@ |
+<!doctype html> |
+<meta charset="utf-8"> |
+<title>Payment App: Tests for PaymentRequestEvent</title> |
+<link rel="help" href="https://w3c.github.io/webpayments-payment-apps-api/#the-paymentrequest-event"> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script src="../serviceworker/resources/test-helpers.js"></script> |
+<script> |
+'use strict'; |
+ |
+// Tests that the PaymentRequestEvent is in a ServiceWorkerGloablContext and |
+// exposes its members (e.g. respondWith, waitUntil and data). |
+service_worker_test( |
+ 'resources/payment-request-event.js', |
+ 'Exposure of the PaymentRequestEvent object in a Service Worker.'); |
+ |
+</script> |