layout/reftests/svg/dynamic-textPath-02.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/dynamic-textPath-02.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +<!--
     1.5 +     Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<svg xmlns="http://www.w3.org/2000/svg"
     1.9 +     xmlns:xlink="http://www.w3.org/1999/xlink"
    1.10 +     class="reftest-wait">
    1.11 +  <title>Test for changes to the IDs in the document causing textPath references to update</title>
    1.12 +
    1.13 +  <defs>
    1.14 +    <path id="p1" d="M 100,100 h 200"/>
    1.15 +    <path id="p1" d="M 100,200 h 200"/>
    1.16 +  </defs>
    1.17 +
    1.18 +  <text style="16px sans-serif"><textPath xlink:href="#p1">Hello</textPath></text>
    1.19 +
    1.20 +  <script>
    1.21 +    document.addEventListener("MozReftestInvalidate", doTest, false);
    1.22 +    setTimeout(doTest, 4000); // fallback for running outside reftest
    1.23 +
    1.24 +    function doTest() {
    1.25 +      document.getElementsByTagName("path")[0].removeAttribute("id");
    1.26 +      document.documentElement.removeAttribute("class");
    1.27 +    }
    1.28 +  </script>
    1.29 +</svg>

mercurial