https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7a44da74a0dc0c711f89fc8ddbe55fb97e0b0e4a authored by kritisingh1 on 26 March 2018, 09:33:08 UTC
adding a separate test file to test in reverse direction
Tip revision: 7a44da7
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