https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d3cec900217a525b6da759c9194838632f0bf27d authored by Yutaka Hirano on 27 March 2018, 06:25:56 UTC
fix
Tip revision: d3cec90
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