image/test/mochitest/test_xultree_animation.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/image/test/mochitest/test_xultree_animation.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,67 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html
     1.6 +xmlns="http://www.w3.org/1999/xhtml"
     1.7 +      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     1.8 +      xml:lang="en" lang="en">
     1.9 +<!--
    1.10 +https://bugzilla.mozilla.org/show_bug.cgi?id=666446
    1.11 +-->
    1.12 +<head>
    1.13 +  <title>Test for Bug 666446 - Animated Images within SVG Filters</title>
    1.14 +  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    1.15 +  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script>
    1.16 +  <script type="application/javascript" src="imgutils.js"></script>
    1.17 +  <script type="application/javascript" src="animationPolling.js"></script>
    1.18 +  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
    1.19 +</head>
    1.20 +<body>
    1.21 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=666446">
    1.22 +Mozilla Bug 666446: lots of animated gifs swamp us with paint events
    1.23 +</a>
    1.24 +<p id="display"></p>
    1.25 +<div id="content">
    1.26 +  <xul:caption label="Bug 666446 - XULTree Test" />
    1.27 +  <xul:separator />
    1.28 +    <br />
    1.29 +    <xul:window id="main" title="Bug 666446: XUL Tree Testing" width="100" height="100">
    1.30 +      <xul:tree flex="1">
    1.31 +        <xul:treecols>
    1.32 +          <xul:treecol id="icon" label="Icon" flex="1" />
    1.33 +        </xul:treecols>
    1.34 +
    1.35 +        <xul:treechildren>
    1.36 +          <xul:treeitem id="referenceItem" hidden="true">
    1.37 +            <xul:treerow>
    1.38 +              <xul:treecell src="animated-gif-finalframe.gif" width="40" height="40" />
    1.39 +            </xul:treerow>
    1.40 +          </xul:treeitem>
    1.41 +          <xul:treeitem id="imageItem" hidden="true">
    1.42 +            <xul:treerow>
    1.43 +              <xul:treecell src="animated-gif.gif" width="40" height="40" />
    1.44 +            </xul:treerow>
    1.45 +          </xul:treeitem>
    1.46 +        </xul:treechildren>
    1.47 +      </xul:tree>
    1.48 +    </xul:window>
    1.49 +  </div>
    1.50 +<div id="debug" style="display:none"></div>
    1.51 +<pre id="test">
    1.52 +<script type="text/javascript;version=1.8">
    1.53 +
    1.54 +/** Test for Bug 666446 nsSVGFEImageElement/RasterImage**/
    1.55 +
    1.56 +const FAILURE_TIMEOUT = 5000; // Fail early after 120 seconds (2 minutes)
    1.57 +
    1.58 +function main() {
    1.59 +  var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceItem',
    1.60 +                                   'imageItem', 'debug', '',
    1.61 +                                   'animated-gif-finalframe.gif', true);
    1.62 +  animTest.beginTest();
    1.63 +}
    1.64 +
    1.65 +window.onload = main;
    1.66 +
    1.67 +</script>
    1.68 +</pre>
    1.69 +</body>
    1.70 +</html>

mercurial