https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1101ef63dcdfb3907438051240112a47a944f178 authored by Mike on 26 March 2018, 14:36:23 UTC
Fixed references to wrong reference tests
Tip revision: 1101ef6
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