layout/reftests/svg/dynamic-text-05.svg

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     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" class="reftest-wait">
     7   <title>Testcase for text removal</title>
     9   <script>
    10     document.addEventListener("MozReftestInvalidate", doTest, false);
    11     setTimeout(doTest, 4000); // fallback for running outside reftest
    13     function doTest() {
    14       document.getElementById("text").firstChild.nodeValue='';
    15       document.documentElement.removeAttribute("class");
    16     }
    17   </script>
    18   <rect width="100%" height="100%" fill="lime"/>
    19   <text id="text" font-size="32" x="40" y="40">SHOULD NOT SEE ME</text>
    20 </svg>

mercurial