4 <title>Test for Bug
1408250</title>
5 <meta content=
"text/html;charset=utf-8" http-equiv=
"Content-Type">
6 <meta content=
"utf-8" http-equiv=
"encoding">
7 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <script type=
"text/javascript">
11 SimpleTest
.waitForExplicitFinish();
13 function testInNone10s() {
14 return new Promise((resolve
,reject
) => {
15 const supportedInstruments
= [{
16 supportedMethods
: "basic-card",
22 amount
: { currency
: "USD", value
: "55.00" }
26 const payRequest
= new PaymentRequest(supportedInstruments
, details
);
27 ok(false, "Unexpected, new PaymentRequest() can not be used in non-e10s.");
29 ok(err
.name
, "ReferenceError",
30 "Expected ReferenceError when calling new PaymentRequest()");
39 .then(SimpleTest
.finish
)
41 ok(false, "Unexpected error: " + e
.name
);
46 window
.addEventListener('load', function() {
47 SpecialPowers
.pushPrefEnv({
49 ['dom.payments.request.enabled', true],
56 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1408250">Mozilla Bug
1408250</a>