summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/beforeload/video-before-load.html
blob: 78767612887dc0b10c1bba85fcfaf8231d8dfc49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="resources/print.js"></script>
</head>
<body>
<div id="console"></div>
<script>
if (window.layoutTestController) {
    layoutTestController.dumpAsText();
    layoutTestController.waitUntilDone();
}
</script>

<video src="../../../media/content/test.mp4" onbeforeload="print('PASS', 'green'); if (window.layoutTestController) window.layoutTestController.notifyDone(); return false;" onload="print('FAIL', 'red'); if (window.layoutTestController) window.layoutTestController.notifyDone();"></video>

</body>
</html>