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

Issue 2872393002: Add layout-test-tidy to LayoutTests/webaudio/tools (Closed)

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

Description

Add layout-test-tidy to LayoutTests/webaudio/tools This tool, a Node.js CLI utility, performs a set of clean-up tasks for layout test files in LayoutTests/webaudio. (Potentially it can be applied to any kind of layout test files in HTML or JS format.) The clean-up tasks includes: - Sanitize missing or incorrect HTML elements: reordering |script| elements or adding missing |title| element. - Apply [html-tidy](http://www.html-tidy.org/). - Apply [clang-format](https://clang.llvm.org/docs/ClangFormat.html). - Perform RegExp substitution based on predefined dictionary. (e.g. |var| to |let|, or redundant empty lines in markup.) For every step of clean-up processing, the tool collects warning, diagnostics or notes and print out the logs at the end of the processing. For more info, refer README.md file included. BUG=720378 Review-Url: https://codereview.chromium.org/2872393002 Cr-Commit-Position: refs/heads/master@{#471857} Committed: https://chromium.googlesource.com/chromium/src/+/1dd94e01da63c05f3c6855ac25a911f2d43868ae

Patch Set 1 #

Total comments: 38

Patch Set 2 : Addressing feedback (1) #

Total comments: 10

Patch Set 3 : Addressing feedback (2) #

Total comments: 1

Patch Set 4 : Remove indentation hack after l-g-t-m #

Unified diffs Side-by-side diffs Delta from patch set Stats (+631 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/webaudio/tools/.gitignore View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/tools/README.md View 1 1 chunk +57 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js View 1 2 1 chunk +562 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/tools/package.json View 1 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
hongchan
PTAL.
3 years, 7 months ago (2017-05-10 20:38:39 UTC) #2
Raymond Toy
https://codereview.chromium.org/2872393002/diff/1/third_party/WebKit/LayoutTests/webaudio/tools/README.md File third_party/WebKit/LayoutTests/webaudio/tools/README.md (right): https://codereview.chromium.org/2872393002/diff/1/third_party/WebKit/LayoutTests/webaudio/tools/README.md#newcode3 third_party/WebKit/LayoutTests/webaudio/tools/README.md:3: This tool, a Node.js CLI utility, performs a set ...
3 years, 7 months ago (2017-05-10 21:28:44 UTC) #3
hongchan
Sorry for the messy patch. Now you can specify two options: * --inplace or -i: ...
3 years, 7 months ago (2017-05-11 21:13:02 UTC) #6
hongchan
The following is the example output from test-basic.html https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/webaudio/test-basic.html --- <!DOCTYPE html> <!-- This is ...
3 years, 7 months ago (2017-05-11 21:34:57 UTC) #8
Raymond Toy
Everything looks good. I have just one major issue. https://codereview.chromium.org/2872393002/diff/40001/third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js File third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js (right): https://codereview.chromium.org/2872393002/diff/40001/third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js#newcode25 third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js:25: ...
3 years, 7 months ago (2017-05-11 21:50:28 UTC) #9
hongchan
https://codereview.chromium.org/2872393002/diff/40001/third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js File third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js (right): https://codereview.chromium.org/2872393002/diff/40001/third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js#newcode25 third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js:25: {'indent': 'yes', 'indent-spaces': '2', 'wrap': '80', 'tidy-mark': 'no'}, On ...
3 years, 7 months ago (2017-05-11 22:50:52 UTC) #10
Raymond Toy
lgtm with nit https://codereview.chromium.org/2872393002/diff/60001/third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js File third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js (right): https://codereview.chromium.org/2872393002/diff/60001/third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js#newcode274 third_party/WebKit/LayoutTests/webaudio/tools/layout-test-tidy.js:274: if (numberOfScriptElementsWithCode !== 1) { I ...
3 years, 7 months ago (2017-05-12 16:19:01 UTC) #11
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/2872393002/80001
3 years, 7 months ago (2017-05-15 17:33:48 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 19:12:40 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/1dd94e01da63c05f3c6855ac25a9...

Powered by Google App Engine
This is Rietveld 408576698