Title: [264657] trunk
Revision
264657
Author
[email protected]
Date
2020-07-21 09:13:47 -0700 (Tue, 21 Jul 2020)

Log Message

Added OfflineAudioContext constructor
https://bugs.webkit.org/show_bug.cgi?id=214577

Patch by Clark Wang <[email protected]> on 2020-07-21
Reviewed by Chris Dumez.

LayoutTests/imported/w3c:

Re-baselined existing tests. Lots of failures that fail because of unsupported sampleRate range.

* web-platform-tests/webaudio/idlharness.https.window-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-null-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/buffer-resampling-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-scheduling-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/adding-events-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/audioparam-close-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/automation-rate-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/event-insertion-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audiobuffersource-connections-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet-connections.https-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet.https-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-connection-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-connections-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-constant-source-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-connections-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-dynamics-compressor-connections-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-gain-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-panner-connections-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-panner-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-stereo-panner-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/set-target-conv-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-disconnected-input.https-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/simple-input-output.https-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/suspended-context-messageport.https-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/delaynode-channel-count-1-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/maxdelay-rounding-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-expected.txt:

Source/WebCore:

Added OfflineAudioContext constructor and OfflineAudioContextOptions files.

Re-baselined existing tests. Lots of failures that fail because of unsupported sampleRate range.

* CMakeLists.txt:
* DerivedSources-input.xcfilelist:
* DerivedSources-output.xcfilelist:
* DerivedSources.make:
* Modules/webaudio/OfflineAudioContext.cpp:
(WebCore::OfflineAudioContext::create):
* Modules/webaudio/OfflineAudioContext.h:
* Modules/webaudio/OfflineAudioContext.idl:
* Modules/webaudio/OfflineAudioContextOptions.h: Added.
* Modules/webaudio/OfflineAudioContextOptions.idl: Added.
* Sources.txt:
* WebCore.xcodeproj/project.pbxproj:

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,3 +1,49 @@
+2020-07-21  Clark Wang  <[email protected]>
+
+        Added OfflineAudioContext constructor
+        https://bugs.webkit.org/show_bug.cgi?id=214577
+
+        Reviewed by Chris Dumez.
+
+        Re-baselined existing tests. Lots of failures that fail because of unsupported sampleRate range.
+
+        * web-platform-tests/webaudio/idlharness.https.window-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-null-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/buffer-resampling-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-scheduling-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/adding-events-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/audioparam-close-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/automation-rate-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/event-insertion-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audiobuffersource-connections-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet-connections.https-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet.https-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-connection-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-connections-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-constant-source-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-connections-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-dynamics-compressor-connections-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-gain-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-panner-connections-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-panner-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-stereo-panner-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/set-target-conv-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-disconnected-input.https-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/simple-input-output.https-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/suspended-context-messageport.https-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/delaynode-channel-count-1-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/maxdelay-rounding-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-expected.txt:
+
 2020-07-20  Clark Wang  <[email protected]>
 
         Fixes to match BaseAudioContext.idl to spec

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/idlharness.https.window-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/idlharness.https.window-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/idlharness.https.window-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -107,7 +107,7 @@
 PASS BaseAudioContext interface: context must inherit property "decodeAudioData(ArrayBuffer, optional DecodeSuccessCallback?, optional DecodeErrorCallback?)" with the proper type 
 FAIL BaseAudioContext interface: calling decodeAudioData(ArrayBuffer, optional DecodeSuccessCallback?, optional DecodeErrorCallback?) on context with too few arguments must throw TypeError assert_unreached: Throws "TypeError: Not enough arguments" instead of rejecting promise Reached unreachable code
 PASS OfflineAudioContext interface: existence and properties of interface object 
-FAIL OfflineAudioContext interface object length assert_equals: wrong value for OfflineAudioContext.length expected 1 but got 3
+PASS OfflineAudioContext interface object length 
 PASS OfflineAudioContext interface object name 
 PASS OfflineAudioContext interface: existence and properties of interface prototype object 
 PASS OfflineAudioContext interface: existence and properties of interface prototype object's "constructor" property 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-null-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-null-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-null-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "ABSN with null buffer" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "ABSN with null buffer" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [ABSN with null buffer]  
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/buffer-resampling-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/buffer-resampling-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/buffer-resampling-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,7 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "interpolate" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "interpolate" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new ChannelMergerNode(
+                context, {numberOfChannels: context.destination.channelCount})')"
 PASS Audit report 
 PASS > [interpolate] Interpolation of AudioBuffers to context sample rate 
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,7 +1,9 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "buffer-stitching-1" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "buffer-stitching-2" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "buffer-stitching-1" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new ChannelMergerNode(
+            context, {numberOfInputs: context.destination.channelCount})')"
+FAIL Executing "buffer-stitching-2" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new ChannelMergerNode(
+            context, {numberOfInputs: context.destination.channelCount})')"
 PASS Audit report 
 PASS > [buffer-stitching-1] Subsample buffer stitching, same rates 
 PASS   Test 1: context.sampleRate is equal to 44100. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-scheduling-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-scheduling-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-scheduling-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,9 +1,9 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "sub-sample accurate start" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "sub-sample accurate stop" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "sub-sample-grain" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "sub-sample accurate start with playbackRate" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "sub-sample accurate start" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "sub-sample accurate stop" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "sub-sample-grain" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "sub-sample accurate start with playbackRate" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [sub-sample accurate start]  
 PASS > [sub-sample accurate stop]  

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/adding-events-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/adding-events-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/adding-events-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,7 +1,7 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "linearRamp" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "expoRamp" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "linearRamp" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "expoRamp" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [linearRamp] Insert linearRamp after running for some time 
 PASS > [expoRamp] Insert expoRamp after running for some time 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/audioparam-close-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/audioparam-close-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/audioparam-close-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,7 +1,7 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "no-nan" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "interpolation" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "no-nan" promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: ConstantSourceNode"
+FAIL Executing "interpolation" promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: ConstantSourceNode"
 PASS Audit report 
 PASS > [no-nan] NaN does not occur 
 PASS > [interpolation] Interpolation of linear ramp 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/automation-rate-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/automation-rate-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/automation-rate-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,15 +1,15 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "AudioBufferSourceNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "BiquadFilterNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "ConstantSourceNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "DelayNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "DynamicsCompressorNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "GainNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "OscillatorNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "PannerNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "StereoPannerNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "AudioListener" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "AudioBufferSourceNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "BiquadFilterNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "ConstantSourceNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "DelayNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "DynamicsCompressorNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "GainNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "OscillatorNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "PannerNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "StereoPannerNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "AudioListener" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [AudioBufferSourceNode]  
 PASS > [BiquadFilterNode]  

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "cancel1" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "cancel1" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [cancel1] cancel setValueCurve 
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/event-insertion-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/event-insertion-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/event-insertion-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,11 +1,11 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Insert same event at same time" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Linear + Expo" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Expo + Linear" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Linear + SetTarget" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Multiple linear ramps at the same time" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Multiple exponential ramps at the same time" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Insert same event at same time" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Linear + Expo" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Expo + Linear" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Linear + SetTarget" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Multiple linear ramps at the same time" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Multiple exponential ramps at the same time" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Insert same event at same time]  
 PASS > [Linear + Expo] Different events at same time 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audiobuffersource-connections-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audiobuffersource-connections-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audiobuffersource-connections-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,7 +1,7 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "playbackRate" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "detune" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "playbackRate" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "detune" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [playbackRate] AudioBufferSource playbackRate 
 PASS > [detune] AudioBufferSource detune 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet-connections.https-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet-connections.https-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet-connections.https-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Create Test Worklet" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Create Test Worklet" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 FAIL Executing "AudioWorklet k-rate AudioParam" promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: ConstantSourceNode"
 PASS Audit report 
 PASS > [Create Test Worklet]  

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet.https-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet.https-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-audioworklet.https-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Create Test Worklet" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Create Test Worklet" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 FAIL Executing "AudioWorklet k-rate AudioParam" promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: ConstantSourceNode"
 PASS Audit report 
 PASS > [Create Test Worklet]  

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-connection-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-connection-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-connection-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,10 +1,10 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Frequency AudioParam" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Q AudioParam" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Gain AudioParam" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Detune AudioParam" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "All k-rate inputs" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Frequency AudioParam" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Q AudioParam" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Gain AudioParam" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Detune AudioParam" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "All k-rate inputs" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Frequency AudioParam] k-rate input works 
 PASS > [Q AudioParam] k-rate input works 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,10 +1,10 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Biquad k-rate AudioParams (all)" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Biquad k-rate Q" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Biquad k-rate detune" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Biquad k-rate frequency" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Biquad k-rate gain" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Biquad k-rate AudioParams (all)" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Biquad k-rate Q" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Biquad k-rate detune" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Biquad k-rate frequency" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Biquad k-rate gain" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Biquad k-rate AudioParams (all)]  
 PASS > [Biquad k-rate Q]  

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-connections-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-connections-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-connections-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,7 +1,7 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Gain" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "StereoPanner" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Gain" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "StereoPanner" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Gain] k-rate GainNode.gain 
 PASS > [StereoPanner] k-rate StereoPannerNode.pan 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-constant-source-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-constant-source-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-constant-source-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,8 +1,8 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "ConstantSource k-rate offset" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "ConstantSourceNode.offset k-rate automation" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "ConstantSource.offset" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "ConstantSource k-rate offset" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "ConstantSourceNode.offset k-rate automation" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "ConstantSource.offset" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [ConstantSource k-rate offset]  
 PASS > [ConstantSourceNode.offset k-rate automation] Explicitly test ConstantSourceNode.offset k-rate automation is k-rate 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-connections-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-connections-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-connections-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "delayTime" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "delayTime" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [delayTime] DelayNode delayTime k-rate input 
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Test k-rate DelayNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Test k-rate DelayNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Test k-rate DelayNode]  
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-dynamics-compressor-connections-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-dynamics-compressor-connections-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-dynamics-compressor-connections-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,10 +1,15 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "attack" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "knee" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "ratio" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "release" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "threshold" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "attack" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new ChannelMergerNode(
+            context, {numberOfInputs: context.destination.channelCount})')"
+FAIL Executing "knee" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new ChannelMergerNode(
+            context, {numberOfInputs: context.destination.channelCount})')"
+FAIL Executing "ratio" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new ChannelMergerNode(
+            context, {numberOfInputs: context.destination.channelCount})')"
+FAIL Executing "release" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new ChannelMergerNode(
+            context, {numberOfInputs: context.destination.channelCount})')"
+FAIL Executing "threshold" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new ChannelMergerNode(
+            context, {numberOfInputs: context.destination.channelCount})')"
 PASS Audit report 
 PASS > [attack] Dynamics compressor attack 
 PASS > [knee] Dynamics compressor knee 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-gain-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-gain-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-gain-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Test k-rate GainNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Test k-rate GainNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Test k-rate GainNode]  
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,10 +1,10 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Test 1" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Test 2" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Test 3" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Test 4" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Test 5" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Test 1" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Test 2" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Test 3" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Test 4" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Test 5" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Test 1] k-rate frequency input 
 PASS > [Test 2] k-rate detune input 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,7 +1,7 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Oscillator k-rate detune" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Oscillator k-rate frequency" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Oscillator k-rate detune" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Oscillator k-rate frequency" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Oscillator k-rate detune]  
 PASS > [Oscillator k-rate frequency]  

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-panner-connections-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-panner-connections-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-panner-connections-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,11 +1,11 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Panner x" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Panner y" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Panner z" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener x" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener y" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener z" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Panner x" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Panner y" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Panner z" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener x" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener y" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener z" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Panner x] k-rate input 
 PASS > [Panner y] k-rate input 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-panner-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-panner-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-panner-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,19 +1,19 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Panner k-rate positionX" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Panner k-rate positionY" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Panner k-rate orientationX" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Panner k-rate orientationY" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Panner k-rate orientationZ" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener k-rate positionX" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener k-rate positionY" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener k-rate positionZ" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener k-rate forwardX" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener k-rate forwardY" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener k-rate forwardZ" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener k-rate upX" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener k-rate upY" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Listener k-rate upZ" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Panner k-rate positionX" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Panner k-rate positionY" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Panner k-rate orientationX" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Panner k-rate orientationY" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Panner k-rate orientationZ" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener k-rate positionX" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener k-rate positionY" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener k-rate positionZ" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener k-rate forwardX" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener k-rate forwardY" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener k-rate forwardZ" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener k-rate upX" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener k-rate upY" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
+FAIL Executing "Listener k-rate upZ" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Panner k-rate positionX]  
 PASS > [Panner k-rate positionY]  

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-stereo-panner-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-stereo-panner-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-stereo-panner-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Test k-rate StereoPannerNode" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Test k-rate StereoPannerNode" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [Test k-rate StereoPannerNode]  
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/set-target-conv-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/set-target-conv-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/set-target-conv-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "convergence handled correctly" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "convergence handled correctly" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [convergence handled correctly]  
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-disconnected-input.https-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-disconnected-input.https-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-disconnected-input.https-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "test" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "test" promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 PASS Audit report 
 PASS > [test] Input array length should be zero for disconnected input 
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/simple-input-output.https-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/simple-input-output.https-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/simple-input-output.https-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,7 +1,8 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Initialize worklet" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "test" promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'context.destination')"
+FAIL Executing "Initialize worklet" promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'context.audioWorklet.addModule')"
+FAIL Executing "test" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new ChannelMergerNode(
+                context, {numberOfChannels: context.destination.channelCount})')"
 PASS Audit report 
 PASS > [Initialize worklet]  
 PASS > [test] Simple AudioWorklet I/O 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/suspended-context-messageport.https-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/suspended-context-messageport.https-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/suspended-context-messageport.https-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,5 +1,5 @@
 
 FAIL realtime suspended promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'realtime.audioWorklet.addModule')"
-FAIL offline before start promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL offline before start promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern."
 FAIL offline on complete promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'offline.startRendering')"
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,5 +1,5 @@
 
-FAIL speakers, initially mono Not enough arguments
-FAIL discrete Not enough arguments
-FAIL speakers, initially stereo Not enough arguments
+FAIL speakers, initially mono The string did not match the expected pattern.
+FAIL discrete The string did not match the expected pattern.
+FAIL speakers, initially stereo The string did not match the expected pattern.
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/delaynode-channel-count-1-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/delaynode-channel-count-1-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/delaynode-channel-count-1-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,3 +1,3 @@
 
-FAIL Test that DelayNode output channelCount matches that of the delayed input Not enough arguments
+FAIL Test that DelayNode output channelCount matches that of the delayed input The string did not match the expected pattern.
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/maxdelay-rounding-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/maxdelay-rounding-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/maxdelay-rounding-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,6 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "maxdelay-rounding" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "maxdelay-rounding" promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: ConstantSourceNode"
 PASS Audit report 
 PASS > [maxdelay-rounding] Test DelayNode when maxDelayTime requires rounding 
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -6,21 +6,21 @@
 FAIL Executing "options-3" promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'context.length')"
 PASS Audit report 
 PASS > [basic] Old-style constructor 
-PASS   new OfflineAudioContext(3) threw TypeError: "Not enough arguments". 
-PASS   new OfflineAudioContext(3, 42) threw TypeError: "Not enough arguments". 
+PASS   new OfflineAudioContext(3) threw TypeError: "Type error". 
+PASS   new OfflineAudioContext(3, 42) threw TypeError: "Type error". 
 FAIL X context = new OfflineAudioContext(3, 42, 12345) incorrectly threw SyntaxError: "The string did not match the expected pattern.". assert_true: expected true got false
 PASS > [options-1] Required options 
 PASS   new OfflineAudioContext() threw TypeError: "Not enough arguments". 
-PASS   new OfflineAudioContext({}) threw TypeError: "Not enough arguments". 
-PASS   new OfflineAudioContext({"length":42}) threw TypeError: "Not enough arguments". 
-PASS   new OfflineAudioContext({"sampleRate":12345}) threw TypeError: "Not enough arguments". 
-FAIL X c2 = new OfflineAudioContext({"length":42,"sampleRate":12345}) incorrectly threw TypeError: "Not enough arguments". assert_true: expected true got false
+PASS   new OfflineAudioContext({}) threw TypeError: "Member OfflineAudioContextOptions.length is required and must be an instance of unsigned long". 
+PASS   new OfflineAudioContext({"length":42}) threw TypeError: "Member OfflineAudioContextOptions.sampleRate is required and must be an instance of float". 
+PASS   new OfflineAudioContext({"sampleRate":12345}) threw TypeError: "Member OfflineAudioContextOptions.length is required and must be an instance of unsigned long". 
+FAIL X c2 = new OfflineAudioContext({"length":42,"sampleRate":12345}) incorrectly threw SyntaxError: "The string did not match the expected pattern.". assert_true: expected true got false
 PASS > [options-2] Invalid options 
-FAIL X new OfflineAudioContext({"length":42,"sampleRate":8000,"numberOfChannels":33}) threw "TypeError" instead of NotSupportedError. assert_true: expected true got false
-FAIL X new OfflineAudioContext({"length":0,"sampleRate":8000}) threw "TypeError" instead of NotSupportedError. assert_true: expected true got false
-FAIL X new OfflineAudioContext({"length":1,"sampleRate":1}) threw "TypeError" instead of NotSupportedError. assert_true: expected true got false
-FAIL < [options-2] 3 out of 3 assertions were failed. assert_true: expected true got false
+PASS   new OfflineAudioContext({"length":42,"sampleRate":8000,"numberOfChannels":33}) threw SyntaxError: "The string did not match the expected pattern.". 
+PASS   new OfflineAudioContext({"length":0,"sampleRate":8000}) threw SyntaxError: "The string did not match the expected pattern.". 
+PASS   new OfflineAudioContext({"length":1,"sampleRate":1}) threw SyntaxError: "The string did not match the expected pattern.". 
+PASS < [options-2] All assertions passed. (total 3 assertions) 
 PASS > [options-3] Valid options 
-FAIL X c = new OfflineAudioContext{"length":1,"sampleRate":8000}) incorrectly threw TypeError: "Not enough arguments". assert_true: expected true got false
-FAIL # AUDIT TASK RUNNER FINISHED: 4 out of 4 tasks were failed. assert_true: expected true got false
+FAIL X c = new OfflineAudioContext{"length":1,"sampleRate":8000}) incorrectly threw SyntaxError: "The string did not match the expected pattern.". assert_true: expected true got false
+FAIL # AUDIT TASK RUNNER FINISHED: 3 out of 4 tasks were failed. assert_true: expected true got false
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,11 +1,15 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "Test 0" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Test 1" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Test 2" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Test 3" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Test 4" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
-FAIL Executing "Test 5" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "Test 0" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new OscillatorNode(context, {type: 'sine', frequency: freqHz})')"
+FAIL Executing "Test 1" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new OscillatorNode(context, {type: 'sine', frequency: freqHz})')"
+FAIL Executing "Test 2" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new OscillatorNode(context, {type: 'sine', frequency: freqHz})')"
+FAIL Executing "Test 3" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new OscillatorNode(context, {type: 'sine', frequency: freqHz})')"
+FAIL Executing "Test 4" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new PeriodicWave(
+                context,
+                {real: [0, 1], imag: [0, 1], disableNormalization: true})')"
+FAIL Executing "Test 5" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new PeriodicWave(
+                context,
+                {real: [0, 1], imag: [0, 1], disableNormalization: true})')"
 PASS Audit report 
 PASS > [Test 0] Sine wave: 100 Hz 
 PASS > [Test 1] Sine wave: -100 Hz 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-expected.txt (264656 => 264657)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-expected.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-expected.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,6 +1,7 @@
 
 PASS # AUDIT TASK RUNNER STARTED. 
-FAIL Executing "test" promise_test: Unhandled rejection with value: object "TypeError: Not enough arguments"
+FAIL Executing "test" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new ChannelMergerNode(
+                context, {numberOfChannels: context.destination.channelCount})')"
 PASS Audit report 
 PASS > [test] ScriptProcessor with stopped input source 
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/Source/WebCore/CMakeLists.txt (264656 => 264657)


--- trunk/Source/WebCore/CMakeLists.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/Source/WebCore/CMakeLists.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -476,6 +476,7 @@
     Modules/webaudio/MediaStreamAudioSourceNode.idl
     Modules/webaudio/OfflineAudioCompletionEvent.idl
     Modules/webaudio/OfflineAudioContext.idl
+    Modules/webaudio/OfflineAudioContextOptions.idl
     Modules/webaudio/OscillatorNode.idl
     Modules/webaudio/PannerNode.idl
     Modules/webaudio/PannerOptions.idl

Modified: trunk/Source/WebCore/ChangeLog (264656 => 264657)


--- trunk/Source/WebCore/ChangeLog	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/Source/WebCore/ChangeLog	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1,3 +1,27 @@
+2020-07-21  Clark Wang  <[email protected]>
+
+        Added OfflineAudioContext constructor
+        https://bugs.webkit.org/show_bug.cgi?id=214577
+
+        Reviewed by Chris Dumez.
+
+        Added OfflineAudioContext constructor and OfflineAudioContextOptions files.
+
+        Re-baselined existing tests. Lots of failures that fail because of unsupported sampleRate range.
+
+        * CMakeLists.txt:
+        * DerivedSources-input.xcfilelist:
+        * DerivedSources-output.xcfilelist:
+        * DerivedSources.make:
+        * Modules/webaudio/OfflineAudioContext.cpp:
+        (WebCore::OfflineAudioContext::create):
+        * Modules/webaudio/OfflineAudioContext.h:
+        * Modules/webaudio/OfflineAudioContext.idl:
+        * Modules/webaudio/OfflineAudioContextOptions.h: Added.
+        * Modules/webaudio/OfflineAudioContextOptions.idl: Added.
+        * Sources.txt:
+        * WebCore.xcodeproj/project.pbxproj:
+
 2020-07-21  Rob Buis  <[email protected]>
 
         Make AnyStepHandling an enum class

Modified: trunk/Source/WebCore/DerivedSources-input.xcfilelist (264656 => 264657)


--- trunk/Source/WebCore/DerivedSources-input.xcfilelist	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/Source/WebCore/DerivedSources-input.xcfilelist	2020-07-21 16:13:47 UTC (rev 264657)
@@ -325,6 +325,7 @@
 $(PROJECT_DIR)/Modules/webaudio/MediaStreamAudioSourceNode.idl
 $(PROJECT_DIR)/Modules/webaudio/OfflineAudioCompletionEvent.idl
 $(PROJECT_DIR)/Modules/webaudio/OfflineAudioContext.idl
+$(PROJECT_DIR)/Modules/webaudio/OfflineAudioContextOptions.idl
 $(PROJECT_DIR)/Modules/webaudio/OscillatorNode.idl
 $(PROJECT_DIR)/Modules/webaudio/PannerNode.idl
 $(PROJECT_DIR)/Modules/webaudio/PannerOptions.idl

Modified: trunk/Source/WebCore/DerivedSources-output.xcfilelist (264656 => 264657)


--- trunk/Source/WebCore/DerivedSources-output.xcfilelist	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/Source/WebCore/DerivedSources-output.xcfilelist	2020-07-21 16:13:47 UTC (rev 264657)
@@ -1220,6 +1220,8 @@
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioCompletionEvent.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioContext.cpp
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioContext.h
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioContextOptions.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOfflineAudioContextOptions.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOffscreenCanvas.cpp
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOffscreenCanvas.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSOffscreenCanvasRenderingContext2D.cpp

Modified: trunk/Source/WebCore/DerivedSources.make (264656 => 264657)


--- trunk/Source/WebCore/DerivedSources.make	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/Source/WebCore/DerivedSources.make	2020-07-21 16:13:47 UTC (rev 264657)
@@ -408,6 +408,7 @@
     $(WebCore)/Modules/webaudio/MediaStreamAudioSourceNode.idl \
     $(WebCore)/Modules/webaudio/OfflineAudioCompletionEvent.idl \
     $(WebCore)/Modules/webaudio/OfflineAudioContext.idl \
+    $(WebCore)/Modules/webaudio/OfflineAudioContextOptions.idl \
     $(WebCore)/Modules/webaudio/OscillatorNode.idl \
     $(WebCore)/Modules/webaudio/PannerNode.idl \
     $(WebCore)/Modules/webaudio/PannerOptions.idl \

Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.cpp (264656 => 264657)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.cpp	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.cpp	2020-07-21 16:13:47 UTC (rev 264657)
@@ -41,14 +41,14 @@
 {
 }
 
-ExceptionOr<Ref<OfflineAudioContext>> OfflineAudioContext::create(ScriptExecutionContext& context, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate)
+ExceptionOr<Ref<OfflineAudioContext>> OfflineAudioContext::create(ScriptExecutionContext& context, unsigned numberOfChannels, size_t length, float sampleRate)
 {
     // FIXME: Add support for workers.
     if (!is<Document>(context))
         return Exception { NotSupportedError };
-    if (!numberOfChannels || numberOfChannels > 10 || !numberOfFrames || !isSampleRateRangeGood(sampleRate))
+    if (!numberOfChannels || numberOfChannels > 10 || !length || !isSampleRateRangeGood(sampleRate))
         return Exception { SyntaxError };
-    auto renderTarget = AudioBuffer::create(numberOfChannels, numberOfFrames, sampleRate);
+    auto renderTarget = AudioBuffer::create(numberOfChannels, length, sampleRate);
     if (!renderTarget)
         return Exception { SyntaxError };
 
@@ -57,6 +57,12 @@
     return audioContext;
 }
 
+ExceptionOr<Ref<OfflineAudioContext>> OfflineAudioContext::create(ScriptExecutionContext& context, const OfflineAudioContextOptions& contextOptions)
+{
+    return create(context, contextOptions.numberOfChannels, contextOptions.length, contextOptions.sampleRate);
+}
+
+
 } // namespace WebCore
 
 #endif // ENABLE(WEB_AUDIO)

Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.h (264656 => 264657)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.h	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.h	2020-07-21 16:13:47 UTC (rev 264657)
@@ -25,6 +25,7 @@
 #pragma once
 
 #include "BaseAudioContext.h"
+#include "OfflineAudioContextOptions.h"
 
 namespace WebCore {
 
@@ -31,7 +32,9 @@
 class OfflineAudioContext final : public BaseAudioContext {
     WTF_MAKE_ISO_ALLOCATED(OfflineAudioContext);
 public:
-    static ExceptionOr<Ref<OfflineAudioContext>> create(ScriptExecutionContext&, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
+    static ExceptionOr<Ref<OfflineAudioContext>> create(ScriptExecutionContext&, unsigned numberOfChannels, size_t length, float sampleRate);
+    
+    static ExceptionOr<Ref<OfflineAudioContext>> create(ScriptExecutionContext&, const OfflineAudioContextOptions&);
 
 private:
     OfflineAudioContext(Document&, AudioBuffer* renderTarget);

Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.idl (264656 => 264657)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.idl	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.idl	2020-07-21 16:13:47 UTC (rev 264657)
@@ -27,8 +27,9 @@
     EnabledBySetting=ModernUnprefixedWebAudio,
     JSGenerateToJSObject,
 ] interface OfflineAudioContext : BaseAudioContext {
-    [CallWith=ScriptExecutionContext, MayThrowException] constructor(unsigned long numberOfChannels, unsigned long numberOfFrames, unrestricted float sampleRate);
-
+    [CallWith=ScriptExecutionContext, MayThrowException] constructor(OfflineAudioContextOptions contextOptions);
+    [CallWith=ScriptExecutionContext, MayThrowException] constructor(unsigned long numberOfChannels, unsigned long length, float sampleRate);
+    
     void startRendering();
 
     [ImplementedAs=resumeRendering] Promise<void> resume();

Added: trunk/Source/WebCore/Modules/webaudio/OfflineAudioContextOptions.h (0 => 264657)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioContextOptions.h	                        (rev 0)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioContextOptions.h	2020-07-21 16:13:47 UTC (rev 264657)
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#if ENABLE(WEB_AUDIO)
+
+namespace WebCore {
+
+struct OfflineAudioContextOptions {
+    unsigned numberOfChannels;
+    size_t length;
+    float sampleRate;
+};
+
+} // namespace WebCore
+
+#endif // ENABLE(WEB_AUDIO)

Added: trunk/Source/WebCore/Modules/webaudio/OfflineAudioContextOptions.idl (0 => 264657)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioContextOptions.idl	                        (rev 0)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioContextOptions.idl	2020-07-21 16:13:47 UTC (rev 264657)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+[
+    Conditional=WEB_AUDIO,
+] dictionary OfflineAudioContextOptions {
+    unsigned long numberOfChannels = 1;
+    required unsigned long length;
+    required float sampleRate;
+};

Modified: trunk/Source/WebCore/Sources.txt (264656 => 264657)


--- trunk/Source/WebCore/Sources.txt	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/Source/WebCore/Sources.txt	2020-07-21 16:13:47 UTC (rev 264657)
@@ -3122,6 +3122,7 @@
 JSOESVertexArrayObject.cpp
 JSOfflineAudioCompletionEvent.cpp
 JSOfflineAudioContext.cpp
+JSOfflineAudioContextOptions.cpp
 JSOffscreenCanvas.cpp
 JSOffscreenCanvasRenderingContext2D.cpp
 JSOptionalEffectTiming.cpp

Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (264656 => 264657)


--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2020-07-21 16:07:10 UTC (rev 264656)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2020-07-21 16:13:47 UTC (rev 264657)
@@ -5049,6 +5049,7 @@
 		E785D93424B636FF0014DB21 /* ChannelInterpretation.h in Headers */ = {isa = PBXBuildFile; fileRef = E785D93124B636FF0014DB21 /* ChannelInterpretation.h */; };
 		E785D96124B7F7350014DB21 /* AudioContextOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = E785D95F24B7F7340014DB21 /* AudioContextOptions.h */; };
 		E785D96224B7F7350014DB21 /* AudioContextLatencyCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = E785D96024B7F7340014DB21 /* AudioContextLatencyCategory.h */; };
+		E7CF84A924C6461C00B06B90 /* OfflineAudioContextOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = E7CF84A524C635F400B06B90 /* OfflineAudioContextOptions.h */; };
 		EBE5B226245A26EF003A5A88 /* SQLiteStatementAutoResetScope.h in Headers */ = {isa = PBXBuildFile; fileRef = EBE5B224245A26EE003A5A88 /* SQLiteStatementAutoResetScope.h */; settings = {ATTRIBUTES = (Private, ); }; };
 		EBF5121C1696496C0056BD25 /* JSTypeConversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EBF5121A1696496C0056BD25 /* JSTypeConversions.cpp */; };
 		EBF5121D1696496C0056BD25 /* JSTypeConversions.h in Headers */ = {isa = PBXBuildFile; fileRef = EBF5121B1696496C0056BD25 /* JSTypeConversions.h */; };
@@ -15809,6 +15810,8 @@
 		E785D95F24B7F7340014DB21 /* AudioContextOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioContextOptions.h; sourceTree = "<group>"; };
 		E785D96024B7F7340014DB21 /* AudioContextLatencyCategory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioContextLatencyCategory.h; sourceTree = "<group>"; };
 		E7CF848924C0E05700B06B90 /* AudioScheduledSourceNode.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = AudioScheduledSourceNode.idl; sourceTree = "<group>"; };
+		E7CF84A524C635F400B06B90 /* OfflineAudioContextOptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OfflineAudioContextOptions.h; sourceTree = "<group>"; };
+		E7CF84A724C635F400B06B90 /* OfflineAudioContextOptions.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = OfflineAudioContextOptions.idl; sourceTree = "<group>"; };
 		EB081CD81696084400553730 /* TypeConversions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TypeConversions.h; sourceTree = "<group>"; };
 		EB081CD91696084400553730 /* TypeConversions.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = TypeConversions.idl; sourceTree = "<group>"; };
 		EBE5B224245A26EE003A5A88 /* SQLiteStatementAutoResetScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SQLiteStatementAutoResetScope.h; sourceTree = "<group>"; };
@@ -29448,6 +29451,8 @@
 				FDA9325A16703B2A008982DC /* OfflineAudioContext.cpp */,
 				FDA9325B16703B2A008982DC /* OfflineAudioContext.h */,
 				FDA9325C16703B2A008982DC /* OfflineAudioContext.idl */,
+				E7CF84A524C635F400B06B90 /* OfflineAudioContextOptions.h */,
+				E7CF84A724C635F400B06B90 /* OfflineAudioContextOptions.idl */,
 				FDA3E957134A49EF008D4B5A /* OfflineAudioDestinationNode.cpp */,
 				FDA3E958134A49EF008D4B5A /* OfflineAudioDestinationNode.h */,
 				FD581FAB1520F91F003A7A75 /* OscillatorNode.cpp */,
@@ -32515,6 +32520,7 @@
 				77A17A7212F28182004E02F6 /* OESVertexArrayObject.h in Headers */,
 				FDA3E95A134A49EF008D4B5A /* OfflineAudioCompletionEvent.h in Headers */,
 				FDA9325E16703B2A008982DC /* OfflineAudioContext.h in Headers */,
+				E7CF84A924C6461C00B06B90 /* OfflineAudioContextOptions.h in Headers */,
 				FDA3E95C134A49EF008D4B5A /* OfflineAudioDestinationNode.h in Headers */,
 				314877E31FAA8FE900C05759 /* OffscreenCanvas.h in Headers */,
 				3140C5201FDF151A00D2A873 /* OffscreenCanvasRenderingContext2D.h in Headers */,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to