[TextEditor] Fixed failed unit test.