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

Issue 5255005: Add pyauto tests for the New Tab page. (Closed)

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

Description

Add pyauto tests for the New Tab page. BUG=63816 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68268

Patch Set 1 : ... #

Total comments: 33

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -13 lines) Patch
M chrome/test/functional/ntp.py View 1 4 chunks +212 lines, -13 lines 0 comments Download
M chrome/test/functional/test_utils.py View 2 chunks +52 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyautolib.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyautolib.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyautolib.i View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
kkania
these are from emails; I changed a lot of these to fit with with the ...
10 years, 1 month ago (2010-11-23 22:49:18 UTC) #1
Nirnimesh
Minor comments only. Great to see these going in. Thanks for the heavylifting. http://codereview.chromium.org/5255005/diff/2001/chrome/test/functional/ntp.py File ...
10 years, 1 month ago (2010-11-24 09:58:23 UTC) #2
kkania
Fixed almost all comments. A few had questions about. Also, what is our stance about ...
10 years, 1 month ago (2010-11-24 17:40:35 UTC) #3
Nirnimesh
10 years, 1 month ago (2010-11-24 20:38:11 UTC) #4
LGTM

Ideally every function including test methods' docstring should have a one-line
summary followed by detailed desc if needed.

The one-line summary is especially good for test methods since it gets printed
out when the test is run, and gives an idea of what the test did when looking at
the buildbot output. But I don't enforce it strongly for test methods.
However, I do enforce it for classes and helper functions.

http://codereview.chromium.org/5255005/diff/2001/chrome/test/functional/ntp.py
File chrome/test/functional/ntp.py (right):

http://codereview.chromium.org/5255005/diff/2001/chrome/test/functional/ntp.p...
chrome/test/functional/ntp.py:137: 
On 2010/11/24 17:40:35, kkania wrote:
> On 2010/11/24 09:58:23, Nirnimesh wrote:
> > please assert that |thumbnails| is not empty
> 
> I am interested in your thoughts about this. I was thinking that this test
> should assume that the move function works, since it is tested by
> testMoveThumbnailBasic. This makes the test simpler and more focused.
> Assumptions like this are made in several places in this and other files.

Ok

Powered by Google App Engine
This is Rietveld 408576698