https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9a6904deeb2b2ae3400cc348badbb86db6c2ddb4 authored by Joshua Bell on 13 March 2018, 18:06:21 UTC
HTTPS-ify other links
Tip revision: 9a6904d
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