Bug 1839526 [wpt PR 40658] - Update wpt metadata, a=testonly
[gecko.git] / layout / style / crashtests / 786108-2.html
blob1b2892040b7ea11fcc551242785310a476301f58
1 <html>
2 <head></head>
3 <body></body>
4 <script type="text/javascript">
5 // Detect severe performance and memory issues when large amounts of errors
6 // are reported from CSS embedded in a file with a long data URI. Addressed
7 // by 786108; should finish quickly with that patch and run for a very long
8 // time otherwise. This version is designed for slow / memory constrained
9 // platforms like Android.
11 var img = new Array;
12 img.push('<img src="data:image/svg+xml,');
13 img.push(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300px" height="300px">'));
15 for (var i = 0 ; i < 2500 ; i++)
16 img.push(encodeURIComponent('<circle cx="0" cy="0" r="1" style="xxx-invalid-property: 0;"/>'));
18 img.push(encodeURIComponent('</svg>'));
19 img.push('">');
21 document.getElementsByTagName('body')[0].innerHTML = img.join('');
22 </script>
23 </html>