https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 952bda327c9bc8efae043de3071d0421efe702d1 authored by Boris Zbarsky on 26 March 2018, 18:16:29 UTC
part 3. Add testing for what mutation observers happen when doing DOMTokenList.replace.
Tip revision: 952bda3
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