https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 26a6598cc1da7924bc2eeb5e83603e0881ce68ae authored by Emilio Cobos Álvarez on 09 April 2018, 07:01:25 UTC
Make LazyFC assertions actually hold.
Tip revision: 26a6598
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