Skip to content

Commit cac8dc3

Browse files
committed
tests/extmod/framebuf1: Add tests for scrolling in the x-direction.
1 parent 778729c commit cac8dc3

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

tests/extmod/framebuf1.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@
3333
print(buf)
3434
fbuf.scroll(0, -2)
3535
print(buf)
36+
fbuf.scroll(1, 0)
37+
print(buf)
38+
fbuf.scroll(-1, 0)
39+
print(buf)
40+
fbuf.scroll(2, 2)
41+
print(buf)

tests/extmod/framebuf1.py.exp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ bytearray(b'\x01\x00\x00\x00\x01\x80\x00\x00\x00\x80')
44
1 0
55
bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00')
66
bytearray(b'\x00\x00@\x00\x00\x00\x00\x00\x00\x00')
7+
bytearray(b'\x00\x00\x00@\x00\x00\x00\x00\x00\x00')
8+
bytearray(b'\x00\x00@\x00\x00\x00\x00\x00\x00\x00')
9+
bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01')

0 commit comments

Comments
 (0)