use of com.intellij.openapi.editor.actions.MoveCaretLeftAction in project intellij-community by JetBrains.
the class XmlSyncTagCommunityTest method testDoNotFireDocumentChangeEventIfTagWasNotChanged.
public void testDoNotFireDocumentChangeEventIfTagWasNotChanged() {
myFixture.configureByText(XmlFileType.INSTANCE, "<di<caret>></di>");
type("v");
Ref<Boolean> eventSent = Ref.create(false);
myFixture.getEditor().getDocument().addDocumentListener(new DocumentAdapter() {
@Override
public void documentChanged(DocumentEvent e) {
eventSent.set(true);
}
}, myFixture.getTestRootDisposable());
myFixture.testAction(new MoveCaretLeftAction());
assertFalse(eventSent.get());
}
Aggregations