Bug 1153671 - Part 2: Remove non-standard for-each-in from remaining tests. r=Ratty a=ewong
This commit is contained in:
Родитель
ce1522d189
Коммит
98b82c859d
|
@ -80,7 +80,7 @@ function test()
|
||||||
"VALUES (?1, ?2, ?3, ?4)");
|
"VALUES (?1, ?2, ?3, ?4)");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for each (let site in ["delete.me", "i.live"]) {
|
for (let site of ["delete.me", "i.live"]) {
|
||||||
stmt.bindByIndex(0, "Super Pimped Download");
|
stmt.bindByIndex(0, "Super Pimped Download");
|
||||||
stmt.bindByIndex(1, filePath);
|
stmt.bindByIndex(1, filePath);
|
||||||
stmt.bindByIndex(2, "http://" + site + "/file");
|
stmt.bindByIndex(2, "http://" + site + "/file");
|
||||||
|
|
|
@ -102,9 +102,9 @@ function runTest()
|
||||||
"state, currBytes, maxBytes, preferredAction, autoResume) " +
|
"state, currBytes, maxBytes, preferredAction, autoResume) " +
|
||||||
"VALUES (:name, :source, :target, :startTime, :endTime, :state, " +
|
"VALUES (:name, :source, :target, :startTime, :endTime, :state, " +
|
||||||
":currBytes, :maxBytes, :preferredAction, :autoResume)");
|
":currBytes, :maxBytes, :preferredAction, :autoResume)");
|
||||||
for each (var dl in DoneDownloadData) {
|
for (let dl of DoneDownloadData) {
|
||||||
for (var prop in dl)
|
for (let [prop, value] of Object.entries(dl))
|
||||||
stmt.params[prop] = dl[prop];
|
stmt.params[prop] = value;
|
||||||
|
|
||||||
stmt.execute();
|
stmt.execute();
|
||||||
}
|
}
|
||||||
|
@ -148,9 +148,9 @@ function runTest()
|
||||||
// Populate the download manager with an active download now, and
|
// Populate the download manager with an active download now, and
|
||||||
// rebuild the list
|
// rebuild the list
|
||||||
stmt.reset();
|
stmt.reset();
|
||||||
for each (var dl in ActiveDownloadData) {
|
for (let dl of ActiveDownloadData) {
|
||||||
for (var prop in dl)
|
for (let [prop, value] of Object.entries(dl))
|
||||||
stmt.params[prop] = dl[prop];
|
stmt.params[prop] = value;
|
||||||
|
|
||||||
stmt.execute();
|
stmt.execute();
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ function test()
|
||||||
sites.push(searchTerm);
|
sites.push(searchTerm);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for each (let site in sites) {
|
for (let site of sites) {
|
||||||
stmt.bindByIndex(0, filePath);
|
stmt.bindByIndex(0, filePath);
|
||||||
stmt.bindByIndex(1, "http://" + site + "/file");
|
stmt.bindByIndex(1, "http://" + site + "/file");
|
||||||
stmt.bindByIndex(2, dm.DOWNLOAD_FINISHED);
|
stmt.bindByIndex(2, dm.DOWNLOAD_FINISHED);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче