mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision fc33be9acfbf8e883fd9683c527aab22d842542b
This commit is contained in:
parent
d232705106
commit
09b1413275
32 changed files with 1112 additions and 577 deletions
|
@ -0,0 +1,30 @@
|
|||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
'use strict';
|
||||
|
||||
if (self.importScripts) {
|
||||
importScripts('/resources/testharness.js');
|
||||
importScripts('/resources/WebIDLParser.js', '/resources/idlharness.js');
|
||||
}
|
||||
|
||||
// https://w3c.github.io/webauthn/
|
||||
|
||||
promise_test(async () => {
|
||||
const webauthnIdl = await fetch('/interfaces/webauthn.idl').then(r => r.text());
|
||||
|
||||
const idlArray = new IdlArray();
|
||||
idlArray.add_idls(webauthnIdl);
|
||||
|
||||
// static IDL tests
|
||||
idlArray.add_untested_idls('interface CredentialCreationOptions {};');
|
||||
idlArray.add_untested_idls('interface CredentialRequestOptions {};');
|
||||
idlArray.add_untested_idls("interface Navigator { };");
|
||||
// TODO: change to "tested" for real browsers?
|
||||
idlArray.add_untested_idls("partial interface Navigator { readonly attribute WebAuthentication authentication; };");
|
||||
idlArray.add_objects({
|
||||
WebAuthentication: ["navigator.authentication"]
|
||||
});
|
||||
idlArray.test();
|
||||
done();
|
||||
}, 'WebAuthn interfaces.');
|
Loading…
Add table
Add a link
Reference in a new issue