https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 5da5b1d402f90f0a29ea93a0cc51b304f010622f authored by Fuqiao Xue on 09 April 2018, 14:20:17 UTC
Fix spacing issues
Tip revision: 5da5b1d
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