Bug 1340923 - Remove remaining Iterator consumer from devtools/. r=jryans
authorTooru Fujisawa <arai_a@mac.com>
Wed, 22 Feb 2017 16:11:35 +0900
changeset 373233 3ed5c0fa2f8dfb9c7d5261a6203a387830d6215a
parent 373232 9ad27050d4fcad8733022113ac8e53ef16dbaacb
child 373234 58d90297f0bf6ae03a5e7ffa359b626c35099c1f
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjryans
bugs1340923
milestone54.0a1
Bug 1340923 - Remove remaining Iterator consumer from devtools/. r=jryans
devtools/client/webide/test/test_telemetry.html
--- a/devtools/client/webide/test/test_telemetry.html
+++ b/devtools/client/webide/test/test_telemetry.html
@@ -161,17 +161,17 @@
         return Task.spawn(function*() {
           startConnection(win, docRuntime, type, index);
           yield waitUntilConnected(win);
         });
       }
 
       function checkResults() {
         let result = Telemetry.prototype.telemetryInfo;
-        for (let [histId, value] of Iterator(result)) {
+        for (let [histId, value] of Object.entries(result)) {
           if (histId === "DEVTOOLS_WEBIDE_IMPORT_PROJECT_BOOLEAN") {
             ok(value.length === 1 && !!value[0],
                histId + " has 1 successful entry");
           } else if (histId ===
                      "DEVTOOLS_WEBIDE_PROJECT_EDITOR_OPENED_COUNT") {
             ok(value.length === 1 && !!value[0],
                histId + " has 1 successful entry");
           } else if (histId === "DEVTOOLS_WEBIDE_OPENED_COUNT") {