https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c366d0e0c10ab968e6fb97fbd98b1c9abb00a93c authored by Alex Moshchuk on 19 April 2018, 17:55:30 UTC
Fix incorrect unreachable_func in CSP layout tests.
Tip revision: c366d0e
payment-request-not-exposed.https.worker.js
importScripts("/resources/testharness.js");

test(function() {
  assert_true(isSecureContext);
  assert_false('PaymentRequest' in self);
  assert_false('PaymentRequestUpdateEvent' in self);
  assert_false('PaymentResponse' in self);
  assert_false('PaymentAddress' in self);
}, "PaymentRequest constructor must not be exposed in worker global scope");

done();
back to top