Skip to content

Commit

Permalink
Fix some NotAllowedError --> SecurityError cases for PaymentRequest.s…
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmcgruer authored Aug 13, 2021
1 parent e26769d commit ee2d179
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions payment-request/payment-request-show-method.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
request.abort();
}, 2000);

await promise_rejects_dom(t, "NotAllowedError", acceptPromise);
await promise_rejects_dom(t, "SecurityError", acceptPromise);
}, `Calling show() without being triggered by user interaction throws`);

promise_test(async (t) => {
Expand All @@ -56,7 +56,7 @@
);
const acceptPromise = request.show(); // Sets state to "interactive"
// No user activation...
await promise_rejects_dom(t, "NotAllowedError", request.show());
await promise_rejects_dom(t, "SecurityError", request.show());

// Get user activation
await test_driver.bless(
Expand All @@ -76,7 +76,7 @@
const acceptPromise1 = request1.show();

// User activation consumed, so...
await promise_rejects_dom(t, "NotAllowedError", request2.show());
await promise_rejects_dom(t, "SecurityError", request2.show());

// Payment request already showing, so...
await test_driver.bless("payment request");
Expand Down

0 comments on commit ee2d179

Please sign in to comment.