test_xultree_animation.xhtml (2271B)
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 src="/tests/SimpleTest/SimpleTest.js"></script> 12 <script 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" style="width: 100px; height: 100px"> 27 <xul:tree flex="1"> 28 <xul:treecols> 29 <xul:treecol id="icon" label="Icon" flex="1" /> 30 </xul:treecols> 31 32 <xul:treechildren> 33 <xul:treeitem id="referenceItem" hidden="true"> 34 <xul:treerow> 35 <xul:treecell src="animated-gif-finalframe.gif" style="width: 40px; height: 40px;" /> 36 </xul:treerow> 37 </xul:treeitem> 38 <xul:treeitem id="imageItem" hidden="true"> 39 <xul:treerow> 40 <xul:treecell src="animated-gif.gif" style="width: 40px; height: 40px;" /> 41 </xul:treerow> 42 </xul:treeitem> 43 </xul:treechildren> 44 </xul:tree> 45 </xul:window> 46 </div> 47 <div id="debug" style="display:none"></div> 48 <pre id="test"> 49 <script type="text/javascript"> 50 51 /** Test for Bug 666446 nsSVGFEImageElement/RasterImage*/ 52 53 const FAILURE_TIMEOUT = 5000; // Fail early after 120 seconds (2 minutes) 54 55 function main() { 56 var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceItem', 57 'imageItem', 'debug', '', 58 'animated-gif-finalframe.gif', true); 59 animTest.beginTest(); 60 } 61 62 window.onload = main; 63 64 </script> 65 </pre> 66 </body> 67 </html>