w3c-test-autoroller adds extra newline after marker comment. |
|||
Issue descriptionWhen w3c-test-autoroller (https://build.chromium.org/p/chromium.infra.cron/builders/w3c-test-autoroller) has no lines to add to TestExpectations but it finds a marker comment in that file, it unnecessarily adds a blank line below the marker comment. Example CL: https://codereview.chromium.org/2331373005 When investigating this, I realized that update_w3c_test_expectations.py that doesn't re-use the test expectations parsing logic that's usually used to parse the test expectations file, but I think it should.
,
Sep 16 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d8df377160ed2d41799df0ddfa30f44065059ee7 commit d8df377160ed2d41799df0ddfa30f44065059ee7 Author: qyearsley <qyearsley@chromium.org> Date: Fri Sep 16 18:11:07 2016 In update_w3c_test_expectations use ExpectationLine.tokenize_line and refactor. In this CL: - Make test methods in update_w3c_test_expectations have more realistic examples. - Change some lines in write_to_test_expectations to make that method shorter. This is a refactoring CL (no behavior changes). BUG= 647395 Review-Url: https://codereview.chromium.org/2349543002 Cr-Commit-Position: refs/heads/master@{#419215} [modify] https://crrev.com/d8df377160ed2d41799df0ddfa30f44065059ee7/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py [modify] https://crrev.com/d8df377160ed2d41799df0ddfa30f44065059ee7/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py
,
Sep 16 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b62f63468f84210243aa8cef38c5a087b4a8c291 commit b62f63468f84210243aa8cef38c5a087b4a8c291 Author: qyearsley <qyearsley@chromium.org> Date: Fri Sep 16 19:50:59 2016 In update_w3c_test_expectations, do nothing when there are no new lines to add. BUG= 647395 Review-Url: https://codereview.chromium.org/2338293004 Cr-Commit-Position: refs/heads/master@{#419257} [modify] https://crrev.com/b62f63468f84210243aa8cef38c5a087b4a8c291/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py [modify] https://crrev.com/b62f63468f84210243aa8cef38c5a087b4a8c291/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py
,
Sep 16 2016
,
Sep 22 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Sep 15 2016