зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1469749 [wpt PR 11580] - Remove unneeded WebAudio IDL tests, a=testonly
Automatic update from web-platform-testsRemove unneeded WebAudio IDL tests The IDL tests in the subdirectories aren't really needed anymore since we have webaudio/idlharness.https.html that covers everything in the individual tests. Bug: 854220 Change-Id: I589f4972922dfc15c475ce20e7c4cb664b529920 Reviewed-on: https://chromium-review.googlesource.com/1107120 Reviewed-by: Hongchan Choi <hongchan@chromium.org> Commit-Queue: Raymond Toy <rtoy@chromium.org> Cr-Commit-Position: refs/heads/master@{#569280} -- wpt-commits: 1e174dd99ca9c17829565042d276ba477de5b6bc wpt-pr: 11580
This commit is contained in:
Родитель
b2f6a64643
Коммит
698e496919
|
@ -380885,12 +380885,6 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"webaudio/the-audio-api/the-audiobuffer-interface/idl-test.html": [
|
||||
[
|
||||
"/webaudio/the-audio-api/the-audiobuffer-interface/idl-test.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"webaudio/the-audio-api/the-audiobuffersourcenode-interface/ctor-audiobuffersource.html": [
|
||||
[
|
||||
"/webaudio/the-audio-api/the-audiobuffersourcenode-interface/ctor-audiobuffersource.html",
|
||||
|
@ -380915,12 +380909,6 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"webaudio/the-audio-api/the-audiodestinationnode-interface/idl-test.html": [
|
||||
[
|
||||
"/webaudio/the-audio-api/the-audiodestinationnode-interface/idl-test.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"webaudio/the-audio-api/the-audionode-interface/audionode-channel-rules.html": [
|
||||
[
|
||||
"/webaudio/the-audio-api/the-audionode-interface/audionode-channel-rules.html",
|
||||
|
@ -381047,12 +381035,6 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"webaudio/the-audio-api/the-audioparam-interface/idl-test.html": [
|
||||
[
|
||||
"/webaudio/the-audio-api/the-audioparam-interface/idl-test.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet.https.html": [
|
||||
[
|
||||
"/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet.https.html",
|
||||
|
@ -623082,10 +623064,6 @@
|
|||
"34d9e7ccb333ce23c838126a4e84918321292d33",
|
||||
"testharness"
|
||||
],
|
||||
"webaudio/the-audio-api/the-audiobuffer-interface/idl-test.html": [
|
||||
"480a05cc2a25f50ccc61771f6b149c7090432d07",
|
||||
"testharness"
|
||||
],
|
||||
"webaudio/the-audio-api/the-audiobuffersourcenode-interface/.gitkeep": [
|
||||
"da39a3ee5e6b4b0d3255bfef95601890afd80709",
|
||||
"support"
|
||||
|
@ -623114,10 +623092,6 @@
|
|||
"da39a3ee5e6b4b0d3255bfef95601890afd80709",
|
||||
"support"
|
||||
],
|
||||
"webaudio/the-audio-api/the-audiodestinationnode-interface/idl-test.html": [
|
||||
"e8b85f97399b430c338e75a90b32d07277d6ef0c",
|
||||
"testharness"
|
||||
],
|
||||
"webaudio/the-audio-api/the-audiolistener-interface/.gitkeep": [
|
||||
"da39a3ee5e6b4b0d3255bfef95601890afd80709",
|
||||
"support"
|
||||
|
@ -623218,10 +623192,6 @@
|
|||
"a41ff42bd211f135a9942e885f2134fa41a1e1d7",
|
||||
"testharness"
|
||||
],
|
||||
"webaudio/the-audio-api/the-audioparam-interface/idl-test.html": [
|
||||
"871ff25a150ee9a893d4580b13acd79ca3dd5a4d",
|
||||
"testharness"
|
||||
],
|
||||
"webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet.https.html": [
|
||||
"cfe68d4899ed1582d2827f6dea5cf8960ac4e192",
|
||||
"testharness"
|
||||
|
|
|
@ -1,107 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="a">
|
||||
<head>
|
||||
<title>AudioBuffer IDL Test</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<script src="/webaudio/js/helpers.js"></script>
|
||||
<style type="text/css">
|
||||
#event-target-idl,
|
||||
#base-audio-context-idl
|
||||
{ visibility:hidden; height: 0px;}
|
||||
</style>
|
||||
</head>
|
||||
<body class="a">
|
||||
|
||||
<pre id="event-target-idl">interface EventTarget {
|
||||
void addEventListener(DOMString type, EventListener? callback, optional boolean capture = false);
|
||||
void removeEventListener(DOMString type, EventListener? callback, optional boolean capture = false);
|
||||
boolean dispatchEvent(Event event);
|
||||
};
|
||||
|
||||
/*
|
||||
callback interface EventListener {
|
||||
void handleEvent(Event event);
|
||||
};
|
||||
*/
|
||||
// Callback interfaces are not supported yet, but that's ok
|
||||
interface EventListener {};
|
||||
</pre>
|
||||
|
||||
<pre id="base-audio-context-idl">callback DecodeErrorCallback = void (DOMException error);
|
||||
callback DecodeSuccessCallback = void (AudioBuffer decodedData);
|
||||
|
||||
interface BaseAudioContext : EventTarget {
|
||||
readonly attribute AudioDestinationNode destination;
|
||||
readonly attribute float sampleRate;
|
||||
readonly attribute double currentTime;
|
||||
readonly attribute AudioListener listener;
|
||||
readonly attribute AudioContextState state;
|
||||
readonly attribute double baseLatency;
|
||||
Promise<void> resume ();
|
||||
attribute EventHandler onstatechange;
|
||||
AudioBuffer createBuffer (unsigned long numberOfChannels, unsigned long length, float sampleRate);
|
||||
Promise<AudioBuffer> decodeAudioData (ArrayBuffer audioData, optional DecodeSuccessCallback successCallback, optional DecodeErrorCallback errorCallback);
|
||||
AudioBufferSourceNode createBufferSource ();
|
||||
ConstantSourceNode createConstantSource ();
|
||||
ScriptProcessorNode createScriptProcessor (optional unsigned long bufferSize = 0
|
||||
, optional unsigned long numberOfInputChannels = 2
|
||||
, optional unsigned long numberOfOutputChannels = 2
|
||||
);
|
||||
AnalyserNode createAnalyser ();
|
||||
GainNode createGain ();
|
||||
DelayNode createDelay (optional double maxDelayTime);
|
||||
BiquadFilterNode createBiquadFilter ();
|
||||
IIRFilterNode createIIRFilter (sequence<double> feedforward, sequence<double> feedback);
|
||||
WaveShaperNode createWaveShaper ();
|
||||
PannerNode createPanner ();
|
||||
StereoPannerNode createStereoPanner ();
|
||||
ConvolverNode createConvolver ();
|
||||
ChannelSplitterNode createChannelSplitter (optional unsigned long numberOfOutputs = 6
|
||||
);
|
||||
ChannelMergerNode createChannelMerger (optional unsigned long numberOfInputs = 6
|
||||
);
|
||||
DynamicsCompressorNode createDynamicsCompressor ();
|
||||
OscillatorNode createOscillator ();
|
||||
PeriodicWave createPeriodicWave (Float32Array real, Float32Array imag, optional PeriodicWaveConstraints constraints);
|
||||
};</pre>
|
||||
|
||||
<pre id="audio-buffer-idl">dictionary AudioBufferOptions {
|
||||
unsigned long numberOfChannels = 1;
|
||||
required unsigned long length;
|
||||
required float sampleRate;
|
||||
};
|
||||
|
||||
[Constructor(AudioBufferOptions options)]
|
||||
interface AudioBuffer {
|
||||
readonly attribute float sampleRate;
|
||||
readonly attribute unsigned long length;
|
||||
readonly attribute double duration;
|
||||
readonly attribute unsigned long numberOfChannels;
|
||||
Float32Array getChannelData (unsigned long channel);
|
||||
void copyFromChannel (Float32Array destination, unsigned long channelNumber, optional unsigned long startInChannel = 0
|
||||
);
|
||||
void copyToChannel (Float32Array source, unsigned long channelNumber, optional unsigned long startInChannel = 0
|
||||
);
|
||||
};</pre>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var idl_array = new IdlArray();
|
||||
idl_array.add_untested_idls(document.getElementById("event-target-idl").textContent);
|
||||
idl_array.add_untested_idls(document.getElementById("base-audio-context-idl").textContent);
|
||||
idl_array.add_idls(document.getElementById("audio-buffer-idl").textContent);
|
||||
|
||||
// For these tests the value of the arguments is unimportant.
|
||||
audio_buffer = (new AudioContext).createBuffer(numberOfChannels = 1, length = 256, sampleRate = 44100);
|
||||
|
||||
idl_array.add_objects({AudioBuffer: ["audio_buffer"]});
|
||||
idl_array.test();
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,124 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="a">
|
||||
<head>
|
||||
<title>AudioDestinationNode IDL Test</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<script src="/webaudio/js/helpers.js"></script>
|
||||
<style type="text/css">
|
||||
#event-target-idl,
|
||||
#base-audio-context-idl,
|
||||
#audio-node-idl
|
||||
{ visibility:hidden; height: 0px;}
|
||||
</style>
|
||||
</head>
|
||||
<body class="a">
|
||||
|
||||
<pre id="event-target-idl">interface EventTarget {
|
||||
void addEventListener(DOMString type, EventListener? callback, optional boolean capture = false);
|
||||
void removeEventListener(DOMString type, EventListener? callback, optional boolean capture = false);
|
||||
boolean dispatchEvent(Event event);
|
||||
};
|
||||
|
||||
/*
|
||||
callback interface EventListener {
|
||||
void handleEvent(Event event);
|
||||
};
|
||||
*/
|
||||
// Callback interfaces are not supported yet, but that's ok
|
||||
interface EventListener {};
|
||||
</pre>
|
||||
|
||||
<pre id="base-audio-context-idl">callback DecodeErrorCallback = void (DOMException error);
|
||||
|
||||
callback DecodeSuccessCallback = void (AudioBuffer decodedData);
|
||||
|
||||
interface BaseAudioContext : EventTarget {
|
||||
readonly attribute AudioDestinationNode destination;
|
||||
readonly attribute float sampleRate;
|
||||
readonly attribute double currentTime;
|
||||
readonly attribute AudioListener listener;
|
||||
readonly attribute AudioContextState state;
|
||||
readonly attribute double baseLatency;
|
||||
Promise<void> resume ();
|
||||
attribute EventHandler onstatechange;
|
||||
AudioBuffer createBuffer (unsigned long numberOfChannels, unsigned long length, float sampleRate);
|
||||
Promise<AudioBuffer> decodeAudioData (ArrayBuffer audioData, optional DecodeSuccessCallback successCallback, optional DecodeErrorCallback errorCallback);
|
||||
AudioBufferSourceNode createBufferSource ();
|
||||
ConstantSourceNode createConstantSource ();
|
||||
ScriptProcessorNode createScriptProcessor (optional unsigned long bufferSize = 0
|
||||
, optional unsigned long numberOfInputChannels = 2
|
||||
, optional unsigned long numberOfOutputChannels = 2
|
||||
);
|
||||
AnalyserNode createAnalyser ();
|
||||
GainNode createGain ();
|
||||
DelayNode createDelay (optional double maxDelayTime);
|
||||
BiquadFilterNode createBiquadFilter ();
|
||||
IIRFilterNode createIIRFilter (sequence<double> feedforward, sequence<double> feedback);
|
||||
WaveShaperNode createWaveShaper ();
|
||||
PannerNode createPanner ();
|
||||
StereoPannerNode createStereoPanner ();
|
||||
ConvolverNode createConvolver ();
|
||||
ChannelSplitterNode createChannelSplitter (optional unsigned long numberOfOutputs = 6
|
||||
);
|
||||
ChannelMergerNode createChannelMerger (optional unsigned long numberOfInputs = 6
|
||||
);
|
||||
DynamicsCompressorNode createDynamicsCompressor ();
|
||||
OscillatorNode createOscillator ();
|
||||
PeriodicWave createPeriodicWave (Float32Array real, Float32Array imag, optional PeriodicWaveConstraints constraints);
|
||||
};</pre>
|
||||
|
||||
<pre id="audio-node-idl">enum ChannelCountMode {
|
||||
"max",
|
||||
"clamped-max",
|
||||
"explicit"
|
||||
};
|
||||
|
||||
enum ChannelInterpretation {
|
||||
"speakers",
|
||||
"discrete"
|
||||
};
|
||||
|
||||
interface AudioNode : EventTarget {
|
||||
|
||||
void connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0);
|
||||
void connect(AudioParam destination, optional unsigned long output = 0);
|
||||
void disconnect(optional unsigned long output = 0);
|
||||
|
||||
readonly attribute BaseAudioContext context;
|
||||
readonly attribute unsigned long numberOfInputs;
|
||||
readonly attribute unsigned long numberOfOutputs;
|
||||
|
||||
// Channel up-mixing and down-mixing rules for all inputs.
|
||||
attribute unsigned long channelCount;
|
||||
attribute ChannelCountMode channelCountMode;
|
||||
attribute ChannelInterpretation channelInterpretation;
|
||||
|
||||
};</pre>
|
||||
|
||||
<pre id="audio-destination-node-idl">interface AudioDestinationNode : AudioNode {
|
||||
|
||||
readonly attribute unsigned long maxChannelCount;
|
||||
|
||||
};</pre>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var idl_array = new IdlArray();
|
||||
idl_array.add_untested_idls(document.getElementById("event-target-idl").textContent);
|
||||
idl_array.add_untested_idls(document.getElementById("base-audio-context-idl").textContent);
|
||||
idl_array.add_untested_idls(document.getElementById("audio-node-idl").textContent);
|
||||
idl_array.add_idls(document.getElementById("audio-destination-node-idl").textContent);
|
||||
|
||||
audio_destination_node = (new AudioContext).destination;
|
||||
|
||||
idl_array.add_objects({AudioDestinationNode: ["audio_destination_node"]});
|
||||
idl_array.test();
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,54 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="a">
|
||||
<head>
|
||||
<title>AudioParam IDL Test</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<style type="text/css">
|
||||
#audio-param-idl
|
||||
{ visibility:hidden; height: 0px;}
|
||||
</style>
|
||||
</head>
|
||||
<body class="a">
|
||||
|
||||
<pre id="audio-param-idl">interface AudioParam {
|
||||
|
||||
attribute float value;
|
||||
readonly attribute float defaultValue;
|
||||
readonly attribute float minValue;
|
||||
readonly attribute float maxValue;
|
||||
|
||||
// Parameter automation.
|
||||
void setValueAtTime(float value, double startTime);
|
||||
void linearRampToValueAtTime(float value, double endTime);
|
||||
void exponentialRampToValueAtTime(float value, double endTime);
|
||||
|
||||
// Exponentially approach the target value with a rate having the given time constant.
|
||||
void setTargetAtTime(float target, double startTime, double timeConstant);
|
||||
|
||||
// Sets an array of arbitrary parameter values starting at time for the given duration.
|
||||
// The number of values will be scaled to fit into the desired duration.
|
||||
void setValueCurveAtTime(Float32Array values, double startTime, double duration);
|
||||
|
||||
// Cancels all scheduled parameter changes with times greater than or equal to startTime.
|
||||
void cancelScheduledValues(double startTime);
|
||||
|
||||
};</pre>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var idl_array = new IdlArray();
|
||||
idl_array.add_idls(document.getElementById("audio-param-idl").textContent);
|
||||
|
||||
delay_time = (new AudioContext).createDelay().delayTime;
|
||||
|
||||
idl_array.add_objects({AudioParam: ["delay_time"]});
|
||||
idl_array.test();
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче