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

Issue 1702010: Add 2 tests for history. (Closed)

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

Description

Add 2 tests for history. testDownloadNoHistory,testRedirectHistory -- from Deepak. Also, move _DownloadAndWaitForStart (re-used by the new tests) to a common location. TEST=python chrome/test/funtional/history.py Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45987

Patch Set 1 #

Total comments: 1

Patch Set 2 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -19 lines) Patch
A chrome/test/data/History/landing.html View 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/History/redirector.html View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/test/functional/downloads.py View 4 chunks +3 lines, -19 lines 0 comments Download
M chrome/test/functional/history.py View 1 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyauto.py View 1 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyautolib.i View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Nirnimesh
10 years, 8 months ago (2010-04-27 00:52:22 UTC) #1
John Grabowski
LGTM http://codereview.chromium.org/1702010/diff/1/6 File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/1702010/diff/1/6#newcode250 chrome/test/pyautolib/pyauto.py:250: num_downloads = len(self.GetDownloadsInfo().Downloads()) Idea: logging.warn if URL is ...
10 years, 7 months ago (2010-04-28 23:10:02 UTC) #2
Nirnimesh
10 years, 7 months ago (2010-04-29 00:16:41 UTC) #3
On Wed, Apr 28, 2010 at 4:10 PM, <jrg@chromium.org> wrote:

> LGTM
>
>
>
> http://codereview.chromium.org/1702010/diff/1/6
> File chrome/test/pyautolib/pyauto.py (right):
>
> http://codereview.chromium.org/1702010/diff/1/6#newcode250
> chrome/test/pyautolib/pyauto.py:250: num_downloads =
> len(self.GetDownloadsInfo().Downloads())
> Idea: logging.warn if URL is not file:// ?  Helps make sure tests aren't
> flaky.
>

Done


> Perhaps one day we want to start our own web server as part of pyauto
> tests.  When doing that, perhaps we can check for "file:// or the local
> URL" ?


Yes, that's in my todo list. I intend to fire up a webserver and use a
function call like self.GetHTTPUrlForFile() for a filesystem path.


>
>
> http://codereview.chromium.org/1702010/show
>



-- 
../NiR

Powered by Google App Engine
This is Rietveld 408576698