Files
firefox/testing/web-platform/tests/payment-request/payment-request-not-exposed.https.worker.js
Blink WPT Bot e2d6372a00 Bug 1447525 [wpt PR 8641] - PaymentRequest: Apply [Exposed=Window] to the PaymentRequest API, a=testonly
Automatic update from web-platform-testsPaymentRequest: Apply [Exposed=Window] to the PaymentRequest API (#8641)

There is no behavior change but add a test to check it.
--

wpt-commits: ce44721696b37c0d9c4629435f2d4ca692d8a272
wpt-pr: 8641
2018-05-18 11:15:13 +01:00

8 lines
217 B
JavaScript

importScripts("/resources/testharness.js");
test(() => {
assert_true(isSecureContext);
assert_false('PaymentRequest' in self);
}, "PaymentRequest constructor must not be exposed in worker global scope");
done();