6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
12 style = document.createElement('style');
13 style.textContent = 'body { color: red }';
14 document.head.appendChild(style);
16 ruleList = getMatchedCSSRules(document.body);
18 document.styleSheets[0].deleteRule(0);
19 document.head.removeChild(style);
23 if (!ruleList[0].parentStyleSheet)
24 document.getElementById('result').innerHTML = "PASS";
25 if (window.testRunner)
26 testRunner.notifyDone();
31 if (window.GCController)
32 return GCController.collect();
34 for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
35 var s = new String("abc");
40 <body onload="runTest()">
41 <div id="result"></div>