4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
11 var img
= document
.getElementById('img');
12 document
.body
.replaceChild(img
.cloneNode(), img
);
15 else if (window
.testRunner
)
16 testRunner
.notifyDone();
21 <body onload='test()'
>
22 <p>This test checks if SVGImageCache leaks SVG image data as reported in
23 https://bugs.webkit.org/show_bug.cgi?id=
87792. Its layout has no particular meaning.
24 The test will cause crash of debug version when leaks of SVG image data is detected.
</p>
25 <p>Note: the code detects leaks of SVG image data on destruction of SVGImageCache,
26 which doesn't work on platforms that DumpRenderTree leaks the cache itself.
</p>
27 <img id='img' src='resources/circle.svg'
>