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

Unified Diff: chrome/test/data/extensions/api_test/downloads/test.js

Issue 9963028: Revert blocking of file: downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed api tests. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/test/functional/PYAUTO_TESTS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/downloads/test.js
diff --git a/chrome/test/data/extensions/api_test/downloads/test.js b/chrome/test/data/extensions/api_test/downloads/test.js
index 672603315600355b45ddc21c513ddddd6d877b10..80da42e1505d856900f552ad9c3de4edb0523a22 100644
--- a/chrome/test/data/extensions/api_test/downloads/test.js
+++ b/chrome/test/data/extensions/api_test/downloads/test.js
@@ -709,11 +709,15 @@ chrome.test.getConfig(function(testConfig) {
chrome.test.callbackFail("net::ERR_DISALLOWED_URL_SCHEME"));
},
- function downloadDontAllowFileURLs() {
- // We block downloading from file URLs.
+ function downloadAllowFileURLs() {
+ // Valid file URLs are valid URLs.
+ var downloadId = getNextId();
+ console.debug(downloadId);
downloads.download(
{'url': 'file:///'},
- chrome.test.callbackFail("net::ERR_DISALLOWED_URL_SCHEME"));
+ chrome.test.callback(function(id) {
+ chrome.test.assertEq(downloadId, id);
+ }));
},
// TODO(benjhayden): Set up a test ftp server.
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/test/functional/PYAUTO_TESTS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698