https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e79e440e2b25551d21149ef336ab06ea16c43fdc authored by Anne van Kesteren on 03 April 2018, 13:01:37 UTC
missed one
Tip revision: e79e440
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