tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_animation.html (1397B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=666446
      5 -->
      6 <head>
      7  <title>Test for Bug 666446 - General Animated GIF Test</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=666446">
     16 Mozilla Bug 666446: lots of animated gifs swamp us with paint events
     17 </a>
     18 <p id="display"></p>
     19 
     20 <div id="content">
     21  <div id="referenceDiv" style="height: 40px; width: 40px;
     22                                display: none; background: #2aff00"></div>
     23  <div id="animatedImage">
     24    <img id="animatedGif" src="animated-gif.gif" style="display: none;">
     25      <div id="text-descr"></div>
     26  </div>
     27  <div id="debug" style="display:none">
     28  </div>
     29 </div>
     30 <pre id="test">
     31 <script type="text/javascript">
     32 const FAILURE_TIMEOUT = 120000; // Fail early after 120 seconds (2 minutes)
     33 
     34 function main()
     35 {
     36  var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceDiv',
     37                                   'animatedGif', 'debug');
     38  animTest.beginTest();
     39 }
     40 
     41 window.onload = main;
     42 </script>
     43 </pre>
     44 </body>
     45 </html>