https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 29ad6b8c4b678cdb1ab4649f8b3acf54cd56bccc authored by Anne van Kesteren on 24 September 2018, 14:41:07 UTC
Fetch/HTTP: test WWW-Authenticate parsing
Tip revision: 29ad6b8
idlharness.window.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

// https://w3c.github.io/mediacapture-output/

'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');
back to top