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

Issue 1022703004: [Password manager Python tests] Remove some dead code (Closed)

Created:
5 years, 9 months ago by vabr (Chromium)
Modified:
5 years, 9 months ago
Reviewers:
engedy
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@369521_remove_disabled_tests
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Password manager Python tests] Remove some dead code This CL removes: * Unused support for logging in environment.py. The two current diagnostics messages will be replaced later if needed, after the code gets rearranged. The command-line support for log levels was not used (and not working last time I tried). * Some unused code was removed, including WebsiteTest's SendEnterTo action. * It simplified the way to obtain all tests names -- no longer needed to instantiate Environment. * It removes adding ../../../../third_party/webdriver/pylib/ to sys.path -- this has not worked in most cases and was not needed (webdriver path has been added, from various sources, outside of the scripts in the framework we used). It also removes some part of the unused ability to run all tests, which has recently been simulated by running all tests one by one outside of Python. That was to make the tests run in parallel. This is just a transitional state, and is described in the TODOs. BUG=369521 Committed: https://crrev.com/ab29ef03762e48937e6fa28d692b59cdfcf6bc0b Cr-Commit-Position: refs/heads/master@{#322447}

Patch Set 1 : #

Total comments: 23

Patch Set 2 : Just rebased #

Patch Set 3 : Comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -233 lines) Patch
M components/test/data/password_manager/automated_tests/README View 1 chunk +0 lines, -2 lines 0 comments Download
M components/test/data/password_manager/automated_tests/environment.py View 1 2 8 chunks +45 lines, -77 lines 0 comments Download
M components/test/data/password_manager/automated_tests/run_tests.py View 3 chunks +1 line, -4 lines 0 comments Download
M components/test/data/password_manager/automated_tests/tests.py View 1 2 5 chunks +74 lines, -137 lines 0 comments Download
M components/test/data/password_manager/automated_tests/websitetest.py View 2 chunks +0 lines, -13 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
vabr (Chromium)
Thank you, Balázs, for being willing to have a look! Vaclav
5 years, 9 months ago (2015-03-26 13:26:37 UTC) #4
engedy
LGTM % some minor comments. We should introduce using new-style classes and properties in a ...
5 years, 9 months ago (2015-03-26 16:18:56 UTC) #5
vabr (Chromium)
Thanks, Balázs! I agree with the new-style classes and properties, that's a definite TODO. I'd ...
5 years, 9 months ago (2015-03-26 18:01:50 UTC) #6
engedy
Still LGTM, thanks! https://codereview.chromium.org/1022703004/diff/40001/components/test/data/password_manager/automated_tests/environment.py File components/test/data/password_manager/automated_tests/environment.py (left): https://codereview.chromium.org/1022703004/diff/40001/components/test/data/password_manager/automated_tests/environment.py#oldcode91 components/test/data/password_manager/automated_tests/environment.py:91: # If |chrome_path| is not defined, ...
5 years, 9 months ago (2015-03-26 18:04:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1022703004/80001
5 years, 9 months ago (2015-03-26 18:16:00 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 9 months ago (2015-03-26 19:28:14 UTC) #10
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 19:29:43 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ab29ef03762e48937e6fa28d692b59cdfcf6bc0b
Cr-Commit-Position: refs/heads/master@{#322447}

Powered by Google App Engine
This is Rietveld 408576698