Skip to content

Commit

Permalink
Revert "PaymentRequest: fixes allowpaymentrequest test errors (#6418)"
Browse files Browse the repository at this point in the history
This reverts commit 9a6a1f4.
  • Loading branch information
zcorpan committed Aug 16, 2017
1 parent 88661a9 commit 1ccb88c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(...)?', '*');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(...)?', '*');
Expand Down

0 comments on commit 1ccb88c

Please sign in to comment.