<!DOCTYPE html> | |
<html> | |
<head> | |
<title>video-as-img-output-pts</title> | |
<script src="video-test.js"></script> | |
<script> | |
window.addEventListener('load', async event => { | |
consoleWrite('Tests that an <img> with a .mp4 source where that .mp4 has an edit list will correctly decode.') | |
try { | |
let img = new Image(); | |
img.src = 'content/video-as-img.mp4'; | |
await shouldResolve(img.decode()); | |
endTest(); | |
} catch (e) { | |
failTest(`Caught exception ${ e }`); | |
} | |
}); | |
</script> | |
</head> | |
</html> |