dom/smil/test/test_smilMappedAttrPaced.xhtml

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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

mercurial