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

Unified Diff: third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-request-frame-events.html

Issue 1505753005: Add OnRequestCanvasDrawListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timed-draw-listener
Patch Set: Rebase. Created 5 years 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 | « no previous file | third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-request-frame-events-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-request-frame-events.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-events-and-exceptions.html b/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-request-frame-events.html
similarity index 83%
copy from third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-events-and-exceptions.html
copy to third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-request-frame-events.html
index 8ed45f412bc7b2ccb56a5f8160e634332c503aa4..e7af6132f1b55ac790fecb0d620f17bbe015c347 100644
--- a/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-events-and-exceptions.html
+++ b/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-request-frame-events.html
@@ -7,8 +7,9 @@
<p id="description"></p>
<div id="console"></div>
<canvas id="canvas_source"></canvas>
+<video id="v"></video>
<script>
-description("Exercises the potential events on CanvasCaptureMediaStream.");
+description("Exercises the requestFrame() call on captureStream(0).");
window.jsTestIsAsync = true;
@@ -19,6 +20,8 @@ var track;
function onVideoPlay() {
testPassed('Video play callback succeeded.');
drawToCanvas(canvas);
+ testPassed('Calling requestFrame().');
+ track.requestFrame();
};
function onVideoCanPlayThrough() {
@@ -41,7 +44,8 @@ function playMediaStream() {
track = stream.getVideoTracks()[0];
shouldBeEqualToString('track.readyState', 'live');
- var video = document.createElement('video');
+ // var video = document.createElement('video');
+ var video = document.getElementById('v');
try {
video.src = window.URL.createObjectURL(stream);
testPassed('Plugged stream to video tag.');
@@ -55,7 +59,7 @@ function playMediaStream() {
};
try {
- stream = canvas.captureStream();
+ stream = canvas.captureStream(0);
testPassed('Got a stream from canvas.');
} catch (e) {
testFailed('Exception calling captureStream(): ' + e);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-request-frame-events-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698