# This is a specification of what to do in the test script. # It is inspired by the syntax of vhs tapes. # Give everything time to start up Sleep 2 Type less ./data/test.file Sleep 0.5 Type Enter Sleep 1 Type G Sleep 1 Expect ^Line number 1000.$ Type gg Sleep 1 Expect ^Line number 1.$ Type Space Sleep 1 Expect ^Line number 23.$ ExpectNot ^Line number 22.$ ExpectNot ^Line number 46.$ Type tt Sleep 1 ExpectNot ^Line number 23.$ ExpectNot ^Line number 24.$ Expect ^Line number 25.$ Expect ^Line number 47.$ Type Gn Sleep 1 Expect ^Line number 999.$ ExpectNot ^Line number 1000.$ # Type Up # Sleep 1 # ExpectNot ^Line number 976.$ # Expect ^Line number 999.$ # # Type Down # Sleep 1 # ExpectNot ^Line number 1000.$ # Expect ^Line number 977.$ Type Escape # vim: ft=tape