about summary refs log tree commit diff stats
path: root/tests/by-name/le/less/test.desc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/by-name/le/less/test.desc')
-rw-r--r--tests/by-name/le/less/test.desc50
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/by-name/le/less/test.desc b/tests/by-name/le/less/test.desc
new file mode 100644
index 00000000..6cb28b9a
--- /dev/null
+++ b/tests/by-name/le/less/test.desc
@@ -0,0 +1,50 @@
+# 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