Resolve formatting issues (#222)

This commit is contained in:
Max Risuhin 2019-02-16 11:15:40 +02:00 committed by Liam Galvin
parent 82ab02da9b
commit 0ac44844ad
1 changed files with 16 additions and 15 deletions

View File

@ -169,25 +169,26 @@ func TestScreenFeatures(t *testing.T) {
func TestSixel(t *testing.T) { func TestSixel(t *testing.T) {
runMain(func() { runMain(func() {
testFunc := func(term *terminal.Terminal, g *gui.GUI) { testFunc := func(term *terminal.Terminal, g *gui.GUI) {
termRef = term; guiRef = g termRef = term
guiRef = g
sleep() sleep()
send(term, "export PS1='> '\n") send(term, "export PS1='> '\n")
sleep() sleep()
send(term, "clear\n") send(term, "clear\n")
sleep() sleep()
send(term, "cat example.sixel\n") send(term, "cat example.sixel\n")
sleep(4) sleep(4)
guiRef.Screenshot("test-sixel.png") guiRef.Screenshot("test-sixel.png")
validateScreen("test-sixel.png") validateScreen("test-sixel.png")
g.Close() g.Close()
} }
initialize(testFunc) initialize(testFunc)
}) })
} }
// Last Test should terminate main goroutine since it's infinity looped to execute others GUI tests in main goroutine // Last Test should terminate main goroutine since it's infinity looped to execute others GUI tests in main goroutine