Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / events / select-onchange-crash.html
index 17160fc..1fa21d7 100644 (file)
@@ -1,37 +1,37 @@
-<html>\r
-  <head>\r
-    <script>\r
-        if (window.testRunner)\r
-        {\r
-            testRunner.dumpAsText();\r
-            testRunner.waitUntilDone();\r
-        }\r
-        window.onload = function ()\r
-        {\r
-            var element = document.getElementById("test");\r
-            element.onchange = function() { element.size = 30; }\r
-            element.focus();\r
-            if (window.testRunner)\r
-            {\r
-                // This triggers selection of second option in the select and press Enter.\r
-                eventSender.keyDown("e");\r
-                eventSender.keyDown("\r", []);\r
-                // This triggers repaint.\r
-                document.body.offsetTop;\r
-                \r
-                document.getElementById("log").innerHTML = "<span style='color: green;'>PASS:</span> Did not crash";\r
-                testRunner.notifyDone();\r
-            }\r
-         }\r
-    </script>\r
-  </head>\r
-  <body>\r
-    This test is to ensure that we do not crash when onchange handler changes the select from a menu list to a list box.\r
-    <p id="log"><span style='color: red;'>FAIL:</span> Did not complete test or not running inside DumpRenderTree</p>\r
-    <select id="test">\r
-      <option selected>abcd</option>\r
-      <option>efgh</option>\r
-    </select>\r
-  </body>\r
-</html>\r
-\r
+<html>
+  <head>
+    <script>
+        if (window.testRunner)
+        {
+            testRunner.dumpAsText();
+            testRunner.waitUntilDone();
+        }
+        window.onload = function ()
+        {
+            var element = document.getElementById("test");
+            element.onchange = function() { element.size = 30; }
+            element.focus();
+            if (window.testRunner)
+            {
+                // This triggers selection of second option in the select and press Enter.
+                eventSender.keyDown("e");
+                eventSender.keyDown("\r", []);
+                // This triggers repaint.
+                document.body.offsetTop;
+                
+                document.getElementById("log").innerHTML = "<span style='color: green;'>PASS:</span> Did not crash";
+                testRunner.notifyDone();
+            }
+         }
+    </script>
+  </head>
+  <body>
+    This test is to ensure that we do not crash when onchange handler changes the select from a menu list to a list box.
+    <p id="log"><span style='color: red;'>FAIL:</span> Did not complete test or not running inside DumpRenderTree</p>
+    <select id="test">
+      <option selected>abcd</option>
+      <option>efgh</option>
+    </select>
+  </body>
+</html>
+