dom/smil/test/test_smilAnimateMotion.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 <!--
michael@0 3 https://bugzilla.mozilla.org/show_bug.cgi?id=436418
michael@0 4 -->
michael@0 5 <head>
michael@0 6 <title>Test for animateMotion behavior</title>
michael@0 7 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
michael@0 8 <script type="text/javascript" src="smilTestUtils.js"></script>
michael@0 9 <script type="text/javascript" src="db_smilAnimateMotion.js"></script>
michael@0 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
michael@0 11 </head>
michael@0 12 <body>
michael@0 13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=436418">Mozilla Bug 436418</a>
michael@0 14 <p id="display"></p>
michael@0 15 <div id="content" style="visibility: hidden">
michael@0 16
michael@0 17 <!-- NOTE: Setting font-size so we can test 'em' units -->
michael@0 18 <svg xmlns="http://www.w3.org/2000/svg"
michael@0 19 width="200px" height="200px" style="font-size: 500px"
michael@0 20 onload="this.pauseAnimations()">
michael@0 21 <!-- XXXdholbert Right now, 'em' conversions are correct if we set font-size
michael@0 22 on rect using the inline style attr. However, if we use 'font-size' attr,
michael@0 23 then 'em' units end up using the inherited font-size instead. Bug? -->
michael@0 24 <rect x="20" y="20" width="200" height="200" style="font-size: 10px"/>
michael@0 25 </svg>
michael@0 26 </div>
michael@0 27 <pre id="test">
michael@0 28 <script class="testbody" type="text/javascript">
michael@0 29 <![CDATA[
michael@0 30
michael@0 31 SimpleTest.waitForExplicitFinish();
michael@0 32
michael@0 33 function main()
michael@0 34 {
michael@0 35 // Start out with document paused
michael@0 36 var svg = SMILUtil.getSVGRoot();
michael@0 37 ok(svg.animationsPaused(), "should be paused by <svg> load handler");
michael@0 38 is(svg.getCurrentTime(), 0, "should be paused at 0 in <svg> load handler");
michael@0 39
michael@0 40 var timingData = new SMILTimingData(1.0, 6.0);
michael@0 41 testBundleList(gMotionBundles, timingData);
michael@0 42
michael@0 43 SimpleTest.finish();
michael@0 44 }
michael@0 45
michael@0 46 window.addEventListener("load", main, false);
michael@0 47 ]]>
michael@0 48 </script>
michael@0 49 </pre>
michael@0 50 </body>
michael@0 51 </html>

mercurial