https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 224b3098a86c3928063db1d85c82978363ffd90b authored by Kent Tamura on 02 April 2018, 08:48:54 UTC
custom-elements: Add tests for callback timing with HTML parser.
Tip revision: 224b309
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