OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> |
| 4 <script src="../serviceworker/resources/test-helpers.js"></script> |
| 5 <script> |
| 6 // Tests that the expected Payment App API interfaces are being exposed on bot
h |
| 7 // the Service Worker and Document global scopes. |
| 8 service_worker_test( |
| 9 'resources/payment-app.js', |
| 10 'Exposure of interfaces in a Service Worker.'); |
| 11 |
| 12 test(function() { |
| 13 assert_own_property(self, 'PaymentAppManager', 'PaymentAppManager needs to
be exposed as a global.'); |
| 14 |
| 15 assert_own_property(PaymentAppManager.prototype, 'setManifest'); |
| 16 assert_own_property(PaymentAppManager.prototype, 'getManifest'); |
| 17 }, 'PaymentAppManager should be exposed and have the expected interface in a D
ocument.'); |
| 18 </script> |
OLD | NEW |