From 7b4170e46f33ba4cbd969f2d23c16d69f41b2d32 Mon Sep 17 00:00:00 2001 From: Jared Rewerts Date: Tue, 28 Aug 2018 12:06:55 -0600 Subject: [PATCH] Added a mouse scroll test. --- interfacer/test/tty/tty_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interfacer/test/tty/tty_test.go b/interfacer/test/tty/tty_test.go index d0eecca..f31f244 100644 --- a/interfacer/test/tty/tty_test.go +++ b/interfacer/test/tty/tty_test.go @@ -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))