Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/payments/payment-app-manager.html

Issue 2476343002: PaymentApp: Initial implementation for PaymentAppManager.setManifest(). (Closed)
Patch Set: fix lint error Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698