зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1468258 [wpt PR 11466] - Clean up the webaudio idl test and add long timeout, a=testonly
Automatic update from web-platform-testsClean up the webaudio idl test and add long timeout Bug: 851320 Change-Id: I562fe492be73b0ad8929d8ae8be158230103157f Reviewed-on: https://chromium-review.googlesource.com/1095640 Reviewed-by: Raymond Toy <rtoy@chromium.org> Commit-Queue: Luke Bj <lukebjerring@chromium.org> Cr-Commit-Position: refs/heads/master@{#567231} -- wpt-commits: 08725607251e2116a389b878634522905048b4b7 wpt-pr: 11466
This commit is contained in:
Родитель
df2f242f9f
Коммит
bd50001359
|
@ -378616,7 +378616,9 @@
|
|||
"webaudio/idlharness.https.html": [
|
||||
[
|
||||
"/webaudio/idlharness.https.html",
|
||||
{}
|
||||
{
|
||||
"timeout": "long"
|
||||
}
|
||||
]
|
||||
],
|
||||
"webaudio/the-audio-api/the-analysernode-interface/ctor-analyser.html": [
|
||||
|
@ -619941,7 +619943,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"webaudio/idlharness.https.html": [
|
||||
"9863249e71e4855b50c1712c3155d2d4a05fa1fe",
|
||||
"af74995e367b63d17b5dea6bd2bfa9646ab08798",
|
||||
"testharness"
|
||||
],
|
||||
"webaudio/js/buffer-loader.js": [
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>WebAudio IDL tests</title>
|
||||
<link rel="help" href="https://webaudio.github.io/web-audio-api/"/>
|
||||
<meta name="timeout" content="long"><!-- Heavy computation of the idl_objects -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
|
@ -10,43 +11,27 @@
|
|||
'use strict';
|
||||
|
||||
promise_test(async t => {
|
||||
const [html, dom, uievents, mediacapture, webaudio] = await Promise.all([
|
||||
// Needed for EventTarget, HTMLMediaElement
|
||||
'/interfaces/html.idl',
|
||||
|
||||
// Needed for Event, EventListener
|
||||
'/interfaces/dom.idl',
|
||||
|
||||
// Needed for MouseEvent
|
||||
'/interfaces/uievents.idl',
|
||||
|
||||
// Needed for MediaStream, MediaStreamTrack
|
||||
'/interfaces/mediacapture-main.idl',
|
||||
|
||||
'/interfaces/web-audio-api.idl'
|
||||
].map(url => fetch(url).then(response => response.text())));
|
||||
const cssom = await fetch('/interfaces/cssom.idl').then(r => r.text());
|
||||
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
|
||||
const html = await fetch('/interfaces/html.idl').then(r => r.text());
|
||||
const uievents = await fetch('/interfaces/uievents.idl').then(r => r.text());
|
||||
const mediacapture = await fetch('/interfaces/mediacapture-main.idl').then(r => r.text());
|
||||
const webaudio = await fetch('/interfaces/web-audio-api.idl').then(r => r.text());
|
||||
|
||||
const idl_array = new IdlArray();
|
||||
idl_array.add_idls(webaudio);
|
||||
|
||||
// Dependencies of HTML
|
||||
idl_array.add_untested_idls('interface LinkStyle {};');
|
||||
idl_array.add_dependency_idls(html);
|
||||
idl_array.add_dependency_idls(uievents);
|
||||
idl_array.add_dependency_idls(dom);
|
||||
idl_array.add_dependency_idls(mediacapture);
|
||||
idl_array.add_dependency_idls(cssom);
|
||||
|
||||
idl_array.add_untested_idls('interface SVGElement {};');
|
||||
idl_array.add_untested_idls('interface WorkletGlobalScope {};');
|
||||
idl_array.add_untested_idls(html);
|
||||
idl_array.add_untested_idls(uievents, { only: [
|
||||
'MouseEvent',
|
||||
'MouseEventInit',
|
||||
'EventModifierInit',
|
||||
'UIEvent',
|
||||
'UIEventInit',
|
||||
]});
|
||||
|
||||
idl_array.add_untested_idls(dom);
|
||||
idl_array.add_untested_idls(mediacapture);
|
||||
idl_array.add_untested_idls('interface Worklet {};');
|
||||
|
||||
idl_array.add_idls(webaudio);
|
||||
|
||||
const sample_rate = 44100;
|
||||
const context = new AudioContext;
|
||||
const buffer = new AudioBuffer({length: 1, sampleRate: sample_rate});
|
||||
|
|
Загрузка…
Ссылка в новой задаче