https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 940c743ef143aa60d71f4c3236c24572d53ecc5d authored by Eric Willigers on 12 April 2018, 14:56:39 UTC
Update by testing Firefox nightly 61.01a
Tip revision: 940c743
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