test_bullet_animation.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 - Animated Bullets</title>
  8. <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  9. <script type="application/javascript" 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. <div id="content">
  20. <div id="cleanDiv" style="display: none;">
  21. <ul>
  22. <li>Test 1</li>
  23. </ul>
  24. </div>
  25. <div id="referenceDiv" style="display: none;">
  26. <ul>
  27. <li style="list-style-image: url(animated-gif-finalframe.gif);">Test 1</li>
  28. </ul>
  29. </div>
  30. <div id="animatedImage" style="display: none;">
  31. <ul>
  32. <li style="list-style-image: url(animated-gif.gif);">Test 1</li>
  33. </ul>
  34. </div>
  35. <div id="text-descr"></div>
  36. <div id="debug" style="display:none">
  37. </div>
  38. </div>
  39. <pre id="test">
  40. <script type="text/javascript;version=1.8">
  41. const FAILURE_TIMEOUT = 120000; // Fail early after 120 seconds (2 minutes)
  42. function main()
  43. {
  44. var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceDiv',
  45. 'animatedImage', 'debug', 'cleanDiv',
  46. 'animated-gif-finalframe.gif');
  47. animTest.beginTest();
  48. }
  49. window.onload = main;
  50. </script>
  51. </pre>
  52. </body>
  53. </html>