checkAutoindenter(text, 2, 0, 2, 0, trigger, expected, false);
}
private static void checkAutoindenter(String text, int line1, int column1, int line2, int column2,
final SignalEvent trigger, String expected, boolean allowScheduling) {
PathUtil path = new PathUtil("test.js");
DocumentParser documentParser = createDocumentParser(path);
Document document = Document.createFromString(text);
Editor editor = Editor.create(new MockAppContext());
editor.setDocument(document);
checkAutoindenter(line1, column1, line2, column2, trigger, expected, allowScheduling,