https://github.com/web-platform-tests/wpt
Raw File
Tip revision: b8dcfbef3d702adeff8d33ed6e954c7303c91eb9 authored by Simon Pieters on 28 June 2018, 17:29:40 UTC
Lint that META.yml files exist
Tip revision: b8dcfbe
interfaces.https.any.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

// https://w3c.github.io/webauthn/

'use strict';

promise_test(async () => {
  const webauthnIdl = await fetch('/interfaces/webauthn.idl').then(r => r.text());
  const creds = await fetch('/interfaces/credential-management.idl').then(r => r.text());

  const idlArray = new IdlArray();
  idlArray.add_idls(webauthnIdl);
  idlArray.add_dependency_idls(creds);
  idlArray.add_objects({
    WebAuthentication: ["navigator.authentication"]
  });
  idlArray.test();
  done();
}, 'WebAuthn interfaces.');
back to top