https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f697d7f44055ac06feac4a2723a100623862cea1 authored by Anne van Kesteren on 16 April 2018, 04:59:06 UTC
clearer function name
Tip revision: f697d7f
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