Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / timer-clear-interval-in-handler-and-generate-error.html
index 7203a3e..23180e6 100644 (file)
@@ -1,25 +1,25 @@
-<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>