mirror of https://github.com/liamg/aminal.git
Resolve formatting issues (#222)
This commit is contained in:
parent
82ab02da9b
commit
0ac44844ad
31
main_test.go
31
main_test.go
|
@ -169,25 +169,26 @@ func TestScreenFeatures(t *testing.T) {
|
|||
func TestSixel(t *testing.T) {
|
||||
runMain(func() {
|
||||
|
||||
testFunc := func(term *terminal.Terminal, g *gui.GUI) {
|
||||
termRef = term; guiRef = g
|
||||
testFunc := func(term *terminal.Terminal, g *gui.GUI) {
|
||||
termRef = term
|
||||
guiRef = g
|
||||
|
||||
sleep()
|
||||
send(term, "export PS1='> '\n")
|
||||
sleep()
|
||||
send(term, "clear\n")
|
||||
sleep()
|
||||
send(term, "cat example.sixel\n")
|
||||
sleep(4)
|
||||
sleep()
|
||||
send(term, "export PS1='> '\n")
|
||||
sleep()
|
||||
send(term, "clear\n")
|
||||
sleep()
|
||||
send(term, "cat example.sixel\n")
|
||||
sleep(4)
|
||||
|
||||
guiRef.Screenshot("test-sixel.png")
|
||||
validateScreen("test-sixel.png")
|
||||
guiRef.Screenshot("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
|
||||
|
|
Loading…
Reference in New Issue