3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="editor-test.js"></script>
10 a = "string with spaces";
14 WebInspector.settings.showWhitespaceInEditor.set(false);
15 var textEditor = InspectorTest.createTestEditor();
16 textEditor.overrideViewportForTest(0, undefined, 3);
17 textEditor.mimeType = "text/javascript";
18 textEditor.setText(foo.toString());
19 InspectorTest.addResult("Actual text:");
20 InspectorTest.addResult(textEditor.text());
21 InspectorTest.addResult("========== Editor HTML showWhitespaceInEditor OFF ==========");
22 InspectorTest.dumpEditorHTML(textEditor, true);
23 WebInspector.settings.showWhitespaceInEditor.set(true);
24 InspectorTest.addResult("========== Editor HTML after setting showWhitespaceInEditor ON ==========");
25 InspectorTest.dumpEditorHTML(textEditor, true);
26 InspectorTest.completeTest();
32 <body onload="runTest();">
34 This test checks how text editor splits whitespace sequences to highlight them if the appropriate