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

Issue 1007007: PyAuto: Flags to forbid cleaning profile dir... (Closed)

Created:
10 years, 9 months ago by Nirnimesh
Modified:
9 years, 7 months ago
Reviewers:
John Grabowski
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

PyAuto: Flags to forbid cleaning profile dir Several tests require quitting/killing chromium to test features like restore. In addition, one might want to use pyauto on an existing profile. This CL lets pyauto work without cleaning the profile dir. Also lets specify the homepage to use. Example: Running this test with CHROME_UI_TESTS_USER_DATA_DIR pointing to a profile dir will run my script with the given dir as the user-data-dir without cleaning it up, and also specifies the homepage to use. class A(PyUITest): def __init__(self, methodName): PyUITest.__init__(self, methodName, clear_profile=False, homepage="http://www.cnn.com") def testA(self): pass BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41878

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -9 lines) Patch
M chrome/test/pyautolib/pyauto.py View 1 2 chunks +15 lines, -3 lines 1 comment Download
M chrome/test/pyautolib/pyautolib.h View 1 chunk +2 lines, -1 line 1 comment Download
M chrome/test/pyautolib/pyautolib.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/pyautolib/pyautolib.i View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/test/ui/ui_test.h View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Nirnimesh
10 years, 9 months ago (2010-03-16 22:44:50 UTC) #1
John Grabowski
http://codereview.chromium.org/1007007/diff/1/3 File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/1007007/diff/1/3#newcode71 chrome/test/pyautolib/pyauto.py:71: def __init__(self, methodName='runTest', extra_chrome_flags=None, we're starting to get an ...
10 years, 9 months ago (2010-03-16 23:35:27 UTC) #2
Nirnimesh
http://codereview.chromium.org/1007007/diff/1/3 File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/1007007/diff/1/3#newcode71 chrome/test/pyautolib/pyauto.py:71: def __init__(self, methodName='runTest', extra_chrome_flags=None, On 2010/03/16 23:35:27, John Grabowski ...
10 years, 9 months ago (2010-03-17 00:35:19 UTC) #3
John Grabowski
10 years, 9 months ago (2010-03-17 01:18:55 UTC) #4
LGTM

http://codereview.chromium.org/1007007/diff/10001/11002
File chrome/test/pyautolib/pyauto.py (right):

http://codereview.chromium.org/1007007/diff/10001/11002#newcode95
chrome/test/pyautolib/pyauto.py:95: if extra_chrome_flags is not None:
"if extra chrome flags:"
(no need for "is not None" unless the empty string is a valid value, which I
don't think it is)

http://codereview.chromium.org/1007007/diff/10001/11004
File chrome/test/pyautolib/pyautolib.h (right):

http://codereview.chromium.org/1007007/diff/10001/11004#newcode29
chrome/test/pyautolib/pyautolib.h:29: // Only public methods are accessible from
swig.
No need to repeat the doc for variables here, but maybe say something like "doc
for these args can be found in pyautolib.py"

Powered by Google App Engine
This is Rietveld 408576698