Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / events / keydown-keypress-focus-change.html
index 1bfff86..8bb26e6 100644 (file)
@@ -1,30 +1,30 @@
-<html>\r
-<script>\r
-    function test() {\r
-        if (window.testRunner) {\r
-            testRunner.dumpAsText();\r
-            testRunner.waitUntilDone();\r
-        }\r
-        setTimeout(test2, 0);\r
-    }\r
-    function test2() {\r
-        document.getElementById('tf0').focus();\r
-        eventSender.keyDown('a');\r
-        if (window.testRunner)\r
-            testRunner.notifyDone();\r
-    }\r
-    function log(msg) {\r
-        var res = document.getElementById('res');\r
-        res.innerHTML = res.innerHTML + msg + "<br>";\r
-    }\r
-\r
-</script> \r
-<body onload="test()">\r
-    This tests that when the keydown event changes focus, the keypress event will go to the new focused node.<br>\r
-    To run this test manually, type a character in the first field.<br>\r
-    <input id="tf0" onkeydown="document.getElementById('tf1').focus()" onkeypress="log('Test Failed')">\r
-    <input id="tf1" onkeypress="log('Test Passed')">\r
-    <br>\r
-    <div id="res"></div>\r
-</body>\r
-</html>\r
+<html>
+<script>
+    function test() {
+        if (window.testRunner) {
+            testRunner.dumpAsText();
+            testRunner.waitUntilDone();
+        }
+        setTimeout(test2, 0);
+    }
+    function test2() {
+        document.getElementById('tf0').focus();
+        eventSender.keyDown('a');
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }
+    function log(msg) {
+        var res = document.getElementById('res');
+        res.innerHTML = res.innerHTML + msg + "<br>";
+    }
+
+</script> 
+<body onload="test()">
+    This tests that when the keydown event changes focus, the keypress event will go to the new focused node.<br>
+    To run this test manually, type a character in the first field.<br>
+    <input id="tf0" onkeydown="document.getElementById('tf1').focus()" onkeypress="log('Test Failed')">
+    <input id="tf1" onkeypress="log('Test Passed')">
+    <br>
+    <div id="res"></div>
+</body>
+</html>