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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-creation.html

Issue 1467103003: Basic use implementation for MediaStream from Canvas: captureStream() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated LayoutTests. 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
Justin Novosad 2015/12/03 15:44:37 Missing -expected.txt for this test
esprehn 2015/12/03 18:47:34 Do web platform tests need a -expected.txt if they
emircan 2015/12/04 03:23:25 Right. "presubmit" checks for that.
emircan 2015/12/04 03:23:25 When I add it, I get the below presubmit warning.
2 <script src=../../resources/testharness.js></script>
3 <script src=../../resources/testharnessreport.js></script>
4 <script>
5 // This test verifies that MediaStream can be created with captureStream() call.
6 test(function() {
7 var canvas = document.createElement('canvas');
8 var stream = canvas.captureStream();
9 assert_not_equals(stream, null);
10 assert_equals(stream.active, true);
11 assert_equals(stream.getVideoTracks().length, 1);
12 assert_equals(stream.getAudioTracks().length, 0);
13 var track = stream.getVideoTracks()[0];
14 assert_equals(track.readyState, 'live');
15 assert_equals(track.enabled, true);
16 assert_equals(track.muted, false);
17 }, 'check <canvas> captureStream()');
18
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698