1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/svg/crashtests/709920-1.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +<svg xmlns="http://www.w3.org/2000/svg" 1.5 + class="reftest-wait"> 1.6 + <!-- Test to be sure that a zero-sized-in-one-dimension viewBox doesn't 1.7 + make us fail assertions. --> 1.8 + <script> 1.9 + document.addEventListener("MozReftestInvalidate", waitAndFinish, false); 1.10 + 1.11 + function waitAndFinish() { 1.12 + // Sadly, MozReftestInvalidate fires sooner than PaintPattern here, so 1.13 + // we need to wait a little bit to give PaintPattern a chance to hit 1.14 + // this bug. 1.15 + setTimeout(finish, 100); 1.16 + } 1.17 + 1.18 + function finish() { 1.19 + document.documentElement.removeAttribute("class"); 1.20 + } 1.21 + </script> 1.22 + <pattern id="test" viewBox="0 0 1 0"> 1.23 + <rect/> 1.24 + </pattern> 1.25 + <rect width="200" height="200" fill="url(#test)"/> 1.26 +</svg>