Added a mouse scroll test.
This commit is contained in:
parent
1ed1427855
commit
7b4170e46f
|
@ -39,6 +39,12 @@ var _ = Describe("Showing a basic webpage", func() {
|
||||||
Expect("Another").To(BeInFrameAt(0, 0))
|
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() {
|
It("should scroll the page by one line", func() {
|
||||||
SpecialKey(tcell.KeyDown)
|
SpecialKey(tcell.KeyDown)
|
||||||
Expect("meal,▄originating▄in▄").To(BeInFrameAt(12, 11))
|
Expect("meal,▄originating▄in▄").To(BeInFrameAt(12, 11))
|
||||||
|
|
Loading…
Reference in a new issue