Open
Bug 443864
Opened 17 years ago
Updated 3 years ago
Automate litmus test Testcase ID #4557 - Queued / "Starting ..." downloads
Categories
(Toolkit :: Downloads API, defect)
Toolkit
Downloads API
Tracking
()
NEW
People
(Reporter: poonaatsoc, Unassigned)
References
()
Details
Attachments
(1 file, 2 obsolete files)
|
4.20 KB,
patch
|
Details | Diff | Splinter Review |
Proposed type of test: xpcshell
Proposed location of test: Shawn, should I put this in the folder where we have out existing xpchsell dm tests?
Comment 1•17 years ago
|
||
yes
| Reporter | ||
Comment 2•17 years ago
|
||
Attachment #328328 -
Flags: review?(sdwilsh)
Comment 3•17 years ago
|
||
Comment on attachment 328328 [details] [diff] [review]
v1.0
>+ * Contributor(s):
>+ * Anoop Saldanha<poonaatsoc@gmail.com>
nit: one more space indentation please
>+ /* This test, tests bug 443864. Basically this tests if setting
>+ * network.http.max-connections-per-server to 2, will result in any download
>+ * after the 2nd download, in a sequence of more than 2 downloads, being queued
>+ * in the dm than start downloading.
>+ */
nit: not the right format.
>+const Cc = Components.classes;
>+const Ci = Components.interfaces;
>+const Cr = Components.results;
You shouldn't have to declare these - they are in the head file
>+function cleanUp(let max_conn)
>+{
>+ dm.cancelDownload(dl[0]);
>+ dm.cancelDownload(dl[1]);
>+ dm.cancelDownload(dl[2]);
>+
>+ dm.cleanUp();
>+ dmFile.remove(false);
>+ dm.DBConnection.executeSimpleSQL("DELETE FROM moz_downloads");
>+ // Reset the preference network.http.max-connections-per-server to initial value
>+ prefServ.setIntPref("network.http.max-connections-per-server", max_conn);
>+
>+ do_test_finished();
>+
>+ return
>+}
We already define a cleanup function in the head_ file...
Overall, you should copy the format of existing test files here.
Attachment #328328 -
Flags: review?(sdwilsh) → review-
| Reporter | ||
Comment 4•17 years ago
|
||
I haven't made any major structural change to the file, but I made the necessary corrections
Attachment #328328 -
Attachment is obsolete: true
Attachment #328482 -
Flags: review?(sdwilsh)
| Reporter | ||
Comment 5•17 years ago
|
||
Attachment #328482 -
Attachment is obsolete: true
Attachment #329200 -
Flags: review?(sdwilsh)
Attachment #328482 -
Flags: review?(sdwilsh)
Comment 6•17 years ago
|
||
Comment on attachment 329200 [details] [diff] [review]
v3.0
we are punting on this one for the time being
Attachment #329200 -
Flags: review?(sdwilsh)
| Assignee | ||
Updated•17 years ago
|
Product: Firefox → Toolkit
Comment 7•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Assignee: poonaatsoc → nobody
Status: ASSIGNED → NEW
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•