Bug 1217423 - Remove for-each from webapprt/. r=paolo, f=marco
authorTooru Fujisawa <arai_a@mac.com>
Mon, 19 Oct 2015 05:43:18 +0900
changeset 304873 ac6b14d2736a14c9ce3c2571d39623dd9aed4307
parent 304872 c41fe3decc83c6c02aff6ed4e0a502e142c31fed
child 304874 7ab2ee0b64ed93f769595b8e668635e7788a68c3
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaolo
bugs1217423
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1217423 - Remove for-each from webapprt/. r=paolo, f=marco
webapprt/test/chrome/downloads/browser_add_download.js
webapprt/test/chrome/head.js
--- a/webapprt/test/chrome/downloads/browser_add_download.js
+++ b/webapprt/test/chrome/downloads/browser_add_download.js
@@ -32,13 +32,13 @@ registerCleanupFunction(function() {
 
   Services.wm.getMostRecentWindow("Download:Manager").close();
 });
 
 function test() {
   waitForExplicitFinish();
 
   loadWebapp("download.webapp", undefined, function onLoad() {
-    for each (let download in downloadsInList) {
+    for (let download of downloadsInList) {
       list.addDownload(download);
     }
   });
 }
--- a/webapprt/test/chrome/head.js
+++ b/webapprt/test/chrome/head.js
@@ -163,19 +163,19 @@ DummyDownload.prototype = {
   percentComplete: -1,
 };
 
 function waitDownloadListPopulation(aWin) {
   return new Promise(function(resolve, reject) {
     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;
 
               // Wait for the resolution of the Downloads.getList promise.
               executeSoon(() => {
                 resolve();
               });