Update web-platform-tests to revision d75cd4df6722acef7224eb6edcdc52b125680dad

This commit is contained in:
WPT Sync Bot 2019-08-28 10:36:33 +00:00
parent 1af15054e7
commit d18b651358
120 changed files with 3588 additions and 1362 deletions

View file

@ -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']
});
}
);