layout/reftests/svg/dynamic-small-object-scaled-up-01.svg

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait">
     6   <title>Test invalidation of very small objects that have been scaled up</title>
     7   <!--
     8     From https://bugzilla.mozilla.org/show_bug.cgi?id=465996
    10     The very small graphic that has been scaled up to be visible should
    11     invalidate correctly when moved.
    12   -->
    13   <script type="text/javascript">//<![CDATA[
    15 function move_small_object()
    16 {
    17   document.getElementById('circle').setAttribute("transform", "translate(-.2, -.2)");
    18   document.documentElement.removeAttribute('class');
    19 }
    21 document.addEventListener("MozReftestInvalidate", move_small_object, false);
    22 setTimeout(move_small_object, 4000); // fallback for running outside reftest
    24   //]]></script>
    25   <rect width="100%" height="100%" fill="lime"/>
    26   <g transform="scale(300, 300)">
    27     <circle id="circle" cx=".05" cy=".05" r=".05"
    28             fill="red" stroke="black" stroke-width="0.005" />
    29   </g>
    30 </svg>

mercurial