mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
extra cursors: Add some tests for invalid input handling
This commit is contained in:
parent
1c9a2dae86
commit
bacd13d3a7
1 changed files with 7 additions and 0 deletions
|
|
@ -1626,6 +1626,13 @@ class TestScreen(BaseTest):
|
|||
self.ae(a(2, (1, 2), (1, 3)), {-1: {(2, 3), (2, 2)}, 2: {(1, 2), (1, 3)}})
|
||||
self.ae(a(0, (1, 2), (2, 3)), {-1: {(2, 2)}, 2: {(1, 3)}})
|
||||
self.ae(a(0, region=True), {})
|
||||
s.cursor.x, s.cursor.y = 1, 2
|
||||
parse_bytes(s, b'\x1b[>3;0 q') # ]
|
||||
self.ae(current(), {3: {(1, 2)}})
|
||||
parse_bytes(s, b'\x1b[>3;2:3 q') # ]
|
||||
self.ae(current(), {3: {(1, 2)}})
|
||||
parse_bytes(s, b'\x1b[>0;4:3:1:4 q') # ]
|
||||
self.ae(current(), {})
|
||||
|
||||
|
||||
def detect_url(self, scale=1):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue