void () { typeInText("abc"); checkEditorState("abc", 3, 0, 0); enter(); checkEditorState("abc\n", 4, 0, 0); typeInText("def"); checkEditorState("abc\ndef", 7, 0, 0); enter(); checkEditorState("abc\ndef\n", 8, 0, 0); typeInText("eee"); checkEditorState("abc\ndef\neee", 11, 0, 0); undoFirstEditor(); checkEditorState("abc\ndef\n", 8, 0, 0); undoFirstEditor(); checkEditorState("abc\ndef", 7, 0, 0); undoFirstEditor(); checkEditorState("abc\n", 4, 0, 0); undoFirstEditor(); checkEditorState("abc", 3, 0, 0); undoFirstEditor(); checkEditorState("", 0, 0, 0); }