mirror of
https://github.com/servo/servo.git
synced 2025-08-29 17:18:23 +01:00
Update web-platform-tests to revision 9d009fc59a8f99e0117b841b7f49094cc690964c
This commit is contained in:
parent
42701e5588
commit
75857a918c
33 changed files with 645 additions and 127 deletions
|
@ -0,0 +1,23 @@
|
|||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
// https://wicg.github.io/media-capabilities/
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async () => {
|
||||
const idl = await fetch('/interfaces/media-capabilities.idl').then(r => r.text());
|
||||
const html = await fetch('/interfaces/html.idl').then(r => r.text());
|
||||
const cssomView = await fetch('/interfaces/cssom-view.idl').then(r => r.text());
|
||||
|
||||
var idl_array = new IdlArray();
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_dependency_idls(html);
|
||||
idl_array.add_dependency_idls(cssomView);
|
||||
|
||||
idl_array.add_objects({
|
||||
Navigator: ['navigator']
|
||||
});
|
||||
|
||||
idl_array.test();
|
||||
}, 'Test IDL implementation of Media Capabilities');
|
Loading…
Add table
Add a link
Reference in a new issue