Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: LayoutTests/inspector/editor/text-editor-model.html

Issue 22638008: DevTools: Use CodeMirror modes instead of highlight tokenizers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script>
5
6 function test()
7 {
8 function createAndDumpTextModel(text)
9 {
10 var textModel = new WebInspector.TextEditorModel();
11 textModel.setText(text);
12 InspectorTest.addResult("Lines:" + textModel.linesCount + ", length:" + textModel.text().length + ", input equals output:" + (textModel.text() === text) );
13 }
14
15 createAndDumpTextModel("1\n2\n\n");
16 createAndDumpTextModel("1\r\n2\r\n\r\n");
17 createAndDumpTextModel("1\n2\n\r\n");
18 createAndDumpTextModel("no line breaks");
19
20 InspectorTest.completeTest();
21 }
22
23 </script>
24 </head>
25
26 <body onload="runTest()">
27 <p>
28 This test checks the text editor model.
29 </p>
30
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/editor/text-editor-mark-clean.html ('k') | LayoutTests/inspector/editor/text-editor-model-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698