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) {
|
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
|
||||||
|
|
Loading…
Reference in New Issue