https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c6fbe7e7254917992588d44e082a540b37abd035 authored by Josh Matthews on 14 March 2018, 15:06:50 UTC
Add a lint to catch adding files that would otherwise be ignored by git.
Tip revision: c6fbe7e
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