Debian Codegraph @

testing/tests/0006-view-file-word-wrap/test.js

raw
1 mydir=WorkDir()
2 profile=mydir + "/profile"
3 left=mydir + "/left"
4 right=mydir + "/right"
5
6 StartAppWithSize(["--tty", "--nodetect", "--mortal", "-u", profile, "-cd", left, "-cd", right], 95, 24);
7 ExpectString("Help - FAR2L");
8 TypeEscape()
9 ExpectString("OSC52");
10 status = AppStatus();
11
12 TypeEscape()
13 TypeDown()
14 TypeFKey(3)
15 ExpectString("left/viewme.txt")
16
17 ToggleShift(true)
18 TypeFKey(2)
19 ToggleShift(false)
20
21 TypePageDown()
22 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test1.txt')
23
24 TypePageDown()
25 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test2.txt')
26
27 TypeDown()
28 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test3.txt')
29
30 TypeHome()
31 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test4.txt')
32
33 TypeFKey(7)
34 ExpectString("═══ Search ═══")
35 TypeText("::setselectpos")
36 TypeEnter()
37
38 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test5.txt')
39
40 TypeUp()
41 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test6.txt')
42
43 TypeUp()
44 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test7.txt')
45
46 TypeHome()
47 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test4.txt')
48
49 TypeFKey(7)
50 ExpectString("═══ Search ═══")
51 TypeText("VMenu::SetUserData")
52 TypeEnter()
53
54 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test8.txt')
55
56 TypeUp()
57 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test9.txt')
58
59 TypeUp()
60 TypeUp()
61 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test10.txt')
62
63 TypeDown()
64 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test11.txt')
65
66 TypeDown()
67 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test12.txt')
68
69 TypeDown()
70 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test13.txt')
71
72 TypePageDown()
73 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test14.txt')
74
75 TypePageUp()
76 BoundedLinesMatchTextFile(0, 1, 0, -2, mydir + '/test15.txt')
77
78 TypeEscape()
79
80 TypeFKey(10)
81 ExpectString("Do you want to quit FAR?")
82 TypeEnter()
83 ExpectAppExit(0)
84 0;