tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_smilCSSPaced.xhtml (1307B)


      1 <html xmlns="http://www.w3.org/1999/xhtml">
      2 <head>
      3  <title>Test for Animation Behavior on CSS Properties</title>
      4  <script 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 
     36  SimpleTest.finish();
     37 }
     38 
     39 window.addEventListener("load", main);
     40 ]]>
     41 </script>
     42 </pre>
     43 </body>
     44 </html>