Skip to content

Commit

Permalink
Initialize virtual bottom in ScreenBufferTests.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed Apr 24, 2022
1 parent 5335253 commit fd9376a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/host/ut_host/ScreenBufferTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ class ScreenBufferTests
auto defaultSize = COORD{ CommonState::s_csWindowWidth, CommonState::s_csWindowHeight };
currentBuffer.SetViewport(Viewport::FromDimensions(defaultSize), true);
VERIFY_ARE_EQUAL(COORD({ 0, 0 }), currentBuffer.GetTextBuffer().GetCursor().GetPosition());
// Make sure the virtual bottom is correctly positioned.
currentBuffer.UpdateBottom();

return true;
}
Expand Down

0 comments on commit fd9376a

Please sign in to comment.