layout/reftests/svg/suspend-03.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 <?xml version="1.0"?>
     2 <!--
     3      Any copyright is dedicated to the Public Domain.
     4      http://creativecommons.org/licenses/publicdomain/
     5 -->
     6 <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="f()">
     7   <title>Test that suspendRedraw doesn't apply after the end of a script</title>
     8   <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=734079 -->
    10   <script>
    11     function f() {
    12       var svg = document.documentElement;
    13       setTimeout(function() {
    14         svg.suspendRedraw(10000);
    15         setTimeout(function() {
    16           svg.removeChild(document.getElementById("r"));
    17           svg.removeAttribute("class");
    18         }, 1);
    19       }, 1);
    20     }
    21   </script>
    22   <rect width="100%" height="100%" fill="lime"/>
    23   <rect id="r" width="100%" height="100%" fill="red"/>
    24 </svg>

mercurial