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 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 2 | <head> |
michael@0 | 3 | <title>Test for Animation Behavior on CSS Properties</title> |
michael@0 | 4 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 5 | <script type="text/javascript" src="smilTestUtils.js"></script> |
michael@0 | 6 | <script type="text/javascript" src="db_smilMappedAttrList.js"></script> |
michael@0 | 7 | <script type="text/javascript" src="db_smilCSSPropertyList.js"></script> |
michael@0 | 8 | <script type="text/javascript" src="db_smilCSSFromBy.js"></script> |
michael@0 | 9 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 10 | </head> |
michael@0 | 11 | <body> |
michael@0 | 12 | <p id="display"></p> |
michael@0 | 13 | <div id="content"> |
michael@0 | 14 | <svg xmlns="http://www.w3.org/2000/svg" |
michael@0 | 15 | width="200px" height="200px" font-size="50px" style="color: rgb(50,50,50)" |
michael@0 | 16 | onload="this.pauseAnimations()"> |
michael@0 | 17 | <rect x="20" y="20" width="200" height="200"/> |
michael@0 | 18 | <!-- NOTE: hard-wiring 'line-height' so that computed value of 'font' is |
michael@0 | 19 | more predictable. (otherwise, line-height varies depending on platform) |
michael@0 | 20 | --> |
michael@0 | 21 | <text x="20" y="20" style="line-height: 10px !important">testing 123</text> |
michael@0 | 22 | <line/> |
michael@0 | 23 | <marker/> |
michael@0 | 24 | <filter><feDiffuseLighting/></filter> |
michael@0 | 25 | </svg> |
michael@0 | 26 | </div> |
michael@0 | 27 | <pre id="test"> |
michael@0 | 28 | <script class="testbody" type="text/javascript"> |
michael@0 | 29 | <![CDATA[ |
michael@0 | 30 | |
michael@0 | 31 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 32 | |
michael@0 | 33 | function main() |
michael@0 | 34 | { |
michael@0 | 35 | // Start out with document paused |
michael@0 | 36 | var svg = SMILUtil.getSVGRoot(); |
michael@0 | 37 | ok(svg.animationsPaused(), "should be paused by <svg> load handler"); |
michael@0 | 38 | is(svg.getCurrentTime(), 0, "should be paused at 0 in <svg> load handler"); |
michael@0 | 39 | |
michael@0 | 40 | var testBundles = convertCSSBundlesToMappedAttr(gFromByBundles); |
michael@0 | 41 | testBundleList(testBundles, new SMILTimingData(1.0, 1.0)); |
michael@0 | 42 | |
michael@0 | 43 | // Set "display:none" on everything and run the tests again |
michael@0 | 44 | SMILUtil.hideSubtree(SMILUtil.getSVGRoot(), false, true); |
michael@0 | 45 | testBundleList(testBundles, new SMILTimingData(1.0, 1.0)); |
michael@0 | 46 | |
michael@0 | 47 | SimpleTest.finish(); |
michael@0 | 48 | } |
michael@0 | 49 | |
michael@0 | 50 | window.addEventListener("load", main, false); |
michael@0 | 51 | ]]> |
michael@0 | 52 | </script> |
michael@0 | 53 | </pre> |
michael@0 | 54 | </body> |
michael@0 | 55 | </html> |