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