editor_test : add a `mockRenderer` and use it in `testFirstVisibleRow` and `testLastVisibleRow`