From 53775758afbba4cdfc1834942c8e27bd77020720 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Fri, 6 Jul 2018 21:15:41 +0000 Subject: [PATCH] Bug 1470045 [wpt PR 11595] - Auto-update the webaudio IDL file, a=testonly Automatic update from web-platform-testsAuto-update the webaudio IDL file (#11595) -- wpt-commits: 37f154addf55b4608276c85bd085ca36e70c417c wpt-pr: 11595 --- testing/web-platform/meta/MANIFEST.json | 20 ++-- .../{web-audio-api.idl => webaudio.idl} | 71 ++++++-------- .../tests/webaudio/idlharness.https.html | 93 ++++++++++--------- 3 files changed, 90 insertions(+), 94 deletions(-) rename testing/web-platform/tests/interfaces/{web-audio-api.idl => webaudio.idl} (95%) diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index ae1aac3c2075..74a66ee93aef 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -289013,11 +289013,6 @@ {} ] ], - "interfaces/web-audio-api.idl": [ - [ - {} - ] - ], "interfaces/web-bluetooth.idl": [ [ {} @@ -289033,6 +289028,11 @@ {} ] ], + "interfaces/webaudio.idl": [ + [ + {} + ] + ], "interfaces/webauthn.idl": [ [ {} @@ -592046,10 +592046,6 @@ "a68224b17684bd43309bef57e7ad835f5f324a3a", "support" ], - "interfaces/web-audio-api.idl": [ - "6e6a41a2b1dfde69171a8d28252cc3354c86b83e", - "support" - ], "interfaces/web-bluetooth.idl": [ "48e51b15f2338d6b3b0a8c0a013b4f1bfdf6ca1f", "support" @@ -592062,6 +592058,10 @@ "21b54128664c5962c29fd708ebba3d8d90987f26", "support" ], + "interfaces/webaudio.idl": [ + "a2adb319de88d1d33080a837972caefa5c5c1946", + "support" + ], "interfaces/webauthn.idl": [ "1ae8b428644479b352fd5b1996677fd4dcdbb84b", "support" @@ -622751,7 +622751,7 @@ "testharness" ], "webaudio/idlharness.https.html": [ - "af74995e367b63d17b5dea6bd2bfa9646ab08798", + "ce6a8abcc0eb9863b0515d6ec2f16e7b42b4151c", "testharness" ], "webaudio/js/buffer-loader.js": [ diff --git a/testing/web-platform/tests/interfaces/web-audio-api.idl b/testing/web-platform/tests/interfaces/webaudio.idl similarity index 95% rename from testing/web-platform/tests/interfaces/web-audio-api.idl rename to testing/web-platform/tests/interfaces/webaudio.idl index 9c2536598693..5f3085df81e0 100644 --- a/testing/web-platform/tests/interfaces/web-audio-api.idl +++ b/testing/web-platform/tests/interfaces/webaudio.idl @@ -1,6 +1,7 @@ // GENERATED CONTENT - DO NOT EDIT -// Content of this file was automatically extracted from the Web Audio API spec. -// See https://webaudio.github.io/web-audio-api/ +// Content of this file was automatically extracted from the +// "Web Audio API" spec. +// See: https://webaudio.github.io/web-audio-api/ enum AudioContextState { "suspended", @@ -21,34 +22,35 @@ interface BaseAudioContext : EventTarget { readonly attribute AudioContextState state; [SameObject, SecureContext] readonly attribute AudioWorklet audioWorklet; - Promise resume (); attribute EventHandler onstatechange; + + AnalyserNode createAnalyser (); + BiquadFilterNode createBiquadFilter (); AudioBuffer createBuffer (unsigned long numberOfChannels, unsigned long length, float sampleRate); - Promise decodeAudioData (ArrayBuffer audioData, - optional DecodeSuccessCallback successCallback, - optional DecodeErrorCallback errorCallback); AudioBufferSourceNode createBufferSource (); + ChannelMergerNode createChannelMerger (optional unsigned long numberOfInputs = 6); + ChannelSplitterNode createChannelSplitter (optional unsigned long numberOfOutputs = 6); ConstantSourceNode createConstantSource (); + ConvolverNode createConvolver (); + DelayNode createDelay (optional double maxDelayTime = 1.0); + DynamicsCompressorNode createDynamicsCompressor (); + GainNode createGain (); + IIRFilterNode createIIRFilter (sequence feedforward, sequence feedback); + OscillatorNode createOscillator (); + PannerNode createPanner (); + PeriodicWave createPeriodicWave (sequence real, sequence imag, optional PeriodicWaveConstraints constraints); 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 = 1.0); - BiquadFilterNode createBiquadFilter (); - IIRFilterNode createIIRFilter (sequence feedforward, sequence 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 (sequence real, sequence imag, optional PeriodicWaveConstraints constraints); + WaveShaperNode createWaveShaper (); + + Promise decodeAudioData (ArrayBuffer audioData, + optional DecodeSuccessCallback successCallback, + optional DecodeErrorCallback errorCallback); + Promise resume (); }; -[Exposed=Window] enum AudioContextLatencyCategory { "balanced", "interactive", @@ -69,13 +71,11 @@ interface AudioContext : BaseAudioContext { MediaStreamAudioDestinationNode createMediaStreamDestination (); }; -[Exposed=Window] dictionary AudioContextOptions { (AudioContextLatencyCategory or double) latencyHint = "interactive"; float sampleRate; }; -[Exposed=Window] dictionary AudioTimestamp { double contextTime; DOMHighResTimeStamp performanceTime; @@ -91,7 +91,6 @@ interface OfflineAudioContext : BaseAudioContext { attribute EventHandler oncomplete; }; -[Exposed=Window] dictionary OfflineAudioContextOptions { unsigned long numberOfChannels = 1; required unsigned long length; @@ -104,7 +103,6 @@ interface OfflineAudioCompletionEvent : Event { readonly attribute AudioBuffer renderedBuffer; }; -[Exposed=Window] dictionary OfflineAudioCompletionEventInit : EventInit { required AudioBuffer renderedBuffer; }; @@ -148,14 +146,12 @@ interface AudioNode : EventTarget { attribute ChannelInterpretation channelInterpretation; }; -[Exposed=Window] enum ChannelCountMode { "max", "clamped-max", "explicit" }; -[Exposed=Window] enum ChannelInterpretation { "speakers", "discrete" @@ -228,7 +224,6 @@ interface AudioBufferSourceNode : AudioScheduledSourceNode { void start (optional double when = 0, optional double offset, optional double duration); - void stop (optional double when = 0); }; dictionary AudioBufferSourceOptions { @@ -314,7 +309,7 @@ dictionary ChannelMergerOptions : AudioNodeOptions { }; [Exposed=Window, - Constructor (BaseAudioContext context, optional ChannelSplitterNode options)] + Constructor (BaseAudioContext context, optional ChannelSplitterOptions options)] interface ChannelSplitterNode : AudioNode { }; @@ -396,7 +391,7 @@ dictionary IIRFilterOptions : AudioNodeOptions { }; [Exposed=Window, - Constructor (BaseAudioContext context, MediaElementAudioSourceOptions options)] + Constructor (AudioContext context, MediaElementAudioSourceOptions options)] interface MediaElementAudioSourceNode : AudioNode { [SameObject] readonly attribute HTMLMediaElement mediaElement; }; @@ -406,13 +401,13 @@ dictionary MediaElementAudioSourceOptions { }; [Exposed=Window, - Constructor (BaseAudioContext context, optional AudioNodeOptions options)] + Constructor (AudioContext context, optional AudioNodeOptions options)] interface MediaStreamAudioDestinationNode : AudioNode { readonly attribute MediaStream stream; }; [Exposed=Window, - Constructor (BaseAudioContext context, MediaStreamAudioSourceOptions options)] + Constructor (AudioContext context, MediaStreamAudioSourceOptions options)] interface MediaStreamAudioSourceNode : AudioNode { [SameObject] readonly attribute MediaStream mediaStream; }; @@ -558,6 +553,7 @@ interface AudioWorklet : Worklet { [Global=(Worklet, AudioWorklet), Exposed=AudioWorklet] interface AudioWorkletGlobalScope : WorkletGlobalScope { void registerProcessor (DOMString name, VoidFunction processorCtor); + readonly attribute unsigned long long currentFrame; readonly attribute double currentTime; readonly attribute float sampleRate; }; @@ -567,21 +563,13 @@ interface AudioParamMap { readonly maplike; }; -enum AudioWorkletProcessorState { - "pending", - "running", - "stopped", - "error" -}; - [Exposed=Window, SecureContext, Constructor (BaseAudioContext context, DOMString name, optional AudioWorkletNodeOptions options)] interface AudioWorkletNode : AudioNode { readonly attribute AudioParamMap parameters; readonly attribute MessagePort port; - readonly attribute AudioWorkletProcessorState processorState; - attribute EventHandler onprocessorstatechange; + attribute EventHandler onprocessorerror; }; dictionary AudioWorkletNodeOptions : AudioNodeOptions { @@ -589,7 +577,7 @@ dictionary AudioWorkletNodeOptions : AudioNodeOptions { unsigned long numberOfOutputs = 1; sequence outputChannelCount; record parameterData; - object processorOptions = null; + object? processorOptions = null; }; [Exposed=AudioWorklet, @@ -603,4 +591,5 @@ dictionary AudioParamDescriptor { float defaultValue = 0; float minValue = -3.4028235e38; float maxValue = 3.4028235e38; + AutomationRate automationRate = "a-rate"; }; diff --git a/testing/web-platform/tests/webaudio/idlharness.https.html b/testing/web-platform/tests/webaudio/idlharness.https.html index cfdb60248c90..063e4cc955ab 100644 --- a/testing/web-platform/tests/webaudio/idlharness.https.html +++ b/testing/web-platform/tests/webaudio/idlharness.https.html @@ -10,13 +10,13 @@