Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / as-image / svg-image-leak-cached-data.html
blob88c220c7ffb47d1b6c74287bed09b01d230dfea9
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 var count = 0;
10 function test() {
11 var img = document.getElementById('img');
12 document.body.replaceChild(img.cloneNode(), img);
13 if (++count < 10)
14 setTimeout(test, 0);
15 else if (window.testRunner)
16 testRunner.notifyDone();
18 </script>
19 </head>
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'>
28 </body>
29 </html>