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

Issue 2392683003: Remove TestWebKitPort from port_testcase. (Closed)

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

Description

Remove TestWebKitPort from port_testcase. This removes TestWebKitPort (as suggested by a FIXME in the code) and replaces each use with different Port subclasses. For the most part this is straightforward, except for a few test methods. Notes: - Previously, test_path_to_apache_config_file just tested the logic in the base Port class, but Port subclasses have different behavior, so more specific test methods could be added in test case subclasses. - The test_apache_config_file_name_for_platform method was testing behavior in the base Port class which didn't make sense to repeat for port subclasses, so I moved it to base_unittest. Committed: https://crrev.com/70a7b38d071eab05a3afba41dabfae5ae5027c9c Cr-Commit-Position: refs/heads/master@{#423679}

Patch Set 1 #

Patch Set 2 : Get tests to pass again #

Patch Set 3 : update editing port test case subclasses #

Patch Set 4 : Rebased #

Total comments: 4

Patch Set 5 : Removed print; delete env var rather than setting to None #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -96 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android_unittest.py View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py View 1 2 3 2 chunks +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test_driver.py View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test_driver_unittest.py View 1 chunk +5 lines, -11 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test_unittest.py View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/driver_unittest.py View 1 2 3 9 chunks +10 lines, -13 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mac_unittest.py View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py View 1 2 3 4 5 chunks +23 lines, -69 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/win_unittest.py View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
qyearsley
4 years, 2 months ago (2016-10-05 23:27:23 UTC) #5
Dirk Pranke
Mostly lgtm, but a couple of nits. https://codereview.chromium.org/2392683003/diff/60001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android.py (right): https://codereview.chromium.org/2392683003/diff/60001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android.py#newcode660 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android.py:660: print self._host_port ...
4 years, 2 months ago (2016-10-06 17:48:58 UTC) #10
qyearsley
Thanks for taking a look (nits now fixed) https://codereview.chromium.org/2392683003/diff/60001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android.py (right): https://codereview.chromium.org/2392683003/diff/60001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android.py#newcode660 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android.py:660: print ...
4 years, 2 months ago (2016-10-06 20:15:43 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/2392683003/80001
4 years, 2 months ago (2016-10-06 20:18:20 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-06 21:14:46 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 21:17:09 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/70a7b38d071eab05a3afba41dabfae5ae5027c9c
Cr-Commit-Position: refs/heads/master@{#423679}

Powered by Google App Engine
This is Rietveld 408576698