dom/smil/test/test_smilCSSFromBy.xhtml

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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

mercurial