test_changeOfSource2.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=666446
  5. -->
  6. <head>
  7. <title>Test for Bug 691792 - Change of Source (2nd Version)</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=691792">
  16. Mozilla Bug 691792: Change of src attribute for animated gifs no longer works as expected
  17. </a>
  18. <p id="display"></p>
  19. <div id="content">
  20. <div id="animatedImage">
  21. <img id='animatedGif' src="purple.gif" style="display: none;">
  22. </div>
  23. <div id="text-descr"></div>
  24. <div id="debug" style="display:none">
  25. </div>
  26. </div>
  27. <pre id="test">
  28. <script type="text/javascript;version=1.8">
  29. const FAILURE_TIMEOUT = 120000; // Fail early after 120 seconds (2 minutes)
  30. var gAnimTest;
  31. var gIntervalId;
  32. function main()
  33. {
  34. gAnimTest = new AnimationTest(20, FAILURE_TIMEOUT, 'animated-gif2.gif',
  35. 'animatedGif', 'debug', '', 'animated-gif2.gif',
  36. false);
  37. gAnimTest.beginTest();
  38. }
  39. window.onload = main;
  40. </script>
  41. </pre>
  42. </body>
  43. </html>