|
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
Total comments: 4
|
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
|
Total messages: 14 (8 generated)
|