https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 67ae39cdc366bf08f939907325ed1811ac67f3ac authored by Marcos Cáceres on 28 March 2018, 06:12:01 UTC
fix copy/pasta
Tip revision: 67ae39c
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