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 |
| 7 promise_test(test => { |
| 8 var registration; |
| 9 var script_url = 'resources/empty-worker.js'; |
| 10 var scope = 'resources/'; |
| 11 |
| 12 return service_worker_unregister_and_register(test, script_url, scope) |
| 13 .then(r => { |
| 14 registration = r; |
| 15 return wait_for_state(test, registration.installing, 'activated'); |
| 16 }) |
| 17 .then(state => { |
| 18 assert_equals(state, 'activated'); |
| 19 return registration.paymentAppManager.setManifest({ |
| 20 label: 'Payment App' |
| 21 }); |
| 22 }) |
| 23 .then(result => { |
| 24 unreached_fulfillment(test); |
| 25 }) |
| 26 .catch(error => { |
| 27 assert_equals(error.name, 'NotSupportedError'); |
| 28 }); |
| 29 }, 'setManifest() should reject NotSupportedError for now'); |
| 30 |
| 31 </script> |
OLD | NEW |