diff --git a/webapprt/test/chrome/downloads/browser_add_download.js b/webapprt/test/chrome/downloads/browser_add_download.js index 2db323bf686..68519ee5066 100644 --- a/webapprt/test/chrome/downloads/browser_add_download.js +++ b/webapprt/test/chrome/downloads/browser_add_download.js @@ -37,7 +37,7 @@ function test() { waitForExplicitFinish(); loadWebapp("download.webapp", undefined, function onLoad() { - for each (let download in downloadsInList) { + for (let download of downloadsInList) { list.addDownload(download); } }); diff --git a/webapprt/test/chrome/head.js b/webapprt/test/chrome/head.js index 3a24ae51759..f8b065700ec 100644 --- a/webapprt/test/chrome/head.js +++ b/webapprt/test/chrome/head.js @@ -168,9 +168,9 @@ function waitDownloadListPopulation(aWin) { let disconnected = false; var observer = new MutationObserver(function(aMutations) { - for each (let mutation in aMutations) { + for (let mutation of aMutations) { if (mutation.addedNodes) { - for each (let node in mutation.addedNodes) { + for (let node of mutation.addedNodes) { if (node.id == "downloadView") { observer.disconnect(); disconnected = true;