Skip to content

Commit

Permalink
Add test for window title control code -> legacy windows conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Apr 19, 2022
1 parent 94ff3cb commit 8c085b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_windows_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,11 @@ def test_control_cursor_move_to_column(legacy_term_mock):
legacy_windows_render(buffer, legacy_term_mock)

legacy_term_mock.move_cursor_to_column.assert_called_once_with(2)


def test_control_set_terminal_window_title(legacy_term_mock):
buffer = [Segment("", None, [(ControlType.SET_WINDOW_TITLE, "Hello, world!")])]

legacy_windows_render(buffer, legacy_term_mock)

legacy_term_mock.set_title.assert_called_once_with("Hello, world!")

0 comments on commit 8c085b9

Please sign in to comment.