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

Issue 2708953003: Move task.describe descriptions to audit.define (Closed)

Created:
3 years, 10 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

Move task.describe descriptiosn to audit.define Move the description of the task into the first argument audit.define. This is the first step at removing support for task.describe. The conversion was done using the gawk script: /^ *audit.define\(/ { audit = $0 next } /^ *task.describe\(.*\);/ { desc_match = match($0, /^( *)task.describe\((.*)\)/, desc_pat); label_match = match(audit, /^( *)audit.define\((['"].*['"]),(.*)/, label_pat) printf "%saudit.define({\n", label_pat[1] printf "%s label: %s,\n", label_pat[1], label_pat[2] printf "%s description: %s\n", label_pat[1], desc_pat[2] printf "%s},%s", label_pat[1], label_pat[3] next } { print } This script tries to indent things reasonably nicely, but doesn't handle the case where the description is very long or where the indentation is different. Also, not all files could be converted automatically because the script is not smart enough. These will be handled separately. BUG=694659 TEST=none Review-Url: https://codereview.chromium.org/2708953003 Cr-Commit-Position: refs/heads/master@{#453770} Committed: https://chromium.googlesource.com/chromium/src/+/6ae3ac58c9bc4d6c20a3ec2dab0b08dd62acb1dc

Patch Set 1 #

Patch Set 2 : Convert AudioBufferSource #

Patch Set 3 : Convert AudioContext #

Patch Set 4 : Convert AudioNode #

Patch Set 5 : Convert AudioParam #

Patch Set 6 : Convert BiquadFilter #

Patch Set 7 : Convert ChannelSplitter #

Patch Set 8 : Convert Delay #

Patch Set 9 : Convert DynamicsCompressor #

Patch Set 10 : Convert Gain #

Patch Set 11 : Convert OfflineAudioContext #

Patch Set 12 : Convert Panner #

Total comments: 4

Patch Set 13 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -113 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/Analyser/handle-silent-inputs.html View 1 chunk +12 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-sizing.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/note-grain-on-play.html View 1 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/sample-accurate-scheduling.html View 1 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html View 1 2 5 chunks +20 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close-basic.html View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html View 1 2 3 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode.html View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode-channel-rules.html View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode-connect-order.html View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-linearRampToValueAtTime.html View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setTargetAtTime.html View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueAtTime.html View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurveAtTime.html View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-bandpass.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-getFrequencyResponse.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-highpass.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-highshelf.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-lowpass.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-lowshelf.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-notch.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-peaking.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-tail.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquadfilternode-basic.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquadfilternode-basic-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/ChannelSplitter/audiochannelsplitter.html View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/Delay/delaynode.html View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/Delay/delaynode-max-default-delay.html View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/Delay/delaynode-max-nondefault-delay.html View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/Delay/delaynode-maxdelaylimit.html View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/Delay/delaynode-scheduling.html View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/DynamicsCompressor/dynamicscompressor-basic.html View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/DynamicsCompressor/dynamicscompressor-simple.html View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/Gain/gain.html View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/OfflineAudioContext/offlineaudiocontext-constructor.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/OfflineAudioContext/offlineaudiocontext-suspend-resume-eventhandler.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/OfflineAudioContext/offlineaudiocontext-suspend-resume-graph-manipulation.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/OfflineAudioContext/offlineaudiocontext-suspend-resume-promise.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/OfflineAudioContext/offlineaudiocontext-suspend-resume-sequence.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/OfflineAudioContext/onstatechange.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/Panner/hrtf-database.html View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
Raymond Toy
PTAL and let me know if this style for the conversion looks good.
3 years, 10 months ago (2017-02-22 16:36:29 UTC) #3
Raymond Toy
PTAL. These files were the ones that the script could handle and I didn't edit ...
3 years, 10 months ago (2017-02-22 17:52:42 UTC) #6
hongchan
lgtm with nits. I don't mind fixing them manually. https://codereview.chromium.org/2708953003/diff/240001/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html File third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html (right): https://codereview.chromium.org/2708953003/diff/240001/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html#newcode73 third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html:73: ...
3 years, 10 months ago (2017-02-22 17:59:13 UTC) #7
Raymond Toy
https://codereview.chromium.org/2708953003/diff/240001/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html File third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html (right): https://codereview.chromium.org/2708953003/diff/240001/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html#newcode73 third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html:73: }, function (task, should) { let tests = []; ...
3 years, 10 months ago (2017-02-22 19:34:09 UTC) #8
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/2708953003/260001
3 years, 9 months ago (2017-02-28 23:26:38 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 00:29:27 UTC) #14
Message was sent while issue was closed.
Committed patchset #13 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/6ae3ac58c9bc4d6c20a3ec2dab0b...

Powered by Google App Engine
This is Rietveld 408576698