зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset d0c8e848fdd2 (bug 1374183) for frequent reftest failures in street.mp4.seek.html a=backout
MozReview-Commit-ID: 9UqeDP2Eomv --HG-- extra : rebase_source : 038adc909cf1492b3880e7b206ec8f3eed59c35b
This commit is contained in:
Родитель
3f9f0fd20b
Коммит
5a5dbb3b02
|
@ -23,8 +23,7 @@ or using nightly, the seekToNextFrame() ensure the ended event fired.
|
|||
*/
|
||||
|
||||
//window.onload = function() { setTimeout(dumpFirstFrame, 0); };
|
||||
//window.onload = function() { setTimeout(dumpLastFrame, 0); };
|
||||
window.onload = function() { setTimeout(function(){dumpNthFrame(15);}, 0); };
|
||||
window.onload = function() { setTimeout(dumpLastFrame, 0); };
|
||||
|
||||
function drawVideoToInnerHTML(v) {
|
||||
var canvas = document.getElementById("canvas");
|
||||
|
@ -45,24 +44,6 @@ function dumpFirstFrame() {
|
|||
});
|
||||
}
|
||||
|
||||
function dumpNthFrame(n) {
|
||||
var video = document.getElementById("v1");
|
||||
video.src = "street.mp4";
|
||||
video.preload = "metadata";
|
||||
|
||||
function checkNthFrame() {
|
||||
console.log(n+"th Frame time is " + video.currentTime);
|
||||
n--;
|
||||
if (n == 0) {
|
||||
drawVideoToInnerHTML(video);
|
||||
} else {
|
||||
video.seekToNextFrame();
|
||||
}
|
||||
}
|
||||
video.addEventListener("loadeddata", checkNthFrame);
|
||||
video.addEventListener("seeked", checkNthFrame);
|
||||
}
|
||||
|
||||
function dumpLastFrame() {
|
||||
var video = document.getElementById("v1");
|
||||
video.src = "short.mp4";
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
skip-if(Android) fuzzy-if(OSX,22,49977) skip-if(winWidget) fuzzy-if(webrender,70,600) HTTP(..) == short.mp4.firstframe.html short.mp4.firstframe-ref.html
|
||||
skip-if(Android) fuzzy-if(OSX,23,51392) fuzzy-if(winWidget,59,76797) fuzzy-if(webrender,60,1800) HTTP(..) == short.mp4.lastframe.html short.mp4.lastframe-ref.html
|
||||
skip-if(Android) skip-if(winWidget) fuzzy-if(webrender,55,4281) fuzzy-if(OSX,3,111852) HTTP(..) == bipbop_300_215kbps.mp4.lastframe.html bipbop_300_215kbps.mp4.lastframe-ref.html
|
||||
skip-if(Android) skip-if(winWidget) fuzzy-if(OSX,2,213266) fuzzy-if(webrender,60,165174) HTTP(..) == street.mp4.seek.html street.mp4.15thframe-ref.html
|
||||
skip-if(Android) skip-if(winWidget) fuzzy-if(webrender,55,4281) fuzzy-if(OSX,3,111852) HTTP(..) == bipbop_300_215kbps.mp4.lastframe.html bipbop_300_215kbps.mp4.lastframe-ref.html
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,26 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html class="reftest-wait">
|
||||
<!--This testing should match the 15th frame of street.mp4. The
|
||||
15th frame's time is 0.466666, so seek to a time which is a little
|
||||
greater than 0.466666, the display frame should be the 15th frame.
|
||||
-->
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
function doTest() {
|
||||
var video = document.getElementById("v1");
|
||||
video.src = "../street.mp4";
|
||||
video.preload = "metadata";
|
||||
|
||||
video.currentTime = 0.466667;
|
||||
|
||||
video.addEventListener("seeked", 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>
|
Загрузка…
Ссылка в новой задаче