Added a mouse scroll test.

pull/185/head
Jared Rewerts 2018-08-28 12:06:55 -06:00
rodzic 1ed1427855
commit 7b4170e46f
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -39,6 +39,12 @@ var _ = Describe("Showing a basic webpage", func() {
Expect("Another").To(BeInFrameAt(0, 0))
})
It("should scroll the page by one line using the mouse", func() {
SpecialMouse(tcell.WheelDown)
SpecialMouse(tcell.WheelDown)
Expect("meal,▄originating▄in▄").To(BeInFrameAt(12, 11))
})
It("should scroll the page by one line", func() {
SpecialKey(tcell.KeyDown)
Expect("meal,▄originating▄in▄").To(BeInFrameAt(12, 11))