tor-browser

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

historical.https.html (718B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>Historical Basic Card Changes</title>
      4 <script src=/resources/testharness.js></script>
      5 <script src=/resources/testharnessreport.js></script>
      6 <script>
      7 // https://github.com/w3c/payment-method-basic-card/pull/62
      8 test(() => {
      9  try {
     10    new PaymentRequest(
     11      [
     12        {
     13          supportedMethods: "basic-card",
     14          supportedTypes: [
     15            "this was an enum value once - so this would have thrown",
     16          ],
     17        },
     18      ],
     19      { total: { label: "bar", amount: { currency: "BAZ", value: "0" } } }
     20    );
     21  } catch (err) {
     22    assert_unreached("Unexpected error");
     23  }
     24 }, "supportedTypes and BasicCardType enum were removed from the spec");
     25 </script>