Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: content/test/data/media/canvas_capture.html

Issue 2746973005: Reenable WebRtcCaptureFromElementBrowserTest.VerifyCanvasCaptureOffscreenCanvasCommitFrames (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/webrtc/webrtc_capture_from_element_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/canvas_capture.html
diff --git a/content/test/data/media/canvas_capture.html b/content/test/data/media/canvas_capture.html
index 59f33f906d53b9cc885b248a94134f3979f7116e..a2c4db6f7abd931f7a27aeb55c9be1fb26b01ade 100644
--- a/content/test/data/media/canvas_capture.html
+++ b/content/test/data/media/canvas_capture.html
@@ -43,7 +43,7 @@ function drawOffscreenCanvasCommit(canvas, drawCounter) {
function drawBitmapRenderer(canvas, drawCounter) {
var gl = canvas.getContext('bitmaprenderer');
- var offscreen = new OffscreenCanvas(64, 48);
+ var offscreen = new OffscreenCanvas(canvas.width, canvas.height);
var ctx = offscreen.getContext('2d');
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, canvas.width, canvas.height);
@@ -54,7 +54,6 @@ function drawBitmapRenderer(canvas, drawCounter) {
function testCanvasCapture(drawFunction) {
var canvas = document.createElement('canvas');
canvas.width = canvas.height = 64;
- document.body.appendChild(canvas);
var stream = canvas.captureStream();
assertTrue(stream, 'Error creating MediaStream');
« no previous file with comments | « content/browser/webrtc/webrtc_capture_from_element_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698