| 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.
|
|
|