layout/reftests/svg/smil/anim-text-rotate-01.svg

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 <svg xmlns="http://www.w3.org/2000/svg"
michael@0 2 xmlns:xlink="http://www.w3.org/1999/xlink"
michael@0 3 class="reftest-wait"
michael@0 4 onload="setTimeAndSnapshot(5, true)">
michael@0 5 <title>Test animation of the &lt;number-list&gt; attribute on the 'text' element</title>
michael@0 6 <script xlink:href="smil-util.js" type="text/javascript"/>
michael@0 7
michael@0 8 <!-- The difference between respective numbers in the effective 'from' and
michael@0 9 'to' lists below is carefully designed to be a factor of 3. That way
michael@0 10 our reference file (which checks against a one third complete animation)
michael@0 11 can contain whole numbers, which is necessary to avoid failure due to
michael@0 12 hard coded rounded numbers in the reference not matching platform
michael@0 13 specific rounding behaviour.
michael@0 14 -->
michael@0 15
michael@0 16 <!-- Test calcMode="linear". -->
michael@0 17
michael@0 18 <text transform="translate(20, 20)"
michael@0 19 rotate="10 20 30">ABC
michael@0 20
michael@0 21 <!-- At 5s the animVal should be "110 120 130". -->
michael@0 22 <animate attributeName="rotate"
michael@0 23 calcMode="linear"
michael@0 24 begin="0s" dur="15s"
michael@0 25 to="310 320 330"
michael@0 26 fill="freeze"/>
michael@0 27
michael@0 28 </text>
michael@0 29
michael@0 30
michael@0 31 <!-- Test 'by' animation. -->
michael@0 32
michael@0 33 <text transform="translate(120, 20)"
michael@0 34 rotate="10 20 30">DEF
michael@0 35
michael@0 36 <!-- At 5s the animVal should be "110 120 130". -->
michael@0 37 <animate attributeName="rotate"
michael@0 38 calcMode="linear"
michael@0 39 begin="0s" dur="15s"
michael@0 40 by="300 300 300"
michael@0 41 fill="freeze"/>
michael@0 42
michael@0 43 </text>
michael@0 44
michael@0 45
michael@0 46 <!-- Test calcMode="paced". -->
michael@0 47
michael@0 48 <text transform="translate(220, 20)">GHI
michael@0 49
michael@0 50 <!-- At 5s the animVal should be "110 120 130". -->
michael@0 51 <animate attributeName="rotate"
michael@0 52 calcMode="paced"
michael@0 53 begin="0s" dur="15s"
michael@0 54 values="10 20 30; 210 220 230; 310 320 330"
michael@0 55 fill="freeze"/>
michael@0 56
michael@0 57 </text>
michael@0 58
michael@0 59
michael@0 60 <!-- Test calcMode="discrete". -->
michael@0 61
michael@0 62 <text transform="translate(320, 20)" rotate="10 20 30">JKL
michael@0 63
michael@0 64 <!-- The value should be "310 320 330" at 3s. -->
michael@0 65 <animate attributeName="rotate"
michael@0 66 calcMode="discrete"
michael@0 67 begin="0s" dur="6s"
michael@0 68 to="310 320 330"
michael@0 69 fill="freeze"/>
michael@0 70
michael@0 71 </text>
michael@0 72
michael@0 73 </svg>

mercurial