Update web-platform-tests to revision fb15e14b52049f952612623ee0d7fb7a620a57c9

This commit is contained in:
WPT Sync Bot 2018-11-01 21:34:37 -04:00
parent 200cc8aa6b
commit 4a942c982f
141 changed files with 2563 additions and 1589 deletions

View file

@ -77,7 +77,7 @@ function runTests(registration) {
},
],
method: 'basic-card',
capabilities: {supportedNetworks: ['mir'], supportedTypes: ['prepaid']},
capabilities: {supportedNetworks: ['mir']},
},
);
const result = await registration.paymentManager.instruments.get(
@ -104,7 +104,7 @@ function runTests(registration) {
{src: '/images/green-16x16.png', sizes: '16x16', type: 'image/png'},
],
method: 'basic-card',
capabilities: {supportedNetworks: ['mir'], supportedTypes: ['prepaid']},
capabilities: {supportedNetworks: ['mir']},
},
);
let result = await registration.paymentManager.instruments.get(
@ -120,7 +120,6 @@ function runTests(registration) {
assert_equals(result.icons[0].type, 'image/png');
assert_equals(result.method, 'basic-card');
assert_array_equals(result.capabilities.supportedNetworks, ['mir']);
assert_array_equals(result.capabilities.supportedTypes, ['prepaid']);
await registration.paymentManager.instruments.set(
'existing-instrument-key',
{
@ -133,7 +132,7 @@ function runTests(registration) {
},
],
method: 'basic-card',
capabilities: {supportedNetworks: ['visa'], supportedTypes: ['credit']},
capabilities: {supportedNetworks: ['visa']},
},
);
result = await registration.paymentManager.instruments.get(
@ -149,7 +148,6 @@ function runTests(registration) {
assert_equals(result.icons[0].type, 'image/png');
assert_equals(result.method, 'basic-card');
assert_array_equals(result.capabilities.supportedNetworks, ['visa']);
assert_array_equals(result.capabilities.supportedTypes, ['credit']);
}, 'Resetting an existing instrument updates the instrument');
promise_test(async t => {
@ -166,7 +164,7 @@ function runTests(registration) {
},
],
method: 'basic-card',
capabilities: {supportedNetworks: ['mir'], supportedTypes: ['prepaid']},
capabilities: {supportedNetworks: ['mir']},
},
);
await registration.paymentManager.instruments.clear();