mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision cf261625e2d230ab219eec966f4abe26e3401b64
This commit is contained in:
parent
11a89bcc47
commit
8f98acd0e7
297 changed files with 3396 additions and 1555 deletions
|
@ -0,0 +1,26 @@
|
|||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
'use strict';
|
||||
|
||||
// https://w3c.github.io/pointerlock/
|
||||
|
||||
promise_test(async () => {
|
||||
const html = await fetch('/interfaces/html.idl').then(r => r.text());
|
||||
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
|
||||
const uievents = await fetch('/interfaces/uievents.idl').then(r => r.text());
|
||||
const idl = await fetch('/interfaces/pointerlock.idl').then(r => r.text());
|
||||
|
||||
const idl_array = new IdlArray();
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_dependency_idls(uievents);
|
||||
idl_array.add_dependency_idls(dom);
|
||||
idl_array.add_dependency_idls(html);
|
||||
|
||||
idl_array.add_objects({
|
||||
Document: ["window.document"],
|
||||
Element: ["window.document.documentElement"],
|
||||
MouseEvent: ["new MouseEvent('foo')"]
|
||||
});
|
||||
idl_array.test();
|
||||
}, 'pointerlock interfaces.');
|
Loading…
Add table
Add a link
Reference in a new issue