https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7578e333cabf4c2ddeaed1a9fc57cbc18502bc02 authored by Jonathon Kereliuk on 21 March 2018, 14:01:39 UTC
fix trailing whitespace
Tip revision: 7578e33
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