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 | <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_smilCSSPropertyList.js"></script> |
michael@0 | 7 | <script type="text/javascript" src="db_smilCSSPaced.js"></script> |
michael@0 | 8 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 9 | </head> |
michael@0 | 10 | <body> |
michael@0 | 11 | <p id="display"></p> |
michael@0 | 12 | <div id="content"> |
michael@0 | 13 | <svg xmlns="http://www.w3.org/2000/svg" |
michael@0 | 14 | width="200px" height="200px" font-size="50px" style="color: rgb(50,50,50)" |
michael@0 | 15 | onload="this.pauseAnimations()"> |
michael@0 | 16 | <rect x="20" y="20" width="200" height="200"/> |
michael@0 | 17 | <text x="20" y="20">testing 123</text> |
michael@0 | 18 | <marker/> |
michael@0 | 19 | </svg> |
michael@0 | 20 | </div> |
michael@0 | 21 | <pre id="test"> |
michael@0 | 22 | <script class="testbody" type="text/javascript"> |
michael@0 | 23 | <![CDATA[ |
michael@0 | 24 | |
michael@0 | 25 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 26 | |
michael@0 | 27 | function main() |
michael@0 | 28 | { |
michael@0 | 29 | // Start out with document paused |
michael@0 | 30 | var svg = SMILUtil.getSVGRoot(); |
michael@0 | 31 | ok(svg.animationsPaused(), "should be paused by <svg> load handler"); |
michael@0 | 32 | is(svg.getCurrentTime(), 0, "should be paused at 0 in <svg> load handler"); |
michael@0 | 33 | |
michael@0 | 34 | testBundleList(gPacedBundles, new SMILTimingData(1.0, 6.0)); |
michael@0 | 35 | // Set "display:none" on everything and run the tests again |
michael@0 | 36 | SMILUtil.hideSubtree(SMILUtil.getSVGRoot(), false, false); |
michael@0 | 37 | testBundleList(gPacedBundles, new SMILTimingData(1.0, 6.0)); |
michael@0 | 38 | |
michael@0 | 39 | SimpleTest.finish(); |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | window.addEventListener("load", main, false); |
michael@0 | 43 | ]]> |
michael@0 | 44 | </script> |
michael@0 | 45 | </pre> |
michael@0 | 46 | </body> |
michael@0 | 47 | </html> |