Bug 1217424 - Remove for-each from xpcom/. r=bholley
authorTooru Fujisawa <arai_a@mac.com>
Mon, 19 Oct 2015 05:43:45 +0900
changeset 304357 14f30674828dedf0437111a88b43e3522a1f4a42
parent 304356 5a2e0308a5f362e6303fb11b7573cda1b62fb899
child 304358 c3b7298d5ecab980e404d1e485ea4f45ed630afd
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)
reviewersbholley
bugs1217424
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 1217424 - Remove for-each from xpcom/. r=bholley
xpcom/tests/unit/test_compmgr_warnings.js
--- a/xpcom/tests/unit/test_compmgr_warnings.js
+++ b/xpcom/tests/unit/test_compmgr_warnings.js
@@ -20,17 +20,17 @@ const kConsoleListener = {
 
   observe: function listener_observe(message) {
     if (!(message instanceof Ci.nsIScriptError)) {
       info("Not a script error: " + message.message);
       return;
     }
 
     info("Script error... " + message.sourceName + ":" + message.lineNumber + ": " + message.errorMessage);
-    for each (let expected in gMessagesExpected) {
+    for (let expected of gMessagesExpected) {
       if (message.lineNumber != expected.line)
         continue;
 
       if (!expected.message.test(message.errorMessage))
         continue;
 
       info("Found expected message: " + expected.message);
       do_check_false(expected.found);
@@ -58,14 +58,14 @@ function run_test()
   var manifest = do_get_file('compmgr_warnings.manifest');
   registerAppManifest(manifest);
   manifest = do_get_file('testcomponent.manifest');
   registerAppManifest(manifest);
 
   run_deferred_event(function() {
     cs.unregisterListener(kConsoleListener);
 
-    for each (let expected in gMessagesExpected) {
+    for (let expected of gMessagesExpected) {
       info("checking " + expected.message);
       do_check_true(expected.found);
     }
   });
 }