tor-browser

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

createcredential-hints.https.html (1032B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>WebAuthn createWithHints</title>
      6 <meta name="timeout" content="long">
      7 <link rel="help" href="https://w3c.github.io/webauthn/#sctn-public-key-easy">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/resources/testdriver.js"></script>
     11 <script src="/resources/testdriver-vendor.js"></script>
     12 <script src="helpers.js"></script>
     13 <script src="resources/utils.js"></script>
     14 <script>
     15 function testCreateWithHints() {
     16  "use strict";
     17 
     18  // The 'hints' parameter affects UI, which cannot be tested with WPTs.
     19  // However, we can check that unknown values are ignored, as they
     20  // should be, and don't trigger an error.
     21  standardSetup(function() {
     22    promise_test(async t => {
     23      return createCredential({
     24        options: {
     25          publicKey: {
     26            hints: ["not-a-defined-value"],
     27          },
     28        },
     29      });
     30    });
     31  });
     32 }
     33 
     34 testCreateWithHints();
     35 </script>
     36 </head>
     37 <body></body>
     38 </html>