tor-browser

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

test_smilCSSFromBy.xhtml (1558B)


      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_smilCSSFromBy.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  <!-- NOTE: hard-wiring 'line-height' so that computed value of 'font' is
     18       more predictable. (otherwise, line-height varies depending on platform)
     19    -->
     20  <text x="20" y="20" style="line-height: 10px !important">testing 123</text>
     21  <line/>
     22  <marker/>
     23  <filter><feDiffuseLighting/></filter>
     24 </svg>
     25 </div>
     26 <pre id="test">
     27 <script class="testbody" type="text/javascript">
     28 <![CDATA[
     29 
     30 SimpleTest.waitForExplicitFinish();
     31 
     32 function main()
     33 {
     34  // Start out with document paused
     35  var svg = SMILUtil.getSVGRoot();
     36  ok(svg.animationsPaused(), "should be paused by <svg> load handler");
     37  is(svg.getCurrentTime(), 0, "should be paused at 0 in <svg> load handler");
     38 
     39  testBundleList(gFromByBundles, new SMILTimingData(1.0, 1.0));
     40 
     41  SimpleTest.finish();
     42 }
     43 
     44 window.addEventListener("load", main);
     45 ]]>
     46 </script>
     47 </pre>
     48 </body>
     49 </html>