Bug 1065827 - Use onloadeddata event for reftests. r=jwwang
☠☠ backed out by b5a32e677ac6 ☠ ☠
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 06 Nov 2014 20:55:03 +1100
changeset 214379 4467ecf7bc6bb65e3b76da33ce20757287ac4b35
parent 214378 9316add97cf2510b5bc01b552189f749538dae4b
child 214380 c0087ef95dc0c9a86f5cf10936e9a9dae7e3da1d
push id27780
push userkwierso@gmail.com
push dateFri, 07 Nov 2014 02:25:05 +0000
treeherdermozilla-central@e6d47abb6a7b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwwang
bugs1065827
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1065827 - Use onloadeddata event for reftests. r=jwwang
layout/reftests/webm-video/bug686957-ref.html
layout/reftests/webm-video/bug686957.html
--- a/layout/reftests/webm-video/bug686957-ref.html
+++ b/layout/reftests/webm-video/bug686957-ref.html
@@ -1,12 +1,12 @@
 <!DOCTYPE HTML>
 <html class="reftest-wait">
 <body style="background:white;">
 <!-- Test that if we seek to the end of a video we get the last frame displayed -->
 <video src="frames.webm"
        preload="auto"
        id="v"
-       onloadedmetadata="document.getElementById('v').currentTime=document.getElementById('v').duration-1.0;document.getElementById('v').play();"
+       onloadeddata="document.getElementById('v').currentTime=document.getElementById('v').duration-1.0;document.getElementById('v').play();"
        onended="setTimeout(function(){document.documentElement.className = '';}, 0);"
 </video>
 </body>
 </html>
--- a/layout/reftests/webm-video/bug686957.html
+++ b/layout/reftests/webm-video/bug686957.html
@@ -6,13 +6,13 @@
 
     The 15ms timeout is here to work around the screenshot racing with
     video frames being asynchronously delivered to the screen. If the test fails
     intermittently again, we may need to tweak the timeout value.
 -->
 <video src="frames.webm"
        preload="auto"
        id="v"
-       onloadedmetadata="document.getElementById('v').currentTime=document.getElementById('v').duration"
+       onloadeddata="document.getElementById('v').currentTime=document.getElementById('v').duration"
        onseeked="setTimeout(function(){document.documentElement.className = '';}, 1000);"
 </video>
 </body>
 </html>