| <script src="../../http/tests/inspector/inspector-test.js"></script> |
| function createAndDumpTextModel(text) |
| var textModel = new WebInspector.TextEditorModel(); |
| InspectorTest.addResult("Lines:" + textModel.linesCount + ", length:" + textModel.text().length + ", input equals output:" + (textModel.text() === text)); |
| createAndDumpTextModel("1\n2\n\n"); |
| createAndDumpTextModel("1\r\n2\r\n\r\n"); |
| createAndDumpTextModel("1\n2\n\r\n"); |
| createAndDumpTextModel("no line breaks"); |
| InspectorTest.completeTest(); |
| <body onload="runTest()"> |
| This test checks the text editor model. |