Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / document-set-title-mutation-crash.html
index c147975..0084d3a 100644 (file)
@@ -1,31 +1,31 @@
-<!DOCTYPE html>\r
-<html>\r
-<script>\r
-var count = 0;\r
-if (!window.testRunner)\r
-    document.write("This test requires GCController.");\r
-else {\r
-    testRunner.dumpAsText();\r
-    testRunner.waitUntilDone();\r
-\r
-    function crash() {\r
-        if (++count > 1)\r
-            return;\r
-        document.open();\r
-        document.write('PASS');\r
-        document.close();\r
-        GCController.collect();\r
-        setTimeout("testRunner.notifyDone()", 0);\r
-    }\r
-\r
-    setTimeout(function () {\r
-        document.write("<title>");\r
-        document.title = "First Child";\r
-        document.getElementsByTagName('title')[0].appendChild(document.createTextNode("Second Child"));\r
-\r
-        document.addEventListener('DOMNodeRemovedFromDocument', function () { crash(); }, true);\r
-        document.title = "New title";\r
-    }, 0);\r
-}\r
-</script>\r
-</html>\r
+<!DOCTYPE html>
+<html>
+<script>
+var count = 0;
+if (!window.testRunner)
+    document.write("This test requires GCController.");
+else {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
+
+    function crash() {
+        if (++count > 1)
+            return;
+        document.open();
+        document.write('PASS');
+        document.close();
+        GCController.collect();
+        setTimeout("testRunner.notifyDone()", 0);
+    }
+
+    setTimeout(function () {
+        document.write("<title>");
+        document.title = "First Child";
+        document.getElementsByTagName('title')[0].appendChild(document.createTextNode("Second Child"));
+
+        document.addEventListener('DOMNodeRemovedFromDocument', function () { crash(); }, true);
+        document.title = "New title";
+    }, 0);
+}
+</script>
+</html>