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

Issue 5781006: Fix pyauto downloads tests to trigger dangerous downloads to match expectation (Closed)

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

Description

Fix pyauto downloads tests to trigger dangerous downloads to match expectation It used to be possible to navigate to a dnagerous file type to trigger its download. Not anymore. Now all downloads where the user initiated it (by navigating to a URL or clicking on a link) are not marked unsafe even for unsafe filetypes. Update the tests to trigger dangerous downloads by navigating to a file which in turn triggers the dangerous files to download. BUG=66081, 57875 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69093

Patch Set 1 #

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -23 lines) Patch
A chrome/test/data/downloads/dangerous/download-dangerous.html View 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/test/functional/PYAUTO_TESTS View 4 chunks +0 lines, -14 lines 0 comments Download
M chrome/test/functional/downloads.py View 1 2 4 chunks +32 lines, -9 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
Nirnimesh
10 years ago (2010-12-14 00:20:57 UTC) #1
kkania
http://codereview.chromium.org/5781006/diff/2001/chrome/test/functional/downloads.py File chrome/test/functional/downloads.py (right): http://codereview.chromium.org/5781006/diff/2001/chrome/test/functional/downloads.py#newcode314 chrome/test/functional/downloads.py:314: Waits until the download starts. Maybe mention that this ...
10 years ago (2010-12-14 00:50:43 UTC) #2
Nirnimesh
http://codereview.chromium.org/5781006/diff/2001/chrome/test/functional/downloads.py File chrome/test/functional/downloads.py (right): http://codereview.chromium.org/5781006/diff/2001/chrome/test/functional/downloads.py#newcode314 chrome/test/functional/downloads.py:314: Waits until the download starts. On 2010/12/14 00:50:43, kkania ...
10 years ago (2010-12-14 01:05:21 UTC) #3
kkania
http://codereview.chromium.org/5781006/diff/7001/chrome/test/functional/downloads.py File chrome/test/functional/downloads.py (right): http://codereview.chromium.org/5781006/diff/7001/chrome/test/functional/downloads.py#newcode314 chrome/test/functional/downloads.py:314: Navigates to download-dangerous.html which triggers the download. How about ...
10 years ago (2010-12-14 01:14:48 UTC) #4
Nirnimesh
http://codereview.chromium.org/5781006/diff/7001/chrome/test/functional/downloads.py File chrome/test/functional/downloads.py (right): http://codereview.chromium.org/5781006/diff/7001/chrome/test/functional/downloads.py#newcode314 chrome/test/functional/downloads.py:314: Navigates to download-dangerous.html which triggers the download. On 2010/12/14 ...
10 years ago (2010-12-14 01:17:20 UTC) #5
kkania
10 years ago (2010-12-14 01:51:26 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698