2 <p>Test passes by not crashing.
</p>
3 <canvas id='canvas'
></canvas>
4 <video id='video'
><source src='does_not_exist.mp4'
></video>
6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
9 var ctx
= document
.getElementById('canvas').getContext('2d');
10 var video
= document
.getElementById('video');
12 // Test is deliberately not waiting for the 'playing' event to fire.
13 ctx
.createPattern(video
, "repeat-x");
14 ctx
.drawImage(video
, 0, 0);