test_xultree_animation.xhtml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!DOCTYPE HTML>
  2. <html
  3. xmlns="http://www.w3.org/1999/xhtml"
  4. xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  5. xml:lang="en" lang="en">
  6. <!--
  7. https://bugzilla.mozilla.org/show_bug.cgi?id=666446
  8. -->
  9. <head>
  10. <title>Test for Bug 666446 - Animated Images within SVG Filters</title>
  11. <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  12. <script type="application/javascript" src="/tests/SimpleTest/WindowSnapshot.js"></script>
  13. <script type="application/javascript" src="imgutils.js"></script>
  14. <script type="application/javascript" src="animationPolling.js"></script>
  15. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
  16. </head>
  17. <body>
  18. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=666446">
  19. Mozilla Bug 666446: lots of animated gifs swamp us with paint events
  20. </a>
  21. <p id="display"></p>
  22. <div id="content">
  23. <xul:caption label="Bug 666446 - XULTree Test" />
  24. <xul:separator />
  25. <br />
  26. <xul:window id="main" title="Bug 666446: XUL Tree Testing" width="100" height="100">
  27. <xul:tree flex="1">
  28. <xul:treecols>
  29. <xul:treecol id="icon" label="Icon" flex="1" />
  30. </xul:treecols>
  31. <xul:treechildren>
  32. <xul:treeitem id="referenceItem" hidden="true">
  33. <xul:treerow>
  34. <xul:treecell src="animated-gif-finalframe.gif" width="40" height="40" />
  35. </xul:treerow>
  36. </xul:treeitem>
  37. <xul:treeitem id="imageItem" hidden="true">
  38. <xul:treerow>
  39. <xul:treecell src="animated-gif.gif" width="40" height="40" />
  40. </xul:treerow>
  41. </xul:treeitem>
  42. </xul:treechildren>
  43. </xul:tree>
  44. </xul:window>
  45. </div>
  46. <div id="debug" style="display:none"></div>
  47. <pre id="test">
  48. <script type="text/javascript;version=1.8">
  49. /** Test for Bug 666446 nsSVGFEImageElement/RasterImage**/
  50. const FAILURE_TIMEOUT = 5000; // Fail early after 120 seconds (2 minutes)
  51. function main() {
  52. var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceItem',
  53. 'imageItem', 'debug', '',
  54. 'animated-gif-finalframe.gif', true);
  55. animTest.beginTest();
  56. }
  57. window.onload = main;
  58. </script>
  59. </pre>
  60. </body>
  61. </html>