Chromium Code Reviews
DescriptioncreatePeriodicWave parameters are sequence<float>
Change the parameter types for createPeriodicWave from Float32Array to
sequence<float>. this makes createPeriodicWave signal errors if
non-finite Fourier coefficients are used and matches what the
PeriodicWave constructor behavior.
Also periodic-lengths.html was actually generating Infinity for some
coefficient values, so the test is updated to correct for that. And
the selected waveform is changed from square to sawtooth because the
Fourier series for a sawtooth is non-zero everywhere. This fixes the
problem where the wave with 8192 coefficients was the same as for
8191. Which has to be true because a square wave only has non-zero
coefficients for the odd terms, so the arrays for 8192 and 8191 were
the same. With a sawtooth, these are now different.
Add new test to verify that we throw errors if non-finite values are
used for the Fourier coefficients.
BUG=709512
TEST=periodicwave-lengths.html, periodicwave-exceptions.html
Review-Url: https://codereview.chromium.org/2807673002
Cr-Commit-Position: refs/heads/master@{#464441}
Committed: https://chromium.googlesource.com/chromium/src/+/445c9544f743c5fb1dee4ba1594360bb10366f92
Patch Set 1 #Patch Set 2 : Rebaseline #Patch Set 3 : Remove one unneeded create function #Patch Set 4 : Rebase #
Total comments: 2
Patch Set 5 : Address review comments #Patch Set 6 : Rebase #Patch Set 7 : Rebaseline test result #Patch Set 8 : Update tests and results (no SharedArrayBuffer for createPeriodicWave) #Patch Set 9 : Rebaseline test #Messages
Total messages: 36 (19 generated)
|