Closed
Bug 959340
Opened 10 years ago
Closed 10 years ago
[Gaia][Systems] Downloads API should have mochi test for resuming downloads
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.3 C2/1.4 S2(17jan)
People
(Reporter: aus, Assigned: aus)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file, 1 obsolete file)
5.72 KB,
patch
|
aus
:
review+
|
Details | Diff | Splinter Review |
The mochi test for resuming downloads didn't actually test successful resuming of downloads. I've updated the test so that under normal operation the download SHOULD resume and if it doesn't then it fails.
Updated•10 years ago
|
Blocks: fxos-download-mgr
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8359404 -
Flags: review?(anygregor)
Comment 2•10 years ago
|
||
Comment on attachment 8359404 [details] [diff] [review] bug959340-downloads-api.patch Review of attachment 8359404 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/downloads/tests/serve_file.sjs @@ +97,5 @@ > + // of bytes only (minus the start offset). > + if (total && total < size) { > + size = total - offset; > + } > + else if (offset) { nit: We usually put the else in the same line with '}'
Attachment #8359404 -
Flags: review?(anygregor) → review+
Assignee | ||
Comment 3•10 years ago
|
||
r=gwagner, patch updated with final commit message, one nit addressed.
Attachment #8359404 -
Attachment is obsolete: true
Attachment #8359431 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/45c1cc6df259 Please update your Hg config to include your name on your patches as well.
Flags: in-testsuite+
Keywords: checkin-needed
Assignee | ||
Comment 5•10 years ago
|
||
Will do, thanks Ryan! :)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•