Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / giant-stylesheet-crash.html
blob08c75cb9a9f030ad0b539ade5188af2c7afe8e42
1 <head>
2 <script>
3 // GC unreferenced strings to avoid that this test times out.
4 if (window.GCController)
5 GCController.collect();
7 if (window.testRunner)
8 testRunner.dumpAsText();
9 </script>
11 <script>
12 var styleElement = document.createElement('style');
13 styleElement.setAttribute('type', 'text/css');
15 var str="z";
16 for (var i = 0; i < 16; i++) {
17 str += str;
19 for (var i = 0; i < 1+(1<<16); i++){
20 var txt = document.createTextNode(str);
21 styleElement.appendChild(txt);
24 str = null;
26 // GC the large str strings to avoid timeouts for subsequent tests.
27 if (window.GCController)
28 GCController.collect();
30 document.getElementsByTagName('head')[0].appendChild(styleElement);
31 </script>
32 </head>
33 <body>
34 This test verifies that creating a huge inline stylesheet doesn't crash.
35 </body>