diff --git a/dom/media/test/reftest/generateREF.html b/dom/media/test/reftest/generateREF.html index 29927a854f3f..72ac04d97908 100644 --- a/dom/media/test/reftest/generateREF.html +++ b/dom/media/test/reftest/generateREF.html @@ -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"; diff --git a/dom/media/test/reftest/reftest.list b/dom/media/test/reftest/reftest.list index 0a229e092df3..c551ce964d3f 100644 --- a/dom/media/test/reftest/reftest.list +++ b/dom/media/test/reftest/reftest.list @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/dom/media/test/reftest/street.mp4.15thframe-ref.html b/dom/media/test/reftest/street.mp4.15thframe-ref.html deleted file mode 100644 index 5f48ddd02a43..000000000000 --- a/dom/media/test/reftest/street.mp4.15thframe-ref.html +++ /dev/null @@ -1,4 +0,0 @@ - - diff --git a/dom/media/test/reftest/street.mp4.seek.html b/dom/media/test/reftest/street.mp4.seek.html deleted file mode 100644 index 4ee56f3bf54c..000000000000 --- a/dom/media/test/reftest/street.mp4.seek.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -