about summary refs log blame commit diff stats
path: root/tests/by-name/le/less/test.desc
blob: a0c49e7b720cf37587d87ab9854840e60e5285ba (plain) (tree)
1
2
3
4
5
6
7
8
9
10





                                                           
       
          






































                               
# 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 1
Type Enter
Sleep 2

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