mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 12:09:35 +03:00
Add (possibly erroneous) test for new underline.
Also make more clear *what* exactly is rendered in the cell (i.e. a strikethrough).
This commit is contained in:
parent
dd192ad0b7
commit
da486153de
@ -399,7 +399,7 @@ def prerender_function(
|
||||
render_cursor, cursor_beam_thickness=cursor_beam_thickness,
|
||||
cursor_underline_thickness=cursor_underline_thickness, cell_width=cell_width,
|
||||
cell_height=cell_height, dpi_x=dpi_x, dpi_y=dpi_y)
|
||||
cells = f(1), f(2), f(3), f(4), f(5), f(0, True), f(missing=True), c(1), c(2), c(3)
|
||||
cells = f(1), f(2), f(3), f(4), f(5), f(0, strikethrough=True), f(missing=True), c(1), c(2), c(3)
|
||||
return tuple(map(ctypes.addressof, cells)), cells
|
||||
|
||||
|
||||
|
@ -44,15 +44,15 @@ class Rendering(BaseTest):
|
||||
sprite_map_set_limits(10, 2)
|
||||
sprite_map_set_layout(5, 5)
|
||||
self.ae(test_sprite_position_for(0), (0, 0, 0))
|
||||
self.ae(test_sprite_position_for(0), (0, 0, 0))
|
||||
self.ae(test_sprite_position_for(1), (1, 0, 0))
|
||||
self.ae(test_sprite_position_for(2), (0, 1, 0))
|
||||
self.ae(test_sprite_position_for(3), (1, 1, 0))
|
||||
self.ae(test_sprite_position_for(4), (0, 0, 1))
|
||||
self.ae(test_sprite_position_for(5), (1, 0, 1))
|
||||
self.ae(test_sprite_position_for(0, 1), (0, 1, 1))
|
||||
self.ae(test_sprite_position_for(0, 2), (1, 1, 1))
|
||||
self.ae(test_sprite_position_for(0, 2), (1, 1, 1))
|
||||
self.ae(test_sprite_position_for(6), (0, 1, 1))
|
||||
self.ae(test_sprite_position_for(7), (1, 1, 1))
|
||||
self.ae(test_sprite_position_for(0, 1), (0, 0, 2))
|
||||
self.ae(test_sprite_position_for(0, 2), (1, 0, 2))
|
||||
|
||||
def test_box_drawing(self):
|
||||
prerendered = len(self.sprites)
|
||||
|
Loading…
Reference in New Issue
Block a user