Open
Bug 847184
Opened 11 years ago
Updated 2 years ago
Add tests for network failures
Categories
(Toolkit :: Downloads API, task)
Toolkit
Downloads API
Tracking
()
NEW
People
(Reporter: Paolo, Unassigned)
References
(Blocks 1 open bug)
Details
The new jsdownloads API already includes a generic test for network failures, "test_download_error_source". It tests one of many possible failure cases, because it was the simplest to implement with the existing httpd.js. See: http://mxr.mozilla.org/mozilla-central/source/toolkit/components/jsdownloads/test/unit/test_DownloadCore.js However, there are other possible network failure cases that aren't tested neither in the new API nor in the current Download Manager tests. We should understand if we have the infrastructure for those tests and add it if not. One case that isn't currently tested, for example, is when a download is interrupted midway, for any network reason (if more than one reason is possible, ideally we should have separate tests). The current test checks the case where a download fails before any data is received.
Updated•5 years ago
|
Type: defect → task
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•