https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 5f32ba4f5129de8d87c9111d09754820d959ae68 authored by Jonathon Kereliuk on 04 April 2018, 18:16:38 UTC
added testdriver automation
Tip revision: 5f32ba4
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