Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1054)

Issue 2728613003: Add support creating and saving a new reference file. (Closed)

Created:
3 years, 9 months ago by Raymond Toy
Modified:
3 years, 9 months ago
Reviewers:
hongchan
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add 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)
Raymond Toy
PTAL at this WIP Which style do you like? I think I like the defined ...
3 years, 9 months ago (2017-03-01 18:31:53 UTC) #2
hongchan
Looks good. I also prefer to have a task rather than a commented-out function.
3 years, 9 months ago (2017-03-03 15:53:54 UTC) #3
Raymond Toy
PTAL at this updated version where we always save the file when run from a ...
3 years, 9 months ago (2017-03-03 18:31:49 UTC) #4
hongchan
https://codereview.chromium.org/2728613003/diff/20001/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html File third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html (right): https://codereview.chromium.org/2728613003/diff/20001/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html#newcode64 third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html:64: } This section can be abstracted a function: bool ...
3 years, 9 months ago (2017-03-03 18:39:25 UTC) #5
hongchan
On 2017/03/03 18:39:25, hongchan wrote: > https://codereview.chromium.org/2728613003/diff/20001/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html > File > third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html > (right): > > ...
3 years, 9 months ago (2017-03-03 18:39:57 UTC) #6
Raymond Toy
https://codereview.chromium.org/2728613003/diff/20001/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html File third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html (right): https://codereview.chromium.org/2728613003/diff/20001/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html#newcode64 third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html:64: } On 2017/03/03 18:39:25, hongchan wrote: > This section ...
3 years, 9 months ago (2017-03-03 18:43:10 UTC) #7
hongchan
On 2017/03/03 18:43:10, Raymond Toy wrote: > https://codereview.chromium.org/2728613003/diff/20001/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html > File > third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html > (right): > ...
3 years, 9 months ago (2017-03-03 18:47:24 UTC) #8
Raymond Toy
On 2017/03/03 18:47:24, hongchan wrote: > On 2017/03/03 18:43:10, Raymond Toy wrote: > > > ...
3 years, 9 months ago (2017-03-03 18:51:11 UTC) #9
Raymond Toy
PTAL. I've changed all tests using testharness and also requiring a reference file.
3 years, 9 months ago (2017-03-03 19:53:42 UTC) #12
hongchan
lgtm
3 years, 9 months ago (2017-03-03 20:15:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2728613003/100001
3 years, 9 months ago (2017-03-03 21:47:15 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 22:47:27 UTC) #18
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/9d77b75aa9748aa22b1136823e0e...

Powered by Google App Engine
This is Rietveld 408576698