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

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

Issue 2562873002: [PaymentApp] label field was changed to name field in PaymentAppOption. (Closed)
Patch Set: [WIP] [PaymentApp] label -> name in PaymentAppOption. Created 4 years 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
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 6
7 promise_test(test => { 7 promise_test(test => {
8 var registration; 8 var registration;
9 var script_url = 'resources/empty-worker.js'; 9 var script_url = 'resources/empty-worker.js';
10 var scope = 'resources/'; 10 var scope = 'resources/';
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 + 'no installing worker, then throws InvalidStateError.'); 78 + 'no installing worker, then throws InvalidStateError.');
79 79
80 promise_test(test => { 80 promise_test(test => {
81 var registration; 81 var registration;
82 var script_url = 'resources/empty-worker.js'; 82 var script_url = 'resources/empty-worker.js';
83 var scope = 'resources/'; 83 var scope = 'resources/';
84 var manifest = { 84 var manifest = {
85 label: 'Payment App', 85 label: 'Payment App',
86 icon: 'payment-app-icon', 86 icon: 'payment-app-icon',
87 options: [{ 87 options: [{
88 label: 'Visa ****', 88 name: 'Visa ****',
89 icon: 'payment-app-icon', 89 icon: 'payment-app-icon',
90 id: 'payment-app-id', 90 id: 'payment-app-id',
91 enabledMethods: ['visa2'] 91 enabledMethods: ['visa2']
92 }] 92 }]
93 }; 93 };
94 94
95 return service_worker_unregister_and_register(test, script_url, scope) 95 return service_worker_unregister_and_register(test, script_url, scope)
96 .then(r => { 96 .then(r => {
97 registration = r; 97 registration = r;
98 return wait_for_state(test, registration.installing, 'activated'); 98 return wait_for_state(test, registration.installing, 'activated');
(...skipping 13 matching lines...) Expand all
112 }, 'If getManifest() is succeeded, then resolves stored manifest data.'); 112 }, 'If getManifest() is succeeded, then resolves stored manifest data.');
113 113
114 promise_test(test => { 114 promise_test(test => {
115 var registration; 115 var registration;
116 var script_url = 'resources/empty-worker.js'; 116 var script_url = 'resources/empty-worker.js';
117 var scope = 'resources/'; 117 var scope = 'resources/';
118 var manifest = { 118 var manifest = {
119 label: 'Payment App', 119 label: 'Payment App',
120 icon: 'payment-app-icon', 120 icon: 'payment-app-icon',
121 options: [{ 121 options: [{
122 label: 'Visa ****', 122 name: 'Visa ****',
123 icon: 'payment-app-icon', 123 icon: 'payment-app-icon',
124 id: 'payment-app-id', 124 id: 'payment-app-id',
125 enabledMethods: ['visa2'] 125 enabledMethods: ['visa2']
126 }] 126 }]
127 }; 127 };
128 128
129 return service_worker_unregister_and_register(test, script_url, scope) 129 return service_worker_unregister_and_register(test, script_url, scope)
130 .then(r => { 130 .then(r => {
131 registration = r; 131 registration = r;
132 return wait_for_state(test, registration.installing, 'activated'); 132 return wait_for_state(test, registration.installing, 'activated');
(...skipping 30 matching lines...) Expand all
163 assert_equals(state, 'activated'); 163 assert_equals(state, 'activated');
164 return registration.paymentAppManager.getManifest(); 164 return registration.paymentAppManager.getManifest();
165 }) 165 })
166 .then(unreached_fulfillment(test)) 166 .then(unreached_fulfillment(test))
167 .catch(error => { 167 .catch(error => {
168 assert_equals(error.name, 'AbortError'); 168 assert_equals(error.name, 'AbortError');
169 }); 169 });
170 }, 'If there is no manifest data, then throws AbortError.'); 170 }, 'If there is no manifest data, then throws AbortError.');
171 171
172 </script> 172 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698