| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="editor-test.js"></script> | 4 <script src="editor-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function codeSnippet() { | 6 function codeSnippet() { |
| 7 return document.getElementById("codeSnippet").textContent; | 7 return document.getElementById("codeSnippet").textContent; |
| 8 } | 8 } |
| 9 | 9 |
| 10 function test() | 10 function test() |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 { line: 3, column: 0 }, | 101 { line: 3, column: 0 }, |
| 102 { line: 5, column: 1 }, | 102 { line: 5, column: 1 }, |
| 103 { line: 6, column: 2 }, | 103 { line: 6, column: 2 }, |
| 104 ]); | 104 ]); |
| 105 hitEnterDumpTextAndNext(next); | 105 hitEnterDumpTextAndNext(next); |
| 106 } | 106 } |
| 107 ]); | 107 ]); |
| 108 | 108 |
| 109 function hitEnterDumpTextAndNext(next) | 109 function hitEnterDumpTextAndNext(next) |
| 110 { | 110 { |
| 111 InspectorTest.fakeKeyEvent(textEditor, "enter", null, step2); | 111 InspectorTest.fakeKeyEvent(textEditor, "Enter", null, step2); |
| 112 function step2() | 112 function step2() |
| 113 { | 113 { |
| 114 InspectorTest.dumpTextWithSelection(textEditor, true); | 114 InspectorTest.dumpTextWithSelection(textEditor, true); |
| 115 next(); | 115 next(); |
| 116 } | 116 } |
| 117 } | 117 } |
| 118 } | 118 } |
| 119 | 119 |
| 120 </script> | 120 </script> |
| 121 </head> | 121 </head> |
| 122 | 122 |
| 123 <body onload="runTest();"> | 123 <body onload="runTest();"> |
| 124 <p> | 124 <p> |
| 125 This test checks text editor enter behaviour. | 125 This test checks text editor enter behaviour. |
| 126 </p> | 126 </p> |
| 127 </body> | 127 </body> |
| 128 </html> | 128 </html> |
| OLD | NEW |