Bug 1166832 - Fix ordering, draw both local red then test remotes to avoid ordering issues. draft
authorMichael Froman <mfroman@mozilla.com>
Thu, 14 Jan 2016 10:29:14 -0600
changeset 321730 fe90a18e4b8807f288509ad78433b0feaaab3f9b
parent 321550 19d10e4f8cc82dd3d90d4f54bd3305ea4364dd3d
child 321731 fec02cdbde9a4ebad923d2dcc1a76431b2416a45
push id9445
push usermfroman@nostrum.com
push dateThu, 14 Jan 2016 16:30:28 +0000
bugs1166832
milestone46.0a1
Bug 1166832 - Fix ordering, draw both local red then test remotes to avoid ordering issues.
dom/media/tests/mochitest/test_peerConnection_multiple_captureStream_canvas_2d.html
--- a/dom/media/tests/mochitest/test_peerConnection_multiple_captureStream_canvas_2d.html
+++ b/dom/media/tests/mochitest/test_peerConnection_multiple_captureStream_canvas_2d.html
@@ -71,27 +71,27 @@ runNetworkTest(() => {
     },
     function DRAW_LOCAL1_RED() {
       // After requesting a frame it will be captured at the time of next render.
       // Next render will happen at next stable state, at the earliest,
       // i.e., this order of `requestFrame(); draw();` should work.
       stream1.requestFrame();
       h.drawColor(canvas1, h.red);
     },
-    function WAIT_FOR_REMOTE1_RED() {
-      return h.waitForPixelColor(vremote1, h.red, 128,
-                                 "pcRemote's remote1 should become red");
-    },
     function DRAW_LOCAL2_RED() {
       // After requesting a frame it will be captured at the time of next render.
       // Next render will happen at next stable state, at the earliest,
       // i.e., this order of `requestFrame(); draw();` should work.
       stream2.requestFrame();
       h.drawColor(canvas2, h.red);
     },
+    function WAIT_FOR_REMOTE1_RED() {
+      return h.waitForPixelColor(vremote1, h.red, 128,
+                                 "pcRemote's remote1 should become red");
+    },
     function WAIT_FOR_REMOTE2_RED() {
       return h.waitForPixelColor(vremote2, h.red, 128,
                                  "pcRemote's remote2 should become red");
     }
   ]);
   test.run();
 });
 </script>