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)

x86
macOS
defect
Not set
normal

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)

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.
Attached patch bug959340-downloads-api.patch (obsolete) — Splinter Review
Attachment #8359404 - Flags: review?(anygregor)
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+
r=gwagner, patch updated with final commit message, one nit addressed.
Attachment #8359404 - Attachment is obsolete: true
Attachment #8359431 - Flags: review+
Keywords: checkin-needed
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
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.

Attachment

General

Created:
Updated:
Size: