1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/image/test/mochitest/test_animation2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=705580 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 705580 - General Animated GIF Test 2</title> 1.11 + <script type="application/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script> 1.12 + <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script> 1.14 + <script type="application/javascript" src="imgutils.js"></script> 1.15 + <script type="application/javascript" src="animationPolling.js"></script> 1.16 + <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" /> 1.17 +</head> 1.18 +<body> 1.19 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=705580"> 1.20 +Mozilla Bug 705580: Test animated GIFs that are converted to ImageLayers 1.21 +</a> 1.22 +<p id="display"></p> 1.23 + 1.24 +<div id="content"> 1.25 + <!-- 1.26 + Use an opacity of almost-1 to force a ContainerLayer with opacity, and the img as the sole item in the ThebesLayer. It should then 1.27 + be promoted to an ImageLayer. 1.28 + --> 1.29 + <div id="referenceDiv" style="height: 40px; width: 40px; 1.30 + display: none; background: #2aff00;"></div> 1.31 + <div id="animatedImage" style="opacity: 0.9999;"> 1.32 + <img id="animatedGif" src="animated-gif.gif" style="display: none;"> 1.33 + <div id="text-descr"></div> 1.34 + </div> 1.35 + <div id="debug" style="display:none"> 1.36 + </div> 1.37 +</div> 1.38 +<pre id="test"> 1.39 +<script type="text/javascript;version=1.8"> 1.40 +const FAILURE_TIMEOUT = 120000; // Fail early after 120 seconds (2 minutes) 1.41 + 1.42 +function main() 1.43 +{ 1.44 + var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceDiv', 1.45 + 'animatedGif', 'debug'); 1.46 + animTest.beginTest(); 1.47 +} 1.48 + 1.49 +window.onload = main; 1.50 +</script> 1.51 +</pre> 1.52 +</body> 1.53 +</html>