Commit 7703754
committed
Import Analyser / AudioBuffer / AudioBufferSource layout tests from Blink
https://bugs.webkit.org/show_bug.cgi?id=216649
Reviewed by Eric Carlson.
Import Analyser / AudioBuffer / AudioBufferSource layout tests from Blink to extend
webaudio test coverage.
* webaudio/Analyser/automatic-pull-node-expected.txt: Added.
* webaudio/Analyser/automatic-pull-node.html: Added.
* webaudio/Analyser/handle-silent-inputs-expected.txt: Added.
* webaudio/Analyser/handle-silent-inputs.html: Added.
* webaudio/Analyser/realtimeanalyser-byte-data-expected.txt: Added.
* webaudio/Analyser/realtimeanalyser-byte-data.html: Added.
* webaudio/Analyser/realtimeanalyser-downmix-expected.txt: Added.
* webaudio/Analyser/realtimeanalyser-downmix.html: Added.
* webaudio/Analyser/realtimeanalyser-fftsize-reset-expected.txt: Added.
* webaudio/Analyser/realtimeanalyser-fftsize-reset.html: Added.
* webaudio/Analyser/realtimeanalyser-float-data-expected.txt: Added.
* webaudio/Analyser/realtimeanalyser-float-data.html: Added.
* webaudio/Analyser/realtimeanalyser-freq-data-expected.txt: Added.
* webaudio/Analyser/realtimeanalyser-freq-data-smoothing-expected.txt: Added.
* webaudio/Analyser/realtimeanalyser-freq-data-smoothing.html: Added.
* webaudio/Analyser/realtimeanalyser-freq-data.html: Added.
* webaudio/Analyser/realtimeanalyser-multiple-calls-expected.txt: Added.
* webaudio/Analyser/realtimeanalyser-multiple-calls.html: Added.
* webaudio/Analyser/realtimeanalyser-zero-expected.txt: Added.
* webaudio/Analyser/realtimeanalyser-zero.html: Added.
* webaudio/AudioBuffer/audiobuffer-resample-expected.txt: Added.
* webaudio/AudioBuffer/audiobuffer-resample.html: Added.
* webaudio/AudioBuffer/huge-buffer-expected.txt: Added.
* webaudio/AudioBuffer/huge-buffer.html: Added.
* webaudio/AudioBufferSource/audiobuffersource-detune-modulated-impulse-expected.txt: Added.
* webaudio/AudioBufferSource/audiobuffersource-detune-modulated-impulse.html: Added.
* webaudio/AudioBufferSource/audiobuffersource-detune-modulation-expected.txt: Added.
* webaudio/AudioBufferSource/audiobuffersource-detune-modulation.html: Added.
* webaudio/AudioBufferSource/audiobuffersource-late-start-expected.txt: Added.
* webaudio/AudioBufferSource/audiobuffersource-late-start.html: Added.
* webaudio/AudioBufferSource/audiobuffersource-loop-comprehensive-expected.txt: Added.
* webaudio/AudioBufferSource/audiobuffersource-loop-comprehensive.html: Added.
* webaudio/AudioBufferSource/audiobuffersource-loop-grain-no-duration-expected.txt: Added.
* webaudio/AudioBufferSource/audiobuffersource-loop-grain-no-duration.html: Added.
* webaudio/AudioBufferSource/audiobuffersource-loop-points-expected.txt: Added.
* webaudio/AudioBufferSource/audiobuffersource-loop-points.html: Added.
* webaudio/AudioBufferSource/audiobuffersource-playbackrate-expected.txt: Added.
* webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulated-impulse-expected.txt: Added.
* webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulated-impulse.html: Added.
* webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation-expected.txt: Added.
* webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html: Added.
* webaudio/AudioBufferSource/audiobuffersource-playbackrate.html: Added.
* webaudio/AudioBufferSource/audiobuffersource-premature-loop-stop-expected.txt: Added.
* webaudio/AudioBufferSource/audiobuffersource-premature-loop-stop.html: Added.
* webaudio/AudioBufferSource/resources/audiobuffersource-detune-modulation-expected.wav: Added.
* webaudio/AudioBufferSource/resources/audiobuffersource-loop-points-expected.wav: Added.
* webaudio/AudioBufferSource/resources/audiobuffersource-playbackrate-modulation-expected.wav: Added.
* webaudio/audiobuffersource-loop-comprehensive-expected.txt: Removed.
* webaudio/audiobuffersource-loop-comprehensive.html: Removed.
* webaudio/audiobuffersource-loop-points-expected.wav: Removed.
* webaudio/audiobuffersource-loop-points.html: Removed.
* webaudio/audiobuffersource-negative-playbackrate-interpolated-loop.html:
* webaudio/audiobuffersource-negative-playbackrate-interpolated.html:
* webaudio/audiobuffersource-negative-playbackrate-loop.html:
* webaudio/audiobuffersource-negative-playbackrate.html:
* webaudio/audiobuffersource-playbackrate-expected.wav: Removed.
* webaudio/audiobuffersource-start.html:
* webaudio/resources/audiobuffersource-testing-legacy.js: Copied from LayoutTests/webaudio/resources/audiobuffersource-testing.js.
(createTestBuffer):
(createRamp):
(checkSingleTest):
(checkAllTests):
* webaudio/resources/audiobuffersource-testing.js:
(createTestBuffer):
(checkSingleTest):
(checkAllTests):
(createSawtoothWithModulation):
* webaudio/resources/buffer-loader.js:
(BufferLoader):
(request.onload):
(request.onerror):
(BufferLoader.prototype.loadBuffer):
(BufferLoader.prototype.load):
* webaudio/resources/fft.js: Added.
(FFT):
(this.toString):
(FFT.prototype.FFTException):
(FFT.prototype.FFTRadix2Core):
(FFT.prototype.fft):
(FFT.prototype.iFFTRadix2Core):
(FFT.prototype.ifft):
(FFT.prototype.ifftScale):
(FFT.prototype.RFFTRadix2CoreStage1):
(FFT.prototype.rfft):
* webaudio/resources/realtimeanalyser-testing.js: Added.
(createGraph):
(applyWindow):
(computeFFTMagnitude):
(dbToLinear):
(linearToDb):
(clipMagnitude):
(compareFloatFreq):
(smoothFFT):
(convertFloatToByte):
Canonical link: https://commits.webkit.org/229506@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267245 268f45cc-cd09-0410-ab3c-d52691b4dbfc1 parent 3a9bc97 commit 7703754
66 files changed
Lines changed: 4457 additions & 325 deletions
File tree
- LayoutTests
- platform
- glib
- mac
- webaudio
- Analyser
- AudioBufferSource
- resources
- AudioBuffer
- resources
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
1 | 106 | | |
2 | 107 | | |
3 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
330 | 340 | | |
331 | 341 | | |
332 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
474 | 473 | | |
475 | 474 | | |
476 | 475 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
0 commit comments