https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c952312a927eb56c33bf72d2062c6986cac96ff0 authored by Darwin Huang on 26 December 2018, 21:55:09 UTC
Async Clipboard Refactor: Update tests to use arrow functions
Tip revision: c952312
historical.https.html
<!doctype html>
<meta charset=utf-8>
<title>Historical Basic Card Changes</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
// https://github.com/w3c/payment-method-basic-card/pull/62
test(() => {
  try {
    new PaymentRequest(
      [
        {
          supportedMethods: "basic-card",
          supportedTypes: [
            "this was an enum value once - so this would have thrown",
          ],
        },
      ],
      { total: { label: "bar", amount: { currency: "BAZ", value: "0" } } }
    );
  } catch (err) {
    assert_unreached("Unexpected error");
  }
}, "supportedTypes and BasicCardType enum were removed from the spec");
</script>
back to top