-<html>\r
-<head>\r
-<script>\r
-if (window.testRunner)\r
-{\r
- testRunner.dumpAsText();\r
- testRunner.waitUntilDone();\r
-}\r
-\r
-function runTest()\r
-{\r
- style = document.createElement('style');\r
- style.textContent = '@media all { body { color: red } }';\r
- document.head.appendChild(style);\r
- \r
- ruleList = getMatchedCSSRules(document.body);\r
- \r
- document.styleSheets[0].cssRules[0].deleteRule(0);\r
- document.head.removeChild(style);\r
- \r
- gc();\r
-\r
- if (!ruleList[0].parentStyleSheet)\r
- document.getElementById('result').innerHTML = "PASS";\r
- if (window.testRunner)\r
- testRunner.notifyDone();\r
-}\r
-\r
-function gc()\r
-{\r
- if (window.GCController)\r
- return GCController.collect();\r
-\r
- for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)\r
- var s = new String("abc");\r
- }\r
-}\r
-</script>\r
-</head>\r
-<body onload="runTest()">\r
-<div id="result"></div>\r
-</body>\r
-</html>\r
-\r
+<html>
+<head>
+<script>
+if (window.testRunner)
+{
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+function runTest()
+{
+ style = document.createElement('style');
+ style.textContent = '@media all { body { color: red } }';
+ document.head.appendChild(style);
+
+ ruleList = getMatchedCSSRules(document.body);
+
+ document.styleSheets[0].cssRules[0].deleteRule(0);
+ document.head.removeChild(style);
+
+ gc();
+
+ if (!ruleList[0].parentStyleSheet)
+ document.getElementById('result').innerHTML = "PASS";
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+
+function gc()
+{
+ if (window.GCController)
+ return GCController.collect();
+
+ for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
+ var s = new String("abc");
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<div id="result"></div>
+</body>
+</html>
+