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

Issue 2629253002: Refactoring: Simplify setUp in update_w3c_test_expectations_unittest.py. (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

Simplify update_w3c_test_expectations_unittest.py. In this unit test, there were several example dicts set up in the setUp method; this CL changes it so that literal dicts are used in individual methods. I think that this would make it easier to read individual test methods in isolation. Note, this unit test was originally written by our summer 2016 interns, who added update_w3c_test_expectations.py (which is responsible for updating baselines and TestExpectations during the import process). This CL also simplifies some example dicts/strings. Review-Url: https://codereview.chromium.org/2629253002 Cr-Commit-Position: refs/heads/master@{#443469} Committed: https://chromium.googlesource.com/chromium/src/+/290a4d72a0d9671c579a6b3d635ba1cad49bfe50

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add commas for consistency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -73 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py View 1 10 chunks +113 lines, -73 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
qyearsley
3 years, 11 months ago (2017-01-12 22:31:55 UTC) #3
jeffcarp
lgtm https://codereview.chromium.org/2629253002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py File third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py (right): https://codereview.chromium.org/2629253002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py#newcode285 third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py:285: 'three': {'expected': 'FAIL', 'actual': 'PASS'} (nit) should there ...
3 years, 11 months ago (2017-01-13 01:02:28 UTC) #5
qyearsley
https://codereview.chromium.org/2629253002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py File third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py (right): https://codereview.chromium.org/2629253002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py#newcode285 third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations_unittest.py:285: 'three': {'expected': 'FAIL', 'actual': 'PASS'} On 2017/01/13 at 01:02:28, ...
3 years, 11 months ago (2017-01-13 01:15:49 UTC) #6
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/2629253002/20001
3 years, 11 months ago (2017-01-13 01:17:45 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 02:21:09 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/290a4d72a0d9671c579a6b3d635b...

Powered by Google App Engine
This is Rietveld 408576698