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

Issue 2121823003: Refactor test.py to be easier to fake. (Closed)

Created:
4 years, 5 months ago by bokan
Modified:
4 years, 5 months ago
Reviewers:
Dirk Pranke, qyearsley
CC:
blink-reviews, chromium-reviews, Dirk Pranke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor test.py to be easier to fake. Moved some of the data returned by TestPort into public instance variables that can be replaced for testing. BUG=595414 Committed: https://crrev.com/c3b32bfae7846d76e84f33f119d5762c9f556a35 Cr-Commit-Position: refs/heads/master@{#404212}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fixed comment #

Total comments: 1

Patch Set 3 : Updated with Dirk's suggestion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -20 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py View 1 2 2 chunks +21 lines, -20 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (9 generated)
bokan
4 years, 5 months ago (2016-07-05 12:53:36 UTC) #5
qyearsley
https://codereview.chromium.org/2121823003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py (left): https://codereview.chromium.org/2121823003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py#oldcode546 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py:546: ('trusty', 'x86_64')) Could this also be faked as-is without ...
4 years, 5 months ago (2016-07-06 18:44:48 UTC) #6
bokan
https://codereview.chromium.org/2121823003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py (left): https://codereview.chromium.org/2121823003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py#oldcode546 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py:546: ('trusty', 'x86_64')) On 2016/07/06 18:44:48, qyearsley wrote: > Could ...
4 years, 5 months ago (2016-07-06 21:29:19 UTC) #7
Dirk Pranke
https://codereview.chromium.org/2121823003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py (right): https://codereview.chromium.org/2121823003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py#newcode406 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py:406: } I would make these public instance variables (i.e., ...
4 years, 5 months ago (2016-07-06 21:51:38 UTC) #8
qyearsley
https://codereview.chromium.org/2121823003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py (left): https://codereview.chromium.org/2121823003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py#oldcode546 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py:546: ('trusty', 'x86_64')) On 2016/07/06 at 21:29:19, bokan wrote: > ...
4 years, 5 months ago (2016-07-06 22:40:53 UTC) #9
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/2121823003/40001
4 years, 5 months ago (2016-07-07 17:54:48 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-07 19:36:50 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 19:38:35 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c3b32bfae7846d76e84f33f119d5762c9f556a35
Cr-Commit-Position: refs/heads/master@{#404212}

Powered by Google App Engine
This is Rietveld 408576698