Chromium Code Reviews
DescriptionAdd support creating and saving a new reference file.
Since many tests switched from using finishAudioTest to doing a manual
comparison between the actual results and the expected results in a
wav file, we lost the ability to create easily the reference wav file.
This adds a simple method to allow saving the actual result to a
file. This is intended to be run in a browser where the actual result
is automatically downloaded for the developer to examine. This is part
of the test, so it's automatic. When run as a layout test, no file is saved.
This has no effect on the layout tests, so each affected test was
run manually in a browser to see that the file was generated and a
quick check was done comparing the new result with the expected result.
For the record on a linux machine:
detune-modulation: max error 1 bit, 95 differences.
playback-modulation: max error 1 bit, 15 differences.
gain: no differences
webm-decode: max error 1 bit, 465 differences
osc-custom: no differences
osc-sawtooth: no differences
osc-sine: no differences
osc-square: no differences
osc-triangle: no differences
BUG=696773
TEST=none
Review-Url: https://codereview.chromium.org/2728613003
Cr-Commit-Position: refs/heads/master@{#454693}
Committed: https://chromium.googlesource.com/chromium/src/+/9d77b75aa9748aa22b1136823e0e4d1ace6afd6e
Patch Set 1 #Patch Set 2 : Address review comments. #
Total comments: 2
Patch Set 3 : Address review comments #Patch Set 4 : Update other tests that need reference files #Patch Set 5 : Save webm reference file. #Patch Set 6 : Fix typo #
Messages
Total messages: 18 (6 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||