extra cursors: Add some tests for invalid input handling

This commit is contained in:
Kovid Goyal 2025-08-24 20:25:38 +05:30
parent 1c9a2dae86
commit bacd13d3a7
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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):