Title: [266289] trunk/LayoutTests/imported/w3c
Revision
266289
Author
[email protected]
Date
2020-08-28 11:52:53 -0700 (Fri, 28 Aug 2020)

Log Message

Resync web-platform-tests/webaudio from upstream
https://bugs.webkit.org/show_bug.cgi?id=215935

Reviewed by Sam Weinig.

Resync web-platform-tests/webaudio from upstream 37c7777f647d4383943.

* web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/constructor-allowed-to-start-expected.txt: Added.
* web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/no-dezippering-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/realtime-conv-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-gainnode-interface/no-dezippering-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-limiting-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-overflow-expected.txt: Added.
* web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/periodicWave-expected.txt: Added.
* web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-expected.txt:
* web-platform-tests/webaudio/the-audio-api/the-stereopanner-interface/no-dezippering-expected.txt:

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2020-08-28 18:52:53 UTC (rev 266289)
@@ -1,3 +1,25 @@
+2020-08-28  Chris Dumez  <[email protected]>
+
+        Resync web-platform-tests/webaudio from upstream
+        https://bugs.webkit.org/show_bug.cgi?id=215935
+
+        Reviewed by Sam Weinig.
+
+        Resync web-platform-tests/webaudio from upstream 37c7777f647d4383943.
+
+        * web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/constructor-allowed-to-start-expected.txt: Added.
+        * web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/no-dezippering-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/realtime-conv-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-gainnode-interface/no-dezippering-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-limiting-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-overflow-expected.txt: Added.
+        * web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/periodicWave-expected.txt: Added.
+        * web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-expected.txt:
+        * web-platform-tests/webaudio/the-audio-api/the-stereopanner-interface/no-dezippering-expected.txt:
+
 2020-08-28  Youenn Fablet  <[email protected]>
 
         initializeReadableStream should check for highWaterMark be undefined

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/META.yml (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/META.yml	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/META.yml	2020-08-28 18:52:53 UTC (rev 266289)
@@ -1,4 +1,5 @@
 spec: https://webaudio.github.io/web-audio-api/
 suggested_reviewers:
+  - hoch
   - padenot
   - rtoy

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/js/helpers.js (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/js/helpers.js	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/js/helpers.js	2020-08-28 18:52:53 UTC (rev 266289)
@@ -159,8 +159,8 @@
     function testOnNormalContext(callback) {
       function testOutput(nodeToInspect, expectedBuffers, callback) {
         testLength = 0;
-        var sp = context.createScriptProcessor(expectedBuffers[0].length, gTest.numberOfChannels, 0);
-        nodeToInspect.connect(sp);
+        var sp = context.createScriptProcessor(expectedBuffers[0].length, gTest.numberOfChannels, 1);
+        nodeToInspect.connect(sp).connect(context.destination);
         sp._onaudioprocess_ = function(e) {
           var expectedBuffer = expectedBuffers.shift();
           testLength += expectedBuffer.length;

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum-expected.txt (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum-expected.txt	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -1,5 +1,4 @@
+CONSOLE MESSAGE: Error: assert_true: silent input process -Infinity in decibel bins expected true got false
 
-Harness Error (TIMEOUT), message = null
+FAIL Test AnalyserNode when the input is silent Error: assert_true: silent input process -Infinity in decibel bins expected true got false
 
-NOTRUN Test AnalyserNode when the input is silent 
-

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum.html (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum.html	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum.html	2020-08-28 18:52:53 UTC (rev 266289)
@@ -11,13 +11,13 @@
     var ac = new AudioContext();
     var analyser = ac.createAnalyser();
     var constant = ac.createConstantSource();
-    var sp = ac.createScriptProcessor(2048, 1, 0);
+    var sp = ac.createScriptProcessor(2048, 1, 1);
 
     constant.offset.value = 0.0;
 
     constant.connect(analyser).connect(ac.destination);
 
-    constant.connect(sp);
+    constant.connect(sp).connect(ac.destination);
 
     var buf = new Float32Array(analyser.frequencyBinCount);
     var iteration_count = 10;

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions-expected.txt (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions-expected.txt	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -30,8 +30,10 @@
 PASS > [test-audiocontextoptions-sampleRate] Test creating contexts with non-default sampleRate values. 
 PASS   context = new AudioContext({sampleRate: 1}) threw SyntaxError: "sampleRate is not in range". 
 PASS   context = new AudioContext({sampleRate: 1000000}) threw SyntaxError: "sampleRate is not in range". 
+PASS   context = new AudioContext({sampleRate: -1}) threw SyntaxError: "sampleRate is not in range". 
+PASS   context = new AudioContext({sampleRate: 0}) threw SyntaxError: "sampleRate is not in range". 
 PASS   context = new AudioContext({sampleRate: 24000}) did not throw an exception. 
 PASS   sampleRate inrange is equal to 24000. 
-PASS < [test-audiocontextoptions-sampleRate] All assertions passed. (total 4 assertions) 
+PASS < [test-audiocontextoptions-sampleRate] All assertions passed. (total 6 assertions) 
 PASS # AUDIT TASK RUNNER FINISHED: 3 tasks ran successfully. 
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions.html (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions.html	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions.html	2020-08-28 18:52:53 UTC (rev 266289)
@@ -180,6 +180,20 @@
                 },
                 'context = new AudioContext({sampleRate: 1000000})')
                 .throw(DOMException);
+            // A negative sample rate should not be accepted
+            should(
+                () => {
+                  context = new AudioContext({sampleRate: -1})
+                },
+                'context = new AudioContext({sampleRate: -1})')
+                .throw(DOMException);
+            // A null sample rate should not be accepted
+            should(
+                () => {
+                  context = new AudioContext({sampleRate: 0})
+                },
+                'context = new AudioContext({sampleRate: 0})')
+                .throw(DOMException);
 
             should(
                 () => {

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/constructor-allowed-to-start-expected.txt (0 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/constructor-allowed-to-start-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/constructor-allowed-to-start-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -0,0 +1,5 @@
+
+Harness Error (TIMEOUT), message = null
+
+NOTRUN AudioContext state around "allowed to start" in constructor 
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/constructor-allowed-to-start.html (0 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/constructor-allowed-to-start.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/constructor-allowed-to-start.html	2020-08-28 18:52:53 UTC (rev 266289)
@@ -0,0 +1,25 @@
+<!doctype html>
+<title>AudioContext state around "allowed to start" in constructor</title>
+<link rel=help href=""
+<script src=""
+<script src=""
+<script src=""
+<script src=""
+<script>
+setup({ single_test: true });
+test_driver.bless("audio playback", () => {
+  const ctx = new AudioContext();
+  // Immediately after the constructor the state is "suspended" because the
+  // control message to start processing has just been sent, but the state
+  // should change soon.
+  assert_equals(ctx.state, "suspended", "initial state");
+  ctx._onstatechange_ = () => {
+    assert_equals(ctx.state, "running", "state after statechange event");
+    // Now create another context and ensure it starts out in the "suspended"
+    // state too, ensuring it's not synchronously "running".
+    const ctx2 = new AudioContext();
+    assert_equals(ctx2.state, "suspended", "initial state of 2nd context");
+    done();
+  };
+});
+</script>

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/w3c-import.log (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/w3c-import.log	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/w3c-import.log	2020-08-28 18:52:53 UTC (rev 266289)
@@ -18,5 +18,6 @@
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-getoutputtimestamp.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-suspend-resume.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions.html
+/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/constructor-allowed-to-start.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/processing-after-resume.https.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/suspend-after-construct.html

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/no-dezippering-expected.txt (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/no-dezippering-expected.txt	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/no-dezippering-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -13,9 +13,9 @@
 PASS   At time 0.0546875, frequency is equal to 200. 
 FAIL X Output from frequency setter does not equal [0.7863562107086182,0.9676618576049805,1.135772466659546,1.2858247756958008,1.4133927822113037,1.514617681503296,1.5863231420516968,1.6261112689971924,1.63243567943573,1.604650855064392,1.5430365800857544,1.4487941265106201,1.324018955230713,1.1716450452804565,0.9953676462173462,0.7995421290397644...] with an element-wise tolerance of {"absoluteThreshold":0.0000030399,"relativeThreshold":0}.
 	Index	Actual			Expected		AbsError		RelError		Test threshold
-	[0]	7.3010057210922241e-1	7.8635621070861816e-1	5.6255638599395752e-2	7.1539637931646097e-2	3.0398999999999999e-6
-	[1]	9.9232125282287598e-1	9.6766185760498047e-1	2.4659395217895508e-2	2.5483483743927809e-2	3.0398999999999999e-6
-	[2]	1.2269515991210938e+0	1.1357724666595459e+0	9.1179132461547852e-2	8.0279400265545711e-2	3.0398999999999999e-6
+	[0]	7.3010045289993286e-1	7.8635621070861816e-1	5.6255757808685303e-2	7.1539789528705960e-2	3.0398999999999999e-6
+	[1]	9.9232119321823120e-1	9.6766185760498047e-1	2.4659335613250732e-2	2.5483422147364602e-2	3.0398999999999999e-6
+	[2]	1.2269514799118042e+0	1.1357724666595459e+0	9.1179013252258301e-2	8.0279295306768264e-2	3.0398999999999999e-6
 	[3]	1.4274108409881592e+0	1.2858247756958008e+0	1.4158606529235840e-1	1.1011303248200492e-1	3.0398999999999999e-6
 	[4]	1.5880613327026367e+0	1.4133927822113037e+0	1.7466855049133301e-1	1.2358104038005471e-1	3.0398999999999999e-6
 	...and 1147 more errors.
@@ -40,8 +40,8 @@
 	...and 1403 more errors.
 	Max AbsError of 2.4044023156166077e+0 at index of 94.
 	[94]	-2.9983744621276855e+0	-5.9397214651107788e-1	2.4044023156166077e+0	4.0480051627669456e+0	4.0531999999999996e-6
-	Max RelError of 1.0785992775213833e+3 at index of 10.
-	[10]	9.1349524259567261e-1	8.4614288061857224e-4	9.1264909971505404e-1	1.0785992775213833e+3	4.0531999999999996e-6
+	Max RelError of 1.0785992070786174e+3 at index of 10.
+	[10]	9.1349518299102783e-1	8.4614288061857224e-4	9.1264904011040926e-1	1.0785992070786174e+3	4.0531999999999996e-6
  assert_true: expected true got false
 FAIL X Output from detune setter matches setValueAtTime output is not true. Got false. assert_true: expected true got false
 FAIL < [Test 1] 2 out of 5 assertions were failed. assert_true: expected true got false
@@ -66,7 +66,7 @@
 	[0]	-7.6753121614456177e-1	-8.4486722946166992e-1	7.7336013317108154e-2	9.1536291881488763e-2	1.9074000000000002e-6
 	[1]	-9.0657228231430054e-1	-1.0345356464385986e+0	1.2796336412429810e-1	1.2369159493422340e-1	1.9074000000000002e-6
 	[2]	-1.0197358131408691e+0	-1.1866061687469482e+0	1.6687035560607910e-1	1.4062825560926720e-1	1.9074000000000002e-6
-	[3]	-1.1038526296615601e+0	-1.2994732856750488e+0	1.9562065601348877e-1	1.5053842058158817e-1	1.9074000000000002e-6
+	[3]	-1.1038527488708496e+0	-1.2994732856750488e+0	1.9562053680419922e-1	1.5053832884496621e-1	1.9074000000000002e-6
 	[4]	-1.1565747261047363e+0	-1.3723911046981812e+0	2.1581637859344482e-1	1.5725573989413721e-1	1.9074000000000002e-6
 	...and 1275 more errors.
 	Max AbsError of 2.5350201129913330e-1 at index of 20.
@@ -87,8 +87,8 @@
 	...and 1893 more errors.
 	Max AbsError of 1.1475224196910858e+0 at index of 292.
 	[292]	3.7383499741554260e-1	-7.7368742227554321e-1	1.1475224196910858e+0	1.4831860860759916e+0	5.9607000000000002e-7
-	Max RelError of 2.4084711495323531e+3 at index of 1014.
-	[1014]	-7.6620566844940186e-1	3.1826162012293935e-4	7.6652393006952479e-1	2.4084711495323531e+3	5.9607000000000002e-7
+	Max RelError of 2.4084715240961773e+3 at index of 1014.
+	[1014]	-7.6620578765869141e-1	3.1826162012293935e-4	7.6652404927881435e-1	2.4084715240961773e+3	5.9607000000000002e-7
  assert_true: expected true got false
 FAIL X Output matches JS filter results is not true. Got false. assert_true: expected true got false
 FAIL < [Test 4] 2 out of 2 assertions were failed. assert_true: expected true got false
@@ -96,8 +96,20 @@
 PASS   Modulation: At time 0, frequency is equal to 350. 
 PASS   Modulation: At time 0.015625, frequency is equal to 10. 
 PASS   Modulation: At time 0.0625, frequency is equal to -10. 
-PASS   Modulation: Output from frequency setter equals [0,-0.16793830692768097,-0.3311063051223755,-0.48486924171447754,-0.6248595118522644,-0.7471005916595459,-0.8481203317642212,-0.925049364566803,-0.9757022261619568,-0.9986401796340942,-0.9932120442390442,-0.9595714211463928,-0.898674488067627,-0.812250554561615,-0.7027547955513,-0.5732971429824829...] with an element-wise tolerance of {"absoluteThreshold":0,"relativeThreshold":0}. 
-PASS   Modulation: Output from frequency setter matches setValueAtTime output is true. 
-PASS < [Test 5] All assertions passed. (total 5 assertions) 
-FAIL # AUDIT TASK RUNNER FINISHED: 5 out of 6 tasks were failed. assert_true: expected true got false
+FAIL X Modulation: Output from frequency setter does not equal [0,-0.16793830692768097,-0.3311063051223755,-0.48486924171447754,-0.6248595118522644,-0.7471005916595459,-0.8481203317642212,-0.925049364566803,-0.9757022261619568,-0.9986401796340942,-0.9932120442390442,-0.9595714211463928,-0.898674488067627,-0.812250554561615,-0.7027547955513,-0.5732971429824829...] with an element-wise tolerance of {"absoluteThreshold":0,"relativeThreshold":0}.
+	Index	Actual			Expected		AbsError		RelError		Test threshold
+	[128]	-3.8230118155479431e-1	-3.8236460089683533e-1	6.3419342041015625e-5	1.6586091362083650e-4	0.0000000000000000e+0
+	[129]	-2.2091367840766907e-1	-2.2110925614833832e-1	1.9557774066925049e-4	8.8452986580553111e-4	0.0000000000000000e+0
+	[130]	-5.2780535072088242e-2	-5.3180199116468430e-2	3.9966404438018799e-4	7.5152792020371194e-3	0.0000000000000000e+0
+	[131]	1.1736550182104111e-1	1.1668876558542252e-1	6.7673623561859131e-4	5.7994977684735520e-3	0.0000000000000000e+0
+	[132]	2.8473490476608276e-1	2.8370931744575500e-1	1.0255873203277588e-3	3.6149229414146763e-3	0.0000000000000000e+0
+	...and 507 more errors.
+	Max AbsError of 5.0475597381591797e-2 at index of 354.
+	[354]	3.0106507241725922e-2	8.0582104623317719e-2	5.0475597381591797e-2	6.2638718134182214e-1	0.0000000000000000e+0
+	Max RelError of 3.0869799407945271e+0 at index of 279.
+	[279]	-5.1048520952463150e-2	-1.2490523979067802e-2	3.8557996973395348e-2	3.0869799407945271e+0	0.0000000000000000e+0
+ assert_true: expected true got false
+FAIL X Modulation: Output from frequency setter matches setValueAtTime output is not true. Got false. assert_true: expected true got false
+FAIL < [Test 5] 2 out of 5 assertions were failed. assert_true: expected true got false
+FAIL # AUDIT TASK RUNNER FINISHED: 6 out of 6 tasks were failed. assert_true: expected true got false
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/realtime-conv-expected.txt (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/realtime-conv-expected.txt	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/realtime-conv-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -3,7 +3,7 @@
 PASS Executing "test" 
 PASS Audit report 
 PASS > [test] Test convolver with real-time context 
-FAIL X SNR is not greater than or equal to 88.457. Got -79.48810094446551. assert_true: expected true got false
+FAIL X SNR is not greater than or equal to 88.457. Got -79.43297247741225. assert_true: expected true got false
 FAIL < [test] 1 out of 1 assertions were failed. assert_true: expected true got false
 FAIL # AUDIT TASK RUNNER FINISHED: 1 out of 1 tasks were failed. assert_true: expected true got false
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-gainnode-interface/no-dezippering-expected.txt (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-gainnode-interface/no-dezippering-expected.txt	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-gainnode-interface/no-dezippering-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -21,17 +21,17 @@
 	...and 892 more errors. assert_true: expected true got false
 FAIL < [test0] 2 out of 2 assertions were failed. assert_true: expected true got false
 PASS > [test2] Compare value setter and setValueAtTime 
-FAIL X .value setter output expected to be equal to the array [-0.03759972006082535,-0.05467035621404648,-0.07155975699424744,-0.0882117748260498,-0.10457140952348709,-0.12058408558368683,-0.13619694113731384,-0.1513580083847046,-0.16601718962192535,-0.18012580275535583,-0.19363702833652496,-0.20650623738765717,-0.21869038045406342,-0.23014938831329346,-0.24084503948688507,-0.25074201822280884...] but differs in 640 places:
+FAIL X .value setter output expected to be equal to the array [0.27716386318206787,0.25394731760025024,0.22351734340190887,0.18673840165138245,0.14465515315532684,0.09846296161413193,0.04947395995259285,-0.000920414284337312,-0.051288578659296036,-0.10019991546869278,-0.14626504480838776,-0.1881755292415619,-0.2247409224510193,-0.2549225091934204,-0.277863085269928,-0.29291093349456787...] but differs in 640 places:
 	Index	Actual			Expected
-	[0]	-1.2489373981952667e-1	-3.7599720060825348e-2
-	[1]	-1.8096205592155457e-1	-5.4670356214046478e-2
-	[2]	-2.3604041337966919e-1	-7.1559756994247437e-2
-	[3]	-2.8995347023010254e-1	-8.8211774826049805e-2
+	[0]	9.2064595222473145e-1	2.7716386318206787e-1
+	[1]	8.4058040380477905e-1	2.5394731760025024e-1
+	[2]	7.3727369308471680e-1	2.2351734340190887e-1
+	[3]	6.1381196975708008e-1	1.8673840165138245e-1
 	...and 636 more errors. assert_true: expected true got false
 FAIL X .value setter output matches setValueAtTime output is not true. Got false. assert_true: expected true got false
 FAIL < [test2] 2 out of 2 assertions were failed. assert_true: expected true got false
 PASS > [test3] Automation effects 
-PASS   With modulation: .value setter output is identical to the array [-0.03759991005063057,-0.07845700532197952,-0.13329683244228363,-0.2007361203432083,-0.2788574993610382,-0.3652743101119995,-0.45721668004989624,-0.5516262650489807,-0.6452678442001343,-0.7348412275314331,-0.8171004056930542,-0.8889712691307068,-0.9476582407951355,-0.9907503128051758,-1.016305923461914,-1.0229262113571167...]. 
+PASS   With modulation: .value setter output is identical to the array [0.6307172179222107,0.26173824071884155,-0.04888543114066124,-0.24108877778053284,-0.2937309145927429,-0.2293994128704071,-0.10613704472780228,0.0013841955224052072,0.02557784877717495,-0.07256468385457993,-0.29065337777137756,-0.5846103429794312,-0.8810368776321411,-1.0985889434814453,-1.1720213890075684,-1.0717520713806152...]. 
 PASS   With modulation: .value setter output matches setValueAtTime output is true. 
 PASS < [test3] All assertions passed. (total 2 assertions) 
 FAIL # AUDIT TASK RUNNER FINISHED: 2 out of 3 tasks were failed. assert_true: expected true got false

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-limiting-expected.txt (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-limiting-expected.txt	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-limiting-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -14,10 +14,10 @@
 PASS   osc[0:4] is not constantly 0 (contains 4 different values). 
 FAIL X osc[5:]: Expected 0 for all values but found 5506 unexpected values: 
 	Index	Actual
-	[0]	0.0006545003270730376
-	[1]	0.0007854003342799842
-	[2]	0.0009163003996945918
-	[3]	0.0010472005233168602
+	[0]	0.0019175007473677397
+	[1]	0.0023010163567960262
+	[2]	0.0026845319662243128
+	[3]	0.0030680475756525993
 	...and 5502 more errors. assert_true: expected true got false
 FAIL < [detune automation] 1 out of 3 assertions were failed. assert_true: expected true got false
 FAIL # AUDIT TASK RUNNER FINISHED: 1 out of 2 tasks were failed. assert_true: expected true got false

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-overflow-expected.txt (0 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-overflow-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-overflow-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -0,0 +1,9 @@
+
+PASS # AUDIT TASK RUNNER STARTED. 
+PASS Executing "detune overflow" 
+PASS Audit report 
+PASS > [detune overflow]  
+PASS   Osc freq and detune outside nominal range contains only the constant 0. 
+PASS < [detune overflow] All assertions passed. (total 1 assertions) 
+PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-overflow.html (0 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-overflow.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-overflow.html	2020-08-28 18:52:53 UTC (rev 266289)
@@ -0,0 +1,41 @@
+<!doctype html>
+<html>
+  <head>
+    <title>Test Osc.detune Overflow</title>
+    <script src=""
+    <script src=""
+    <script src=""
+    <script src=""
+  </head>
+
+  <body>
+    <script>
+      const sampleRate = 44100;
+      const renderLengthFrames = RENDER_QUANTUM_FRAMES;
+
+      let audit = Audit.createTaskRunner();
+
+      audit.define('detune overflow', async (task, should) => {
+        let context =
+            new OfflineAudioContext(1, renderLengthFrames, sampleRate);
+
+        // This value of frequency and detune results in a computed frequency of
+        // 440*2^(153600/1200) = 1.497e41.  The frequency needs to be clamped to
+        // Nyquist.  But a sine wave at Nyquist frequency is all zeroes.  Verify
+        // the output is 0.
+        let osc = new OscillatorNode(context, {frequency: 440, detune: 153600});
+
+        osc.connect(context.destination);
+
+        let buffer = await context.startRendering();
+        let output = buffer.getChannelData(0);
+        should(output, 'Osc freq and detune outside nominal range')
+            .beConstantValueOf(0);
+
+        task.done();
+      });
+
+      audit.run();
+    </script>
+  </body>
+</html>

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


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -10,66 +10,65 @@
 PASS > [Test 0] Sine wave: 100 Hz 
 FAIL X Sine: 100 Hz does not equal [0,0.014247103594243526,0.028491314500570297,0.04272974282503128,0.056959498673677444,0.07117769122123718,0.08538143336772919,0.09956784546375275,0.11373404413461685,0.1278771609067917,0.14199431240558624,0.1560826450586319,0.17013929784297943,0.18416140973567963,0.19814614951610565,0.2120906561613083...] with an element-wise tolerance of {"absoluteThreshold":0.0000018045,"relativeThreshold":0}.
 	Index	Actual			Expected		AbsError		RelError		Test threshold
-	[1]	1.3089643791317940e-2	1.4247103594243526e-2	1.1574598029255867e-3	8.1241762247959842e-2	1.8045000000000000e-6
-	[2]	2.6176968589425087e-2	2.8491314500570297e-2	2.3143459111452103e-3	8.1229874848311581e-2	1.8045000000000000e-6
-	[3]	3.9259806275367737e-2	4.2729742825031281e-2	3.4699365496635437e-3	8.1206586331964509e-2	1.8045000000000000e-6
-	[4]	5.2335985004901886e-2	5.6959498673677444e-2	4.6235136687755585e-3	8.1171951587281285e-2	1.8045000000000000e-6
-	[5]	6.5403074026107788e-2	7.1177691221237183e-2	5.7746171951293945e-3	8.1129594063124519e-2	1.8045000000000000e-6
+	[1]	3.8340125232934952e-2	1.4247103594243526e-2	2.4093021638691425e-2	1.6910820841104921e+0	1.8045000000000000e-6
+	[2]	7.6623827219009399e-2	2.8491314500570297e-2	4.8132512718439102e-2	1.6893749397724578e+0	1.8045000000000000e-6
+	[3]	1.1479497700929642e-1	4.2729742825031281e-2	7.2065234184265137e-2	1.6865356405105483e+0	1.8045000000000000e-6
+	[4]	1.5279717743396759e-1	5.6959498673677444e-2	9.5837678760290146e-2	1.6825583263881390e+0	1.8045000000000000e-6
+	[5]	1.9057482481002808e-1	7.1177691221237183e-2	1.1939713358879089e-1	1.6774516219931357e+0	1.8045000000000000e-6
 	...and 250 more errors.
-	Max AbsError of 2.7751174569129944e-1 at index of 250.
-	[250]	-1.3052606582641602e-1	-4.0803781151771545e-1	2.7751174569129944e-1	6.8011281763099773e-1	1.8045000000000000e-6
-	Max RelError of 3.5554003082343762e+1 at index of 221.
-	[221]	2.4615347385406494e-1	-7.1237324737012386e-3	2.5327720632776618e-1	3.5554003082343762e+1	1.8045000000000000e-6
+	Max AbsError of 1.9856958389282227e+0 at index of 121.
+	[121]	-9.9740213155746460e-1	9.8829370737075806e-1	1.9856958389282227e+0	2.0092163130441643e+0	1.8045000000000000e-6
+	Max RelError of 1.1619458737977837e+2 at index of 220.
+	[220]	8.3486288785934448e-1	7.1237324737012386e-3	8.2773915538564324e-1	1.1619458737977837e+2	1.8045000000000000e-6
  assert_true: expected true got false
-FAIL X Sine: SNR (db) is not greater than or equal to 118.91. Got 13.507687016951706. assert_true: expected true got false
+FAIL X Sine: SNR (db) is not greater than or equal to 118.91. Got -3.5523977452340763. assert_true: expected true got false
 FAIL < [Test 0] 2 out of 2 assertions were failed. assert_true: expected true got false
 PASS > [Test 1] Sine wave: -100 Hz 
 FAIL X Sine: -100 Hz does not equal [0,-0.014247103594243526,-0.028491314500570297,-0.04272974282503128,-0.056959498673677444,-0.07117769122123718,-0.08538143336772919,-0.09956784546375275,-0.11373404413461685,-0.1278771609067917,-0.14199431240558624,-0.1560826450586319,-0.17013929784297943,-0.18416140973567963,-0.19814614951610565,-0.2120906561613083...] with an element-wise tolerance of {"absoluteThreshold":4.7684e-7,"relativeThreshold":0}.
 	Index	Actual			Expected		AbsError		RelError		Test threshold
-	[1]	-1.3089818879961967e-2	-1.4247103594243526e-2	1.1572847142815590e-3	8.1229472827666835e-2	4.7683999999999997e-7
-	[2]	-2.6176968589425087e-2	-2.8491314500570297e-2	2.3143459111452103e-3	8.1229874848311581e-2	4.7683999999999997e-7
-	[3]	-3.9259962737560272e-2	-4.2729742825031281e-2	3.4697800874710083e-3	8.1202924662546652e-2	4.7683999999999997e-7
-	[4]	-5.2335936576128006e-2	-5.6959498673677444e-2	4.6235620975494385e-3	8.1172801819025031e-2	4.7683999999999997e-7
-	[5]	-6.5403178334236145e-2	-7.1177691221237183e-2	5.7745128870010376e-3	8.1128128602155403e-2	4.7683999999999997e-7
+	[1]	-3.8340087980031967e-2	-1.4247103594243526e-2	2.4092984385788441e-2	1.6910794693402169e+0	4.7683999999999997e-7
+	[2]	-7.6623938977718353e-2	-2.8491314500570297e-2	4.8132624477148056e-2	1.6893788623260821e+0	4.7683999999999997e-7
+	[3]	-1.1479484289884567e-1	-4.2729742825031281e-2	7.2065100073814392e-2	1.6865325019367616e+0	4.7683999999999997e-7
+	[4]	-1.5279710292816162e-1	-5.6959498673677444e-2	9.5837604254484177e-2	1.6825570183393026e+0	4.7683999999999997e-7
+	[5]	-1.9057478010654449e-1	-7.1177691221237183e-2	1.1939708888530731e-1	1.6774509939384348e+0	4.7683999999999997e-7
 	...and 250 more errors.
-	Max AbsError of 2.7751179039478302e-1 at index of 250.
-	[250]	1.3052602112293243e-1	4.0803781151771545e-1	2.7751179039478302e-1	6.8011292718820626e-1	4.7683999999999997e-7
-	Max RelError of 3.5554019816449092e+1 at index of 221.
-	[221]	-2.4615359306335449e-1	7.1237324737012386e-3	2.5327732553705573e-1	3.5554019816449092e+1	4.7683999999999997e-7
+	Max AbsError of 1.9856958389282227e+0 at index of 121.
+	[121]	9.9740213155746460e-1	-9.8829370737075806e-1	1.9856958389282227e+0	2.0092163130441643e+0	4.7683999999999997e-7
+	Max RelError of 1.1619457064567304e+2 at index of 220.
+	[220]	-8.3486276865005493e-1	-7.1237324737012386e-3	8.2773903617635369e-1	1.1619457064567304e+2	4.7683999999999997e-7
  assert_true: expected true got false
-FAIL X Sine: SNR (db) is not greater than or equal to 130.95. Got 13.507686089555154. assert_true: expected true got false
+FAIL X Sine: SNR (db) is not greater than or equal to 130.95. Got -3.552397741128168. assert_true: expected true got false
 FAIL < [Test 1] 2 out of 2 assertions were failed. assert_true: expected true got false
 PASS > [Test 2] Sine wave: 2 Hz 
 FAIL X Sine: 2 Hz does not equal [0,0.0002849517040885985,0.000569903408177197,0.0008548550540581346,0.0011398065835237503,0.001424758112989366,0.0017097094096243382,0.0019946605898439884,0.0022796117700636387,0.0025645627174526453,0.0028495131991803646,0.003134463680908084,0.0034194139298051596,0.003704363713040948,0.003989313263446093,0.004274262581020594...] with an element-wise tolerance of {"absoluteThreshold":1.4516e-7,"relativeThreshold":0}.
 	Index	Actual			Expected		AbsError		RelError		Test threshold
-	[1]	2.6180013082921505e-4	2.8495170408859849e-4	2.3151573259383440e-5	8.1247358507408843e-2	1.4516000000000001e-7
-	[2]	5.2360026165843010e-4	5.6990340817719698e-4	4.6303146518766880e-5	8.1247358507408843e-2	1.4516000000000001e-7
-	[3]	7.8540033427998424e-4	8.5485505405813456e-4	6.9454719778150320e-5	8.1247364039596634e-2	1.4516000000000001e-7
-	[4]	1.0472005233168602e-3	1.1398065835237503e-3	9.2606060206890106e-5	8.1247170831910243e-2	1.4516000000000001e-7
-	[5]	1.3090006541460752e-3	1.4247581129893661e-3	1.1575745884329081e-4	8.1247095761689328e-2	1.4516000000000001e-7
+	[1]	7.6699256896972656e-4	2.8495170408859849e-4	4.8204086488112807e-4	1.6916581229893251e+0	1.4516000000000001e-7
+	[2]	1.5339851379394531e-3	5.6990340817719698e-4	9.6408172976225615e-4	1.6916581229893251e+0	1.4516000000000001e-7
+	[3]	2.3010163567960262e-3	8.5485505405813456e-4	1.4461613027378917e-3	1.6917035184768823e+0	1.4516000000000001e-7
+	[4]	3.0680475756525993e-3	1.1398065835237503e-3	1.9282409921288490e-3	1.6917264911452146e+0	1.4516000000000001e-7
+	[5]	3.8350063841789961e-3	1.4247581129893661e-3	2.4102482711896300e-3	1.6916894518554810e+0	1.4516000000000001e-7
 	...and 250 more errors.
-	Max AbsError of 5.8895498514175415e-3 at index of 255.
-	[255]	6.6709212958812714e-2	7.2598762810230255e-2	5.8895498514175415e-3	8.1124658650348458e-2	1.4516000000000001e-7
-	Max RelError of 8.1253450445387218e-2 at index of 23.
-	[23]	6.0213203541934490e-3	6.5538426861166954e-3	5.3252233192324638e-4	8.1253450445387218e-2	1.4516000000000001e-7
+	Max AbsError of 1.2173920124769211e-1 at index of 255.
+	[255]	1.9433796405792236e-1	7.2598762810230255e-2	1.2173920124769211e-1	1.6768770780008007e+0	1.4516000000000001e-7
+	Max RelError of 1.6917264911452146e+0 at index of 4.
  assert_true: expected true got false
-FAIL X Sine: SNR (db) is not greater than or equal to 119.93. Got 21.811635596188825. assert_true: expected true got false
+FAIL X Sine: SNR (db) is not greater than or equal to 119.93. Got -4.520416973545085. assert_true: expected true got false
 FAIL < [Test 2] 2 out of 2 assertions were failed. assert_true: expected true got false
 PASS > [Test 3] Sine wave: 1 Hz 
 FAIL X Sine: 1 Hz does not equal [0,0.00014247585204429924,0.0002849517040885985,0.00042742755613289773,0.000569903408177197,0.0007123792311176658,0.0008548550540581346,0.0009973308769986033,0.0011398065835237503,0.001282282406464219,0.001424758112989366,0.001567233819514513,0.0017097094096243382,0.0018521851161494851,0.0019946605898439884,0.0021371361799538136...] with an element-wise tolerance of {"absoluteThreshold":1.4157e-7,"relativeThreshold":0}.
 	Index	Actual			Expected		AbsError		RelError		Test threshold
-	[1]	1.3090006541460752e-4	1.4247585204429924e-4	1.1575786629691720e-5	8.1247358507408843e-2	1.4156999999999999e-7
-	[2]	2.6180013082921505e-4	2.8495170408859849e-4	2.3151573259383440e-5	8.1247358507408843e-2	1.4156999999999999e-7
-	[3]	3.9270016713999212e-4	4.2742755613289773e-4	3.4727388992905617e-5	8.1247426598083011e-2	1.4156999999999999e-7
-	[4]	5.2360026165843010e-4	5.6990340817719698e-4	4.6303146518766880e-5	8.1247358507408843e-2	1.4156999999999999e-7
-	[5]	6.5450032707303762e-4	7.1237923111766577e-4	5.7878904044628143e-5	8.1247320972315254e-2	1.4156999999999999e-7
+	[1]	3.8349628448486328e-4	1.4247585204429924e-4	2.4102043244056404e-4	1.6916581229893251e+0	1.4156999999999999e-7
+	[2]	7.6699256896972656e-4	2.8495170408859849e-4	4.8204086488112807e-4	1.6916581229893251e+0	1.4156999999999999e-7
+	[3]	1.1504888534545898e-3	4.2742755613289773e-4	7.2306129732169211e-4	1.6916581229893251e+0	1.4156999999999999e-7
+	[4]	1.5339851379394531e-3	5.6990340817719698e-4	9.6408172976225615e-4	1.6916581229893251e+0	1.4156999999999999e-7
+	[5]	1.9175007473677397e-3	7.1237923111766577e-4	1.2051215162500739e-3	1.6916853602811175e+0	1.4156999999999999e-7
 	...and 250 more errors.
-	Max AbsError of 2.9500462114810944e-3 at index of 255.
-	[255]	3.3373303711414337e-2	3.6323349922895432e-2	2.9500462114810944e-3	8.1216248439178601e-2	1.4156999999999999e-7
-	Max RelError of 8.1253793837885863e-2 at index of 47.
-	[47]	6.1522140167653561e-3	6.6963150165975094e-3	5.4410099983215332e-4	8.1253793837885863e-2	1.4156999999999999e-7
+	Max AbsError of 6.1312098056077957e-2 at index of 255.
+	[255]	9.7635447978973389e-2	3.6323349922895432e-2	6.1312098056077957e-2	1.6879527407639114e+0	1.4156999999999999e-7
+	Max RelError of 1.6917264911452146e+0 at index of 8.
+	[8]	3.0680475756525993e-3	1.1398065835237503e-3	1.9282409921288490e-3	1.6917264911452146e+0	1.4156999999999999e-7
  assert_true: expected true got false
-FAIL X Sine: SNR (db) is not greater than or equal to 112.22. Got 21.80559297189769. assert_true: expected true got false
+FAIL X Sine: SNR (db) is not greater than or equal to 112.22. Got -4.554770657895391. assert_true: expected true got false
 FAIL < [Test 3] 2 out of 2 assertions were failed. assert_true: expected true got false
 PASS > [Test 4] Custom wave: 100 Hz 
 PASS   Custom: 100 Hz equals [1,1.0141456127166748,1.0280853509902954,1.0418163537979126,1.0553359985351562,1.0686413049697876,1.081729769706726,1.094598650932312,1.1072453260421753,1.1196671724319458,1.1318618059158325,1.1438266038894653,1.1555593013763428,1.1670573949813843,1.1783186197280884,1.189340591430664...] with an element-wise tolerance of {"absoluteThreshold":0.0000018478,"relativeThreshold":0}. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/w3c-import.log (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/w3c-import.log	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/w3c-import.log	2020-08-28 18:52:53 UTC (rev 266289)
@@ -16,4 +16,5 @@
 List of files:
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/ctor-oscillator.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-limiting.html
+/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-overflow.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform.html

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/periodicWave-expected.txt (0 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/periodicWave-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/periodicWave-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -0,0 +1,33 @@
+
+PASS # AUDIT TASK RUNNER STARTED. 
+PASS Executing "create with factory method" 
+PASS Executing "different length with factory method" 
+PASS Executing "too small with factory method" 
+PASS Executing "create with constructor" 
+PASS Executing "different length with constructor" 
+PASS Executing "too small with constructor" 
+PASS Executing "output test" 
+PASS Audit report 
+PASS > [create with factory method]  
+PASS   context.createPeriodicWave(new Float32Array(4096), new Float32Array(4096)) did not throw an exception. 
+PASS < [create with factory method] All assertions passed. (total 1 assertions) 
+PASS > [different length with factory method]  
+PASS   context.createPeriodicWave(new Float32Array(512), new Float32Array(4)) threw IndexSizeError: "real and imag have different lengths". 
+PASS < [different length with factory method] All assertions passed. (total 1 assertions) 
+PASS > [too small with factory method]  
+PASS   context.createPeriodicWave(new Float32Array(1), new Float32Array(1)) threw IndexSizeError: "real's length cannot be less than 2". 
+PASS < [too small with factory method] All assertions passed. (total 1 assertions) 
+PASS > [create with constructor]  
+PASS   new PeriodicWave(context, { real : new Float32Array(4096), imag : new Float32Array(4096) }) did not throw an exception. 
+PASS < [create with constructor] All assertions passed. (total 1 assertions) 
+PASS > [different length with constructor]  
+PASS   new PeriodicWave(context, { real : new Float32Array(4096), imag : new Float32Array(4) }) threw IndexSizeError: "real and imag have different lengths". 
+PASS < [different length with constructor] All assertions passed. (total 1 assertions) 
+PASS > [too small with constructor]  
+PASS   new PeriodicWave(context, { real : new Float32Array(1), imag : new Float32Array(1) }) threw IndexSizeError: "real's length cannot be less than 2". 
+PASS < [too small with constructor] All assertions passed. (total 1 assertions) 
+PASS > [output test]  
+PASS   rendering PeriodicWave is identical to the array AudioBuffer. 
+PASS < [output test] All assertions passed. (total 1 assertions) 
+PASS # AUDIT TASK RUNNER FINISHED: 7 tasks ran successfully. 
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/periodicWave.html (0 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/periodicWave.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/periodicWave.html	2020-08-28 18:52:53 UTC (rev 266289)
@@ -0,0 +1,130 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>
+      Test Constructor: MediaStreamAudioDestinationNode
+    </title>
+    <script src=""
+    <script src=""
+    <script src=""
+    <script src=""
+  </head>
+  <body>
+    <script id="layout-test-code">
+      // real and imag are used in separate PeriodicWaves to make their peak values
+      // easy to determine.
+      const realMax = 99;
+      var real = new Float32Array(realMax + 1);
+      real[1] = 2.0; // fundamental
+      real[realMax] = 3.0;
+      const realPeak = real[1] + real[realMax];
+      const realFundamental = 19.0;
+      var imag = new Float32Array(4);
+      imag[0] = 6.0; // should be ignored.
+      imag[3] = 0.5;
+      const imagPeak = imag[3];
+      const imagFundamental = 551.0;
+
+      const testLength = 4096;
+      let context = new AudioContext();
+
+      let audit = Audit.createTaskRunner();
+
+      // Create with the factory method
+
+      audit.define('create with factory method', (task, should) => {
+        should(() => {
+          context.createPeriodicWave(new Float32Array(4096), new Float32Array(4096));
+        }, 'context.createPeriodicWave(new Float32Array(4096), ' +
+        'new Float32Array(4096))').notThrow();
+        task.done();
+      });
+
+      audit.define('different length with factory method', (task, should) => {
+        should(() => {
+          context.createPeriodicWave(new Float32Array(512), new Float32Array(4));
+        }, 'context.createPeriodicWave(new Float32Array(512), ' +
+        'new Float32Array(4))').throw(DOMException, "IndexSizeError");
+        task.done();
+      });
+
+      audit.define('too small with factory method', (task, should) => {
+        should(() => {
+          context.createPeriodicWave(new Float32Array(1), new Float32Array(1));
+        }, 'context.createPeriodicWave(new Float32Array(1), ' +
+        'new Float32Array(1))').throw(DOMException, "IndexSizeError");
+        task.done();
+      });
+
+      // Create with the constructor
+
+      audit.define('create with constructor', (task, should) => {
+        should(() => {
+          new PeriodicWave(context, { real: new Float32Array(4096), imag: new Float32Array(4096) });
+        }, 'new PeriodicWave(context, { real : new Float32Array(4096), ' +
+        'imag : new Float32Array(4096) })').notThrow();
+        task.done();
+      });
+
+      audit.define('different length with constructor', (task, should) => {
+        should(() => {
+          new PeriodicWave(context, { real: new Float32Array(4096), imag: new Float32Array(4) });
+        }, 'new PeriodicWave(context, { real : new Float32Array(4096), ' +
+        'imag : new Float32Array(4) })').throw(DOMException, "IndexSizeError");
+        task.done();
+      });
+
+      audit.define('too small with constructor', (task, should) => {
+        should(() => {
+          new PeriodicWave(context, { real: new Float32Array(1), imag: new Float32Array(1) });
+        }, 'new PeriodicWave(context, { real : new Float32Array(1), ' +
+        'imag : new Float32Array(1) })').throw(DOMException, "IndexSizeError");
+        task.done();
+      });
+
+      audit.define('output test', (task, should) => {
+        let context = new OfflineAudioContext(2, 4096, 44100);
+        // Create the expected output buffer
+        let expectations = context.createBuffer(2, testLength, context.sampleRate);
+        for (var i = 0; i < expectations.length; ++i) {
+
+          expectations.getChannelData(0)[i] = 1.0 / realPeak *
+            (real[1] * Math.cos(2 * Math.PI * realFundamental * i /
+                                context.sampleRate) +
+             real[realMax] * Math.cos(2 * Math.PI * realMax * realFundamental * i /
+                                context.sampleRate));
+
+          expectations.getChannelData(1)[i] = 1.0 / imagPeak *
+             imag[3] * Math.sin(2 * Math.PI * 3 * imagFundamental * i /
+                                context.sampleRate);
+        }
+
+        // Create the real output buffer
+        let merger = context.createChannelMerger();
+
+        let osc1 = context.createOscillator();
+        let osc2 = context.createOscillator();
+
+        osc1.setPeriodicWave(context.createPeriodicWave(
+                                real, new Float32Array(real.length)));
+        osc2.setPeriodicWave(context.createPeriodicWave(
+                                new Float32Array(imag.length), imag));
+        osc1.frequency.value = realFundamental;
+        osc2.frequency.value = imagFundamental;
+
+        osc1.start();
+        osc2.start();
+
+        osc1.connect(merger, 0, 0);
+        osc2.connect(merger, 0, 1);
+
+        context.startRendering().then(reality => {
+          should(reality, 'rendering PeriodicWave').beEqualToArray(expectations);
+          task.done();
+        });
+      });
+
+      audit.run();
+    </script>
+  </body>
+</html>

Copied: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/w3c-import.log (from rev 266288, trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/w3c-import.log) (0 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/w3c-import.log	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/w3c-import.log	2020-08-28 18:52:53 UTC (rev 266289)
@@ -0,0 +1,17 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the WPT github:
+	https://github.com/web-platform-tests/wpt
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-periodicwave-interface/periodicWave.html

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


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-expected.txt	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -4,7 +4,7 @@
 PASS Audit report 
 PASS > [test] ScriptProcessor with stopped input source 
 PASS   ScriptProcessor output[0:1023] contains only the constant 0. 
-PASS   ScriptProcessor output[1024:1151] equals [1,1.1679383516311646,1.3311063051223755,1.4848692417144775,1.6248595714569092,1.747100591659546,1.8481203317642212,1.9250493049621582,1.9757022857666016,1.9986401796340942,1.9932119846343994,1.959571361541748,1.898674488067627,1.8122506141662598,1.7027547359466553,1.573297142982483...] with an element-wise tolerance of {"absoluteThreshold":0,"relativeThreshold":0}. 
+PASS   ScriptProcessor output[1024:1151] equals [1,1.0575640201568604,1.11493718624115,1.171929121017456,1.2283508777618408,1.28401517868042,1.3387378454208374,1.3923369646072388,1.4446349143981934,1.4954586029052734,1.544638752937317,1.5920131206512451,1.6374237537384033,1.6807206869125366,1.7217600345611572,1.7604058980941772...] with an element-wise tolerance of {"absoluteThreshold":0,"relativeThreshold":0}. 
 PASS   ScriptProcessor output[1152:] contains only the constant 1. 
 PASS < [test] All assertions passed. (total 3 assertions) 
 PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-stereopanner-interface/no-dezippering-expected.txt (266288 => 266289)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-stereopanner-interface/no-dezippering-expected.txt	2020-08-28 18:37:58 UTC (rev 266288)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-stereopanner-interface/no-dezippering-expected.txt	2020-08-28 18:52:53 UTC (rev 266289)
@@ -55,21 +55,21 @@
 	...and 252 more errors. assert_true: expected true got false
 FAIL < [test stereo input] 3 out of 4 assertions were failed. assert_true: expected true got false
 PASS > [test mono input setValue] Test StereoPanner with mono input value setter vs setValueAtTime 
-PASS   Mono Left .value setter output is identical to the array [0.20861317217350006,0.19113875925540924,0.16823500394821167,0.1405525654554367,0.10887773334980011,0.07411020249128342,0.037237610667943954,-0.0006927690701559186,-0.03860342130064964,-0.07541755586862564,-0.11008944362401962,-0.1416342556476593,-0.16915595531463623,-0.1918727606534958,-0.20913946628570557,-0.2204655408859253...]. 
+PASS   Mono Left .value setter output is identical to the array [-0.028300216421484947,-0.04114878550171852,-0.053860947489738464,-0.06639444082975388,-0.07870785892009735,-0.09076013416051865,-0.10251147300004959,-0.11392276734113693,-0.12495630979537964,-0.13557545840740204,-0.14574496448040009,-0.15543124079704285,-0.1646018922328949,-0.1732267439365387,-0.1812770515680313,-0.18872623145580292...]. 
 PASS   Mono Left .value setter output matches setValueAtTime output is true. 
-PASS   Mono Right .value setter output is identical to the array [0.9000188112258911,0.8246290683746338,0.7258154153823853,0.6063852310180664,0.4697306752204895,0.31973329186439514,0.16065403819084167,-0.002988810185343027,-0.1665465533733368,-0.3253736197948456,-0.4749583601951599,-0.6110519766807556,-0.7297887206077576,-0.8277957439422607,-0.9022893905639648,-0.9511533975601196...]. 
+PASS   Mono Right .value setter output is identical to the array [-0.122095488011837,-0.1775280088186264,-0.23237203061580658,-0.2864452004432678,-0.33956894278526306,-0.3915660083293915,-0.44226476550102234,-0.4914964437484741,-0.5390984416007996,-0.5849125385284424,-0.6287867426872253,-0.6705762147903442,-0.710141122341156,-0.747351348400116,-0.782082736492157,-0.814220666885376...]. 
 PASS   Mono Right .value setter output matches setValueAtTime output is true. 
 PASS < [test mono input setValue] All assertions passed. (total 4 assertions) 
 PASS > [test stereo input setValue] Test StereoPanner with mono input value setter  vs setValueAtTime 
-PASS   Stereo Left .value setter output is identical to the array [-0.4399392008781433,-0.4193967282772064,-0.3596876561641693,-0.2663879990577698,-0.1482110172510147,-0.01619294472038746,0.11733736842870712,0.2399098426103592,0.34007757902145386,0.4084862470626831,0.4387471675872803,0.42803439497947693,0.377348393201828,0.29142266511917114,0.1782815307378769,0.048491086810827255...]. 
+PASS   Stereo Left .value setter output is identical to the array [0.25859054923057556,0.2199704945087433,0.17894035577774048,0.13594961166381836,0.09146952629089355,0.04598725214600563,0.0000010709162552302587,-0.0459851436316967,-0.09146743267774582,-0.13594762980937958,-0.17893831431865692,-0.21996863186359406,-0.2585888206958771,-0.2943759262561798,-0.32693782448768616,-0.3559175431728363...]. 
 PASS   Stereo Left .value setter output matches setValueAtTime output is true. 
-PASS   Stereo Right .value setter output is identical to the array [-1.671038031578064,-1.5648269653320312,-1.3721576929092407,-1.1050618886947632,-0.7820299863815308,-0.4263407588005066,-0.06395263969898224,0.2788553237915039,0.5778660178184509,0.8131168484687805,0.9706887006759644,1.0439329147338867,1.0340183973312378,0.9497482180595398,0.8066650629043579,0.6255297064781189...]. 
+PASS   Stereo Right .value setter output is identical to the array [0.5278493165969849,0.48173511028289795,0.43066614866256714,0.3755251467227936,0.31723907589912415,0.25676751136779785,0.1950928419828415,0.13320933282375336,0.07211104035377502,0.01278146356344223,-0.043818745762109756,-0.09676152467727661,-0.14516164362430573,-0.18818864226341248,-0.2250741422176361,-0.2551209628582001...]. 
 PASS   Stereo Right .value setter output matches setValueAtTime output is true. 
 PASS < [test stereo input setValue] All assertions passed. (total 4 assertions) 
 PASS > [test mono input automation] Test StereoPanner with mono input and automation 
-PASS   Modulated Stereo Left .value setter output is identical to the array [-6.123234262925839e-17,-5.83731630634668e-17,-5.006263826782414e-17,-3.707685225408482e-17,-2.062854940756385e-17,-2.253792958833939e-18,1.6331442078301927e-17,3.3391524397144665e-17,4.733323672269722e-17,5.685460504260725e-17,6.106643005071496e-17,5.957538736575137e-17,5.252072126331122e-17,4.056126455768074e-17,2.481387320320658e-17,6.749165968347778e-18...]. 
+PASS   Modulated Stereo Left .value setter output is identical to the array [0.5877871513366699,0.511900007724762,0.43011096119880676,0.3434051275253296,0.2528183162212372,0.15942318737506866,0.06431935727596283,-0.03138017654418945,-0.1265600323677063,-0.22011728584766388,-0.31097108125686646,-0.3980771601200104,-0.4804368317127228,-0.5571109652519226,-0.6272279620170593,-0.6899943351745605...]. 
 PASS   Modulated Stereo Left .value setter output matches setValueAtTime output is true. 
-PASS   Modulated Stereo Right .value setter output is identical to the array [-1.773010492324829,-1.6620378494262695,-1.455528736114502,-1.1668072938919067,-0.8163834810256958,-0.4300940930843353,-0.03675529360771179,0.3344634473323822,0.6566917896270752,0.9077988862991333,1.0723848342895508,1.14314603805542,1.1214830875396729,1.017296314239502,0.847988486289978,0.6367692947387695...]. 
+PASS   Modulated Stereo Right .value setter output is identical to the array [3.479795509520045e-7,0.030479563400149345,0.061084818094968796,0.09178794175386429,0.1225593239068985,0.1533685177564621,0.18418386578559875,0.21497322618961334,0.24570252001285553,0.27633801102638245,0.30684351921081543,0.3371830880641937,0.3673195540904999,0.39721453189849854,0.42682918906211853,0.45612409710884094...]. 
 PASS   Modulated Stereo Right .value setter output matches setValueAtTime output is true. 
 PASS < [test mono input automation] All assertions passed. (total 4 assertions) 
 FAIL # AUDIT TASK RUNNER FINISHED: 2 out of 5 tasks were failed. assert_true: expected true got false
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to