| <script src="../../../resources/js-test.js"></script> |
| <script src="resources/webgl-test.js"></script> |
| <script src="resources/webgl-test-utils.js"></script> |
| <script src="resources/tex-image-and-sub-image-2d-with-video.js"></script> |
| // As a workaround for https://bugs.webkit.org/show_bug.cgi?id=87448, this code needs to |
| // be run from an inline script in a main resource. |
| window.jsTestIsAsync = true; |
| testRunner.waitUntilDone(); |
| function testPrologue(gl) { |
| <body onload='generateTest("RGBA", "UNSIGNED_BYTE", testPrologue)()'> |
| <canvas id="example" width="32px" height="32px"></canvas> |
| <div id="description"></div> |
| <video width="640" height="228" id="vid" controls> |
| <source src="resources/red-green.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> |
| <source src="resources/red-green.webmvp8.webm" type='video/webm; codecs="vp8, vorbis"' /> |
| <source src="resources/red-green.theora.ogv" type='video/ogg; codecs="theora, vorbis"' /> |