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

Issue 2627323008: Move WPT fetch out of the LocalWPT constructor. (Closed)

Created:
3 years, 11 months ago by qyearsley
Modified:
3 years, 11 months ago
Reviewers:
jeffcarp
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, chromium-reviews, Dirk Pranke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move WPT fetch out of the LocalWPT constructor. BUG=679955 Review-Url: https://codereview.chromium.org/2627323008 Cr-Commit-Position: refs/heads/master@{#444522} Committed: https://chromium.googlesource.com/chromium/src/+/1af3b5587d608b0417f3784703f8d389742cded0

Patch Set 1 #

Patch Set 2 : Move WPT fetch out of the LocalWPT constructor. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -27 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py View 1 3 chunks +7 lines, -10 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py View 3 chunks +14 lines, -17 lines 4 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter.py View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
qyearsley
3 years, 11 months ago (2017-01-16 00:48:57 UTC) #3
jeffcarp
https://codereview.chromium.org/2627323008/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py File third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py (right): https://codereview.chromium.org/2627323008/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py#newcode29 third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py:29: ]) Is this the proper way to format? I'm ...
3 years, 11 months ago (2017-01-18 20:21:23 UTC) #11
jeffcarp
lgtm
3 years, 11 months ago (2017-01-18 20:21:27 UTC) #12
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/2627323008/20001
3 years, 11 months ago (2017-01-18 22:36:27 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/1af3b5587d608b0417f3784703f8d389742cded0
3 years, 11 months ago (2017-01-18 22:44:48 UTC) #17
qyearsley
3 years, 11 months ago (2017-01-18 23:26:25 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/2627323008/diff/20001/third_party/WebKit/Tool...
File third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py
(right):

https://codereview.chromium.org/2627323008/diff/20001/third_party/WebKit/Tool...
third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py:29: ])
On 2017/01/18 at 20:21:22, jeffcarp wrote:
> Is this the proper way to format? I'm always confused.

There are multiple proper ways. The main rules are:
 - For multiline dicts/lists, the close bracket is lined up with the start of
the line that has the start bracket.
 - For function arguments, you can either break right after the open parenthesis
or not. Either way, all function arguments after line breaks should be lined up
with the first argument.

See https://www.python.org/dev/peps/pep-0008/#code-lay-out

As long as the linter doesn't complain, it's OK. So, some valid styles include:

my_function([...])
my_function([
   ...,
   ...,
])
my_function(
    [...])
my_function(
    [...,
     ...])

But it's always good to be consistent with surrounding code, and in order to
make it easy to insert/add lines, I would tend to prefer:

my_function([
    ...,
    ...,
])
OR
my_function(
    [
        ...,
        ...,
    ])

https://codereview.chromium.org/2627323008/diff/20001/third_party/WebKit/Tool...
third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py:42: #
On 2017/01/18 at 20:21:23, jeffcarp wrote:
> Looks like this got left behind

Oh! I didn't see this comment. Will have to clean up later.

Powered by Google App Engine
This is Rietveld 408576698