mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision d75cd4df6722acef7224eb6edcdc52b125680dad
This commit is contained in:
parent
1af15054e7
commit
d18b651358
120 changed files with 3588 additions and 1362 deletions
|
@ -5,20 +5,15 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
promise_test(async () => {
|
||||
const srcs = ['audio-output', 'dom', 'html'];
|
||||
const [idl, dom, html] = await Promise.all(
|
||||
srcs.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));
|
||||
|
||||
const idl_array = new IdlArray();
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_dependency_idls(html);
|
||||
idl_array.add_dependency_idls(dom);
|
||||
self.audio = document.createElement('audio');
|
||||
self.video = document.createElement('video');
|
||||
idl_array.add_objects({
|
||||
HTMLAudioElement: ['audio'],
|
||||
HTMLVideoElement: ['video']
|
||||
});
|
||||
idl_array.test();
|
||||
}, 'Test IDL implementation of audio-output API');
|
||||
idl_test(
|
||||
['audio-output'],
|
||||
['html', 'dom'],
|
||||
idl_array => {
|
||||
self.audio = document.createElement('audio');
|
||||
self.video = document.createElement('video');
|
||||
idl_array.add_objects({
|
||||
HTMLAudioElement: ['audio'],
|
||||
HTMLVideoElement: ['video']
|
||||
});
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue