tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

can-make-payment-event-constructor.https.html (527B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>Test for CanMakePaymentEvent Constructor</title>
      4 <link rel="help" href="https://w3c.github.io/payment-handler/#dom-canmakepaymentevent">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
      8 <script>
      9 
     10 test(() => {
     11  assert_false('CanMakePaymentEvent' in window);
     12 }, 'CanMakePaymentEvent constructor must not be exposed in window');
     13 
     14 </script>