3 // GC unreferenced strings to avoid that this test times out.
4 if (window
.GCController
)
5 GCController
.collect();
8 testRunner
.dumpAsText();
12 var styleElement
= document
.createElement('style');
13 styleElement
.setAttribute('type', 'text/css');
16 for (var i
= 0; i
< 16; i
++) {
19 for (var i
= 0; i
< 1+(1<<16); i
++){
20 var txt
= document
.createTextNode(str
);
21 styleElement
.appendChild(txt
);
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
);
34 This test verifies that creating a huge inline stylesheet doesn't crash.