diff --git a/payment-request/allowpaymentrequest/removing-allowpaymentrequest.https.sub.html b/payment-request/allowpaymentrequest/removing-allowpaymentrequest.https.sub.html index fcd7f1d3ca0254..048b93a964b9b6 100644 --- a/payment-request/allowpaymentrequest/removing-allowpaymentrequest.https.sub.html +++ b/payment-request/allowpaymentrequest/removing-allowpaymentrequest.https.sub.html @@ -13,7 +13,7 @@ const path = location.pathname.substring(0, location.pathname.lastIndexOf('/') + 1); iframe.src = "https://{{domains[www1]}}:{{ports[https][0]}}" + path + "echo-PaymentRequest.html"; iframe.onload = t.step_func(() => { - if (i === 1) { + if (i === 0) { iframe.allowPaymentRequest = false; } iframe.contentWindow.postMessage('What is the result of new PaymentRequest(...)?', '*'); diff --git a/payment-request/allowpaymentrequest/setting-allowpaymentrequest-timing.https.sub.html b/payment-request/allowpaymentrequest/setting-allowpaymentrequest-timing.https.sub.html index 6a1221450e8345..c7ed3aeab448eb 100644 --- a/payment-request/allowpaymentrequest/setting-allowpaymentrequest-timing.https.sub.html +++ b/payment-request/allowpaymentrequest/setting-allowpaymentrequest-timing.https.sub.html @@ -18,7 +18,8 @@ }); window.onmessage = t.step_func_done((e) => { - assert_equals(e.data.message, 'Success'); + assert_equals(e.data.message, 'Exception'); + assert_array_equals(e.data.details, [true /* ex instanceof DOMException*/, 18 /* ex.code */, 'SecurityError' /* ex.name */]); }); document.body.appendChild(iframe); diff --git a/payment-request/allowpaymentrequest/setting-allowpaymentrequest.https.sub.html b/payment-request/allowpaymentrequest/setting-allowpaymentrequest.https.sub.html index bf6fe14fc74662..4564d264c4e2c5 100644 --- a/payment-request/allowpaymentrequest/setting-allowpaymentrequest.https.sub.html +++ b/payment-request/allowpaymentrequest/setting-allowpaymentrequest.https.sub.html @@ -13,7 +13,7 @@ const path = location.pathname.substring(0, location.pathname.lastIndexOf('/') + 1); iframe.src = "https://{{domains[www1]}}:{{ports[https][0]}}" + path + "echo-PaymentRequest.html"; iframe.onload = t.step_func(() => { - if (i === 1) { + if (i === 0) { iframe.allowPaymentRequest = true; } iframe.contentWindow.postMessage('What is the result of new PaymentRequest(...)?', '*');