Bug 1528323 - Part 3: Fix a mochitest that was abandoning its promises, and not noticing exceptions as a result. r=jib
☠☠ backed out by bd76311c316a ☠ ☠
authorByron Campen [:bwc] <docfaraday@gmail.com>
Mon, 25 Feb 2019 15:11:01 +0000
changeset 519336 e5644fcedb190f861720b65572f7ca31a63fc321
parent 519335 4ec8d35bbefce1c9dc0feccd1165933f831c855f
child 519337 2785f1f139e8018efae1426f19af1671f52ee550
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib
bugs1528323
milestone67.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 1528323 - Part 3: Fix a mochitest that was abandoning its promises, and not noticing exceptions as a result. r=jib Differential Revision: https://phabricator.services.mozilla.com/D21016
dom/media/tests/mochitest/test_peerConnection_trackless_sender_stats.html
--- a/dom/media/tests/mochitest/test_peerConnection_trackless_sender_stats.html
+++ b/dom/media/tests/mochitest/test_peerConnection_trackless_sender_stats.html
@@ -31,26 +31,26 @@
             is(receivers.length, 2, "Have exactly two receivers.");
             for(let kind of ["audio", "video"]) {
               is(senders.filter(s => s.track.kind == kind).length, 1,
                   "Exactly 1 sender of kind " + kind);
               is(receivers.filter(r => r.track.kind == kind).length, 1,
                   "Exactly 1 receiver of kind " + kind);
             }
             // Remove tracks from senders
-            senders.forEach(async sender => {
+            for (let sender of senders) {
               await sender.replaceTrack(null);
               is(sender.track, null, "Sender track removed");
               let stats = await sender.getStats();
               ok(stats instanceof window.RTCStatsReport, "Stats is instance of RTCStatsReport");
               // Number of stats in the report. This should be 0.
               is(stats.size, 0, "Trackless sender stats report is empty");
-            });
+            }
           })
         });
     test.setMediaConstraints([{audio: true}, {video: true}], []);
     test.run();
   });
 
 </script>
 </pre>
 </body>
-</html>
\ No newline at end of file
+</html>