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