[Public WebGL] Updates to video conformance tests

Kenneth Russell [email protected]
Tue Jun 4 19:32:13 PDT 2013


The video-related WebGL conformance tests
(tex-image-and-sub-image-2d-with-video.html and variants, and
texture-npot-video.html) currently start the test upon receiving the
"playing" event. After receiving feedback from the Chrome on Android
team, and studying the HTMLVideoElement spec, it seems that this is
incorrect. http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#mediaevents
says for the "playing" event: "Even if this event fires, the element
might still not be potentially playing".

Watching for a "timeupdate" event where the video's currentTime is
past the start time seems to be a more reliable heuristic.

In order to allow the existing versions of the conformance suite to be
passed in more browsers, the 1.0.1, 1.0.2, and top of tree tests have
been fixed to apply this heuristic. These changes have been tested in
Firefox, Safari, and Chrome on desktop platforms. The tests all pass
in Firefox and Chrome. The changes improve Safari's pass rate on the
1.0.2 and top of tree tests. texture-npot-video.html is failing in
Safari because of bugs handling display:hidden video elements; the
test was previously failing for other reasons. Similar bugs exist in
Chrome on Android.

https://github.com/KhronosGroup/WebGL/pull/287 contains more details.

Please post to the list with any feedback on this update. In
particular, suggestions on further improving the reliability of these
tests would be appreciated.

Thanks,

-Ken

-----------------------------------------------------------
You are currently subscribed to [email protected]
To unsubscribe, send an email to [email protected] with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------





More information about the public_webgl mailing list