blob: 85c2f300f0b8b0bf8f99dd830a2323b3f230caf2 [file] [log] [blame]
Tests that a page with a PaymentRequest in the Interactive state goes into the back/forward cache.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Creating a PaymentRequest in the Interactive state.
pageshow - not from cache
pagehide - entering cache
pageshow - from cache
PASS Page did enter and was restored from the back/forward cache
Testing that the promise returned by show() was rejected with "AbortError".
PASS responsePromise rejected promise with AbortError: The operation was aborted..
Testing that PaymentRequest is now in the Closed state.
PASS request.abort() rejected promise with InvalidStateError: The object is in an invalid state..
PASS successfullyParsed is true
TEST COMPLETE