test_animation2.html (1598B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=705580 5 --> 6 <head> 7 <title>Test for Bug 705580 - General Animated GIF Test 2</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <script src="/tests/SimpleTest/WindowSnapshot.js"></script> 10 <script type="application/javascript" src="imgutils.js"></script> 11 <script type="application/javascript" src="animationPolling.js"></script> 12 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 13 </head> 14 <body> 15 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=705580"> 16 Mozilla Bug 705580: Test animated GIFs that are converted to ImageLayers 17 </a> 18 <p id="display"></p> 19 20 <div id="content"> 21 <!-- 22 Use will-change: opacity to force a ContainerLayer, and the img as the sole item in the PaintedLayer. It should then 23 be promoted to an ImageLayer. 24 --> 25 <div id="referenceDiv" style="height: 40px; width: 40px; 26 display: none; background: #2aff00;"></div> 27 <div id="animatedImage" style="will-change: opacity;"> 28 <img id="animatedGif" src="animated-gif.gif" style="display: none;"> 29 <div id="text-descr"></div> 30 </div> 31 <div id="debug" style="display:none"> 32 </div> 33 </div> 34 <pre id="test"> 35 <script type="text/javascript"> 36 const FAILURE_TIMEOUT = 120000; // Fail early after 120 seconds (2 minutes) 37 38 function main() 39 { 40 var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceDiv', 41 'animatedGif', 'debug'); 42 animTest.beginTest(); 43 } 44 45 window.onload = main; 46 </script> 47 </pre> 48 </body> 49 </html>