1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/dynamic-conditions-12.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<?xml version="1.0"?> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="f()"> 1.10 + <title>Test that changing conditional processing attributes dynamically elements while redraw is suspended is honored</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 + svg.suspendRedraw(10000); 1.17 + setTimeout(function() { 1.18 + document.getElementById("r").setAttribute("requiredFeatures", "http://www.w3.org/TR/SVG11/feature#Gradient"); 1.19 + svg.unsuspendRedrawAll(); 1.20 + setTimeout(function() { 1.21 + svg.removeAttribute("class"); 1.22 + }, 1); 1.23 + }, 1); 1.24 + } 1.25 + </script> 1.26 + <rect id="r" width="100%" height="100%" fill="lime" requiredFeatures="x"/> 1.27 +</svg>