mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-23 00:34:27 +01:00
Add left scrolling test
This commit is contained in:
parent
fea151261f
commit
8f59b801dd
@ -61,6 +61,8 @@ func TestHScoll(t *testing.T) {
|
|||||||
testutils.CompareGoldens(t, table.View(), "unittestTable-truncatedTable-right2")
|
testutils.CompareGoldens(t, table.View(), "unittestTable-truncatedTable-right2")
|
||||||
table.MoveRight(1)
|
table.MoveRight(1)
|
||||||
testutils.CompareGoldens(t, table.View(), "unittestTable-truncatedTable-right3")
|
testutils.CompareGoldens(t, table.View(), "unittestTable-truncatedTable-right3")
|
||||||
|
table.MoveLeft(1)
|
||||||
|
testutils.CompareGoldens(t, table.View(), "unittestTable-truncatedTable-right2")
|
||||||
}
|
}
|
||||||
|
|
||||||
func deepEqual(a, b []Row) bool {
|
func deepEqual(a, b []Row) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user