Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / large-list-of-rules-crash.html
blob423fa2b9656d9d234f6e965048f7aea5a5255498
1 <!DOCTYPE HTML PUBLIC
2 "-//W3C//DTD HTML 4.01//EN"
3 "http://www.w3.org/TR/html4/strict.dtd">
5 <script type="text/javascript">
6 var array = Array(200000);
7 for (var i = 0; i < 200000; ++i)
8 array[i] = "a {}\n";
9 var s = array.join("");
11 var style = document.createElement("style");
12 style.appendChild(document.createTextNode(s));
13 document.getElementsByTagName("head")[0].appendChild(style);
15 if (window.testRunner)
16 testRunner.dumpAsText();
17 </script>
19 <!-- loading a linked style sheet causes the list of CSS Rules to be rebuilt,
20 which caused a crash (stack overflow) -->
21 <link rel="stylesheet" href="resources/large-list-of-rules-crash.css">
22 <link rel="stylesheet" href="resources/large-list-of-rules-crash.css">
24 <p>Test case for
25 <a href="https://bugs.webkit.org/show_bug.cgi?id=27748"
26 >https://bugs.webkit.org/show_bug.cgi?id=27748</a>. If the browser did
27 not crash, the test passed.</p>