Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / block / line-layout / line-break-removal-near-textarea-crash.html
index d6430a6..5871175 100644 (file)
@@ -1,47 +1,47 @@
-<!DOCTYPE html>\r
-<html>\r
-<style>\r
-.style1 { display: table-row; content: counter(section); }\r
-.style2 { position: fixed; }\r
-.style3 { vertical-align: super; -webkit-appearance: button; -webkit-column-width: 100px; }\r
-.style3:nth-of-type(2n) { display: list-item; }\r
-</style>\r
-<script>\r
-window.onload = function() {\r
-    div1 = document.createElement('div');\r
-    document.documentElement.appendChild(div1);\r
-\r
-    spanElem1 = document.createElement('span');\r
-    spanElem1.setAttribute('class', 'style3');\r
-    document.documentElement.appendChild(spanElem1);\r
-    \r
-    spanElem2 = document.createElement('span');\r
-    spanElem1.appendChild(spanElem2);\r
-    spanElem1.appendChild(document.createTextNode('abc'));\r
-\r
-    textareaElem = document.createElement('textarea');\r
-    textareaElem.setAttribute('class', 'style1');\r
-    spanElem2.appendChild(textareaElem);\r
-\r
-    canvasElem = document.createElement('canvas');\r
-    spanElem2.appendChild(canvasElem);\r
-\r
-    paragraphElem = document.createElement('p');\r
-    paragraphElem.setAttribute('class', 'style2');\r
-    spanElem2.appendChild(paragraphElem);\r
-\r
-    document.execCommand("SelectAll", false, "");\r
-    window.scrollBy(-15, -48);\r
-    document.documentElement.offsetHeight;\r
-\r
-    div1.setAttribute('class', 'style3');\r
-    spanElem2.removeChild(paragraphElem);\r
-\r
-    if (window.testRunner)\r
-        testRunner.dumpAsText();\r
-}\r
-</script>\r
-<body>\r
-PASS, if no crash or assert in debug\r
-</body>\r
-</html>\r
+<!DOCTYPE html>
+<html>
+<style>
+.style1 { display: table-row; content: counter(section); }
+.style2 { position: fixed; }
+.style3 { vertical-align: super; -webkit-appearance: button; -webkit-column-width: 100px; }
+.style3:nth-of-type(2n) { display: list-item; }
+</style>
+<script>
+window.onload = function() {
+    div1 = document.createElement('div');
+    document.documentElement.appendChild(div1);
+
+    spanElem1 = document.createElement('span');
+    spanElem1.setAttribute('class', 'style3');
+    document.documentElement.appendChild(spanElem1);
+    
+    spanElem2 = document.createElement('span');
+    spanElem1.appendChild(spanElem2);
+    spanElem1.appendChild(document.createTextNode('abc'));
+
+    textareaElem = document.createElement('textarea');
+    textareaElem.setAttribute('class', 'style1');
+    spanElem2.appendChild(textareaElem);
+
+    canvasElem = document.createElement('canvas');
+    spanElem2.appendChild(canvasElem);
+
+    paragraphElem = document.createElement('p');
+    paragraphElem.setAttribute('class', 'style2');
+    spanElem2.appendChild(paragraphElem);
+
+    document.execCommand("SelectAll", false, "");
+    window.scrollBy(-15, -48);
+    document.documentElement.offsetHeight;
+
+    div1.setAttribute('class', 'style3');
+    spanElem2.removeChild(paragraphElem);
+
+    if (window.testRunner)
+        testRunner.dumpAsText();
+}
+</script>
+<body>
+PASS, if no crash or assert in debug
+</body>
+</html>