https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ce1ce6065b70a59939b184582587b7578da06b72 authored by Chris Nardi on 07 April 2018, 03:56:07 UTC
Update serialization of timing functions
Tip revision: ce1ce60
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