Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-invalid-video.html
blob712e924d71971a3409d639d56a22d0f03af39c19
1 <!DOCTYPE html>
2 <p>Test passes by not crashing.</p>
3 <canvas id='canvas'></canvas>
4 <video id='video'><source src='does_not_exist.mp4'></video>
5 <script>
6 if (window.testRunner) {
7 testRunner.dumpAsText();
9 var ctx = document.getElementById('canvas').getContext('2d');
10 var video = document.getElementById('video');
11 video.play();
12 // Test is deliberately not waiting for the 'playing' event to fire.
13 ctx.createPattern(video, "repeat-x");
14 ctx.drawImage(video, 0, 0);
15 </script>