diff --git a/testing/web-platform/tests/webrtc/RTCPeerConnection-helper-test.html b/testing/web-platform/tests/webrtc/RTCPeerConnection-helper-test.html index 42f6652ac4c4..01bd808eee1a 100644 --- a/testing/web-platform/tests/webrtc/RTCPeerConnection-helper-test.html +++ b/testing/web-platform/tests/webrtc/RTCPeerConnection-helper-test.html @@ -4,6 +4,10 @@ + + diff --git a/testing/web-platform/tests/webrtc/RTCPeerConnection-helper.js b/testing/web-platform/tests/webrtc/RTCPeerConnection-helper.js index ac435279bd24..14606c80088a 100644 --- a/testing/web-platform/tests/webrtc/RTCPeerConnection-helper.js +++ b/testing/web-platform/tests/webrtc/RTCPeerConnection-helper.js @@ -412,10 +412,10 @@ const trackFactories = { ctx.fillStyle = `rgb(${contrast%255}, ${contrast*contrast%255}, ${contrast%255})`; const xpos = count % (width - 20); const ypos = count % (height - 20); - ctx.fillRect(xpos, ypos, xpos + 20, ypos + 20); + ctx.fillRect(xpos, ypos, 20, 20); const xpos2 = (count + width / 2) % (width - 20); const ypos2 = (count + height / 2) % (height - 20); - ctx.fillRect(xpos2, ypos2, xpos2 + 20, ypos2 + 20); + ctx.fillRect(xpos2, ypos2, 20, 20); // If signal is set (0-255), add a constant-color box of that luminance to // the video frame at coordinates 20 to 60 in both X and Y direction. // (big enough to avoid color bleed from surrounding video in some codecs,