layout/reftests/svg/suspend-07.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/suspend-07.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<!--
     1.6 +     Any copyright is dedicated to the Public Domain.
     1.7 +     http://creativecommons.org/licenses/publicdomain/
     1.8 +-->
     1.9 +<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="f()">
    1.10 +  <title>Test that unsuspendRedrawAll works</title>
    1.11 +  <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=615146 -->
    1.12 +
    1.13 +  <script>
    1.14 +    function f() {
    1.15 +      var svg = document.documentElement;
    1.16 +      setTimeout(function() {
    1.17 +        svg.suspendRedraw(10000);
    1.18 +        setTimeout(function() {
    1.19 +          svg.removeChild(document.getElementById("r"));
    1.20 +          svg.unsuspendRedrawAll();
    1.21 +          svg.removeAttribute("class");
    1.22 +        }, 1);
    1.23 +      }, 1);
    1.24 +    }
    1.25 +  </script>
    1.26 +  <rect width="100%" height="100%" fill="lime"/>
    1.27 +  <rect id="r" width="100%" height="100%" fill="red"/>
    1.28 +</svg>

mercurial