<!DOCTYPE html> | |
<p>Test passes by not crashing.</p> | |
<canvas id='canvas'></canvas> | |
<video id='video'><source src='does_not_exist.mp4'></video> | |
<script> | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
} | |
var ctx = document.getElementById('canvas').getContext('2d'); | |
var video = document.getElementById('video'); | |
video.play(); | |
// Test is deliberately not waiting for the 'playing' event to fire. | |
ctx.createPattern(video, "repeat-x"); | |
ctx.drawImage(video, 0, 0); | |
</script> |