blob: 6c867be21ce2314b30a17210c17619c7d9bb5732 [file] [log] [blame]
This is a testharness.js-based test.
FAIL PaymentRequest.show() aborts if the document is not active assert_throws: Inactive document, so must throw AbortError function "function() { throw e }" threw object "InvalidStateError: Already called show() once" that is not a DOMException AbortError: property "code" is equal to 11, expected 20
FAIL PaymentRequest.show() aborts if the document is active, but not fully active assert_throws: Active, but not fully active, so must throw AbortError function "function() { throw e }" threw object "InvalidStateError: Already called show() once" that is not a DOMException AbortError: property "code" is equal to 11, expected 20
FAIL If a payment request is showing, but its document is navigated away (so no longer fully active), the payment request aborts. assert_throws: The iframe was navigated away, so showPromise must reject with AbortError function "function() { throw e }" threw object "UnknownError: Request failed" that is not a DOMException AbortError: property "code" is equal to 0, expected 20
Harness: the test ran to completion.