3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="editor-test.js"></script>
9 var textEditor = InspectorTest.createTestEditor();
10 textEditor.setMimeType("text/javascript");
11 textEditor.setReadOnly(false);
12 textEditor.element.focus();
14 function clearEditor()
16 textEditor.setText("");
17 textEditor.setSelection(WebInspector.TextRange.createFromLocation(0, 0));
20 InspectorTest.runTestSuite([
21 function testTypeBraceSequence(next)
24 InspectorTest.typeIn(textEditor, "({[", step2);
27 InspectorTest.dumpTextWithSelection(textEditor);
32 function testBraceOverride(next)
35 InspectorTest.typeIn(textEditor, "({[]})", step3);
38 InspectorTest.dumpTextWithSelection(textEditor);
48 <body onload="runTest();">
50 This test checks text editor smart braces functionality.