https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9c9417e5255836be1d428e82b48b92070258efd8 authored by Tsuyoshi Horo on 02 April 2018, 03:41:31 UTC
Set SkipServiceWorker flag for synchronous loads from the main thread.
Tip revision: 9c9417e
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