| Index: third_party/WebKit/LayoutTests/http/tests/payments/payment-app-interfaces.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/payments/payment-app-interfaces.html b/third_party/WebKit/LayoutTests/http/tests/payments/payment-app-interfaces.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3f7ebe24f79275bcea74e5f093e0b11c6956e193
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/payments/payment-app-interfaces.html
|
| @@ -0,0 +1,18 @@
|
| +<!doctype html>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script src="../serviceworker/resources/test-helpers.js"></script>
|
| +<script>
|
| + // Tests that the expected Payment App API interfaces are being exposed on both
|
| + // the Service Worker and Document global scopes.
|
| + service_worker_test(
|
| + 'resources/payment-app.js',
|
| + 'Exposure of interfaces in a Service Worker.');
|
| +
|
| + test(function() {
|
| + assert_own_property(self, 'PaymentAppManager', 'PaymentAppManager needs to be exposed as a global.');
|
| +
|
| + assert_own_property(PaymentAppManager.prototype, 'setManifest');
|
| + assert_own_property(PaymentAppManager.prototype, 'getManifest');
|
| + }, 'PaymentAppManager should be exposed and have the expected interface in a Document.');
|
| +</script>
|
|
|