3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4 <title><video> element intrinsic size test</title>
5 <script src=video-test.js></script>
15 url:"content/scaled-matrix.mov",
16 description:"saved with a non identity matrix",
21 url:"content/720x576i-anamorphic.mov",
22 description:"encoded with PAL non-square pixels, clean aperture corrects pixel aspect ratio when displayed",
31 var movie = movieInfo.movies[movieInfo.current];
33 testExpected("video.videoWidth", movie.width);
34 testExpected("video.videoHeight", movie.height);
40 function openNextMovie()
43 if (movieInfo.current >= movieInfo.movies.length)
49 var url = movieInfo.movies[movieInfo.current].url;
51 var desc = "<b>Loading</b> <em>\""+ url + "\"</em>" +
52 ". Movie " + movieInfo.movies[movieInfo.current].description + ".</em>";
54 if (movieInfo.current > 0)
62 waitForEvent("error");
63 waitForEvent("loadstart");
64 waitForEvent("waiting");
65 waitForEvent("ratechange");
66 waitForEvent("durationchange");
67 waitForEvent("pause");
69 waitForEvent("playing");
71 waitForEvent('loadedmetadata', testSize);
73 consoleWrite("<b>Test size before movie is open:</b>");
74 testExpected("video.videoWidth", 0, "==");
75 testExpected("video.videoHeight", 0, "==");
82 <body onload="start()">
84 <video controls></video>