mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
97ab63e82a
Since the ref-sample made by linux, the mac and windows platforms need fuzzy. And on windows platform, the first frame is different to other platform, skip it first. Android platform somehow can not load the video src. MozReview-Commit-ID: A0VbEcNSmck --HG-- extra : rebase_source : 266f0012d460b8fd6b62ac1d2878dc9aa686f9a8
20 lines
486 B
HTML
20 lines
486 B
HTML
<!DOCTYPE HTML>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<script type="text/javascript">
|
|
function doTest() {
|
|
var video = document.getElementById("v1");
|
|
video.src = "../short.mp4";
|
|
video.preload = "metadata";
|
|
video.addEventListener("loadeddata", function() {
|
|
document.documentElement.removeAttribute('class');
|
|
});
|
|
}
|
|
window.addEventListener("MozReftestInvalidate", doTest);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<video id="v1" style="position:absolute; left:0; top:0"></video>
|
|
</body>
|
|
</html>
|