-<script>\r
-if (window.testRunner) {\r
- testRunner.dumpAsText()\r
- testRunner.waitUntilDone();\r
-}\r
-\r
-function log(msg) {\r
- var elmt = document.createElement("div");\r
- elmt.textContent = msg;\r
- document.body.appendChild(msg);\r
-}\r
-\r
-var timer = setInterval(function() {\r
- clearInterval(timer);\r
- setTimeout(function() {\r
- if (window.testRunner)\r
- testRunner.notifyDone();\r
- }, 10);\r
-\r
- // This function tries to appendChild to body, but body doesn't exist\r
- // yet, generating an error. This test passes if we don't crash when\r
- // trying to add the error message to the console.\r
- log("PASS");\r
-}, 10);\r
-</script>\r
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
+}
+
+function log(msg) {
+ var elmt = document.createElement("div");
+ elmt.textContent = msg;
+ document.body.appendChild(msg);
+}
+
+var timer = setInterval(function() {
+ clearInterval(timer);
+ setTimeout(function() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, 10);
+
+ // This function tries to appendChild to body, but body doesn't exist
+ // yet, generating an error. This test passes if we don't crash when
+ // trying to add the error message to the console.
+ log("PASS");
+}, 10);
+</script>