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