void () { init(""" line1 line2 line3 line4 line<caret>5 line6 line7"""); setEditorVisibleSize(1000, 3); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_PAGE_UP_WITH_SELECTION); checkResultByText(""" line1 line<caret>2 line<caret>3 line<caret>4 line<caret>5 line6 line7"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_UP_WITH_SELECTION); checkResultByText(""" line<caret>1 line<caret>2 line<caret>3 line<caret>4 line<caret>5 line6 line7"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_PAGE_DOWN_WITH_SELECTION); checkResultByText(""" line1 line2 line3 line<caret>4 line<caret>5 line6 line7"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_PAGE_DOWN_WITH_SELECTION); checkResultByText(""" line1 line2 line3 line4 line<caret>5 line<caret>6 line<caret>7"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_PAGE_UP_WITH_SELECTION); checkResultByText(""" line1 line2 line3 line<caret>4 line<caret>5 line6 line7"""); }