Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=666446 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 666446 - Animated Raster Images inside of SVG Frames</title> |
michael@0 | 8 | <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 9 | <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script> |
michael@0 | 10 | <script type="application/javascript" src="imgutils.js"></script> |
michael@0 | 11 | <script type="application/javascript" src="animationPolling.js"></script> |
michael@0 | 12 | <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" /> |
michael@0 | 13 | </head> |
michael@0 | 14 | |
michael@0 | 15 | <!-- Make sure embed element is snapped to an exact pixel. --> |
michael@0 | 16 | <div class="bug-header" style="height: 100px;"> |
michael@0 | 17 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=666446"> |
michael@0 | 18 | Mozilla Bug 666446: lots of animated gifs swamp us with paint events |
michael@0 | 19 | </a> |
michael@0 | 20 | </div> |
michael@0 | 21 | |
michael@0 | 22 | <p id="display"></p> |
michael@0 | 23 | <div id="content"> |
michael@0 | 24 | <div id="referenceDiv" style="height: 40px; width: 40px; |
michael@0 | 25 | display: none; background: #2aff00"></div> |
michael@0 | 26 | <!-- |
michael@0 | 27 | We use <embed> here instead of <img> because the <img> tag utilizes |
michael@0 | 28 | the VectorImage class for SVG, whereas in this test, we are testing |
michael@0 | 29 | RasterImage. |
michael@0 | 30 | --> |
michael@0 | 31 | <embed id="embeddedSVG" src="animation.svg" type="image/svg+xml" style="display: none;"/> |
michael@0 | 32 | </div> |
michael@0 | 33 | <div id="debug" style="display:none"></div> |
michael@0 | 34 | <pre id="test"> |
michael@0 | 35 | <script type="text/javascript;version=1.8"> |
michael@0 | 36 | |
michael@0 | 37 | /** Test for Bug 666446 nsSVGImageFrame/RasterImage**/ |
michael@0 | 38 | |
michael@0 | 39 | const FAILURE_TIMEOUT = 120000; // Fail early after 120 seconds (2 minutes) |
michael@0 | 40 | |
michael@0 | 41 | function main() { |
michael@0 | 42 | var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceDiv', |
michael@0 | 43 | 'embeddedSVG', 'debug', ''); |
michael@0 | 44 | animTest.beginTest(); |
michael@0 | 45 | } |
michael@0 | 46 | |
michael@0 | 47 | window.onload = main; |
michael@0 | 48 | |
michael@0 | 49 | </script> |
michael@0 | 50 | </pre> |
michael@0 | 51 | </body> |
michael@0 | 52 | </html> |