Bug 1065827 - Use onloadeddata event for reftests. r=jwwang

This commit is contained in:
Jean-Yves Avenard 2014-11-06 20:55:03 +11:00
parent 462c754866
commit 5c2c5f093d
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<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>

View File

@ -11,7 +11,7 @@
<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>