Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |