image/test/mochitest/test_bug767779.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/image/test/mochitest/test_bug767779.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=767779
     1.8 +-->
     1.9 +<head>
    1.10 +  <title>Test for Bug 767779</title>
    1.11 +  <script type="application/javascript" src="/MochiKit/MochiKit.js"></script>
    1.12 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.13 +  <script type="application/javascript" src="/tests/SimpleTest/WindowSnapshot.js"></script>
    1.14 +  <script type="application/javascript" src="imgutils.js"></script>
    1.15 +  <script type="application/javascript" src="animationPolling.js"></script>
    1.16 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.17 +</head>
    1.18 +<body>
    1.19 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=767779">Mozilla Bug 767779</a>
    1.20 +<p id="display"></p>
    1.21 +<pre id="test">
    1.22 +<script type="application/javascript">
    1.23 +const FAILURE_TIMEOUT = 30000; // Fail early after 30 seconds
    1.24 +
    1.25 +function main()
    1.26 +{
    1.27 +  // referenceDiv's size and color correspond to the last frame of the GIF
    1.28 +  var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceDiv',
    1.29 +                                   'animatedGif', 'debug');
    1.30 +  animTest.beginTest();
    1.31 +}
    1.32 +
    1.33 +window.onload = main;
    1.34 +</script>
    1.35 +</pre>
    1.36 +<div id="content"> <!-- style="display: none" -->
    1.37 +  <div id="referenceDiv" style="height: 40px; width: 40px;
    1.38 +                                display: none; background: #18ff00;"></div>
    1.39 +  <div id="animatedImage">
    1.40 +    <img id="animatedGif" src="bug767779.sjs" style="display: none;"/>
    1.41 +      <div id="text-descr"></div>
    1.42 +  </div>
    1.43 +  <div id="debug" style="display:none">
    1.44 +  </div>
    1.45 +</div>
    1.46 +</body>
    1.47 +</html>

mercurial