https://github.com/web-platform-tests/wpt
Raw File
Tip revision: b6d437037393dc8b289bfb3504fc21a808760be3 authored by Michael[tm] Smith on 23 March 2018, 10:42:57 UTC
cc Update messages.json
Tip revision: b6d4370
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