4 function onPlayingTestVideo() {
5 video.removeEventListener("playing", onPlayingTestVideo, true);
6 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, video);
10 "texImage2D should not generate any error here."
16 function startTest(file) {
17 gl = document.createElement("canvas").getContext("webgl");
18 ext = gl.getExtension("MOZ_debug");
19 ok(ext, "MOZ_debug extenstion should exist");
20 gl.bindTexture(gl.TEXTURE_2D, gl.createTexture());
21 gl.pixelStorei(ext.UNPACK_REQUIRE_FASTPATH, true);
25 "pixelStorei should not generate any error here."
28 video = document.createElement("video");
29 video.addEventListener("playing", onPlayingTestVideo, true);
30 video.preload = "auto";