https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1734d700b8e431e4d01690be0558e91d15fc2a79 authored by Andreas Tolfsen on 13 April 2018, 13:33:50 UTC
Test serialisation of collections in wdspec.
Tip revision: 1734d70
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