summaryrefslogtreecommitdiff
path: root/test/soak.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/soak.py')
-rw-r--r--test/soak.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/soak.py b/test/soak.py
index d99f862c..dc40c17c 100644
--- a/test/soak.py
+++ b/test/soak.py
@@ -140,7 +140,9 @@ def fixture(at, rng):
(at / 'code.zig').write_text(''.join(f'pub fn f{i}(x: u32) u32 {{\n return x * {i} + {rng.randrange(1000)}; // {rng.choice(WORDS)}\n}}\n\n'
for i in range(120)))
(at / 'big.txt').write_text(''.join(f'{i:06d} {" ".join(rng.choice(WORDS) for _ in range(9))}\n' for i in range(8000)))
- (at / 'README').write_text('A directory to soak in.\nnotes.txt code.zig big.txt sub/\nsub/inner.txt:3\n')
+ (at / 'README').write_text('A directory to soak in.\nnotes.txt code.zig big.txt design.pdf sub/\nsub/inner.txt:3\n')
+ # A PDF to Look at: the pdf addon's pane, its jobs and its frames.
+ shutil.copy(Path(__file__).resolve().parent.parent / 'docs' / 'design.pdf', at / 'design.pdf')
sub = at / 'sub'
sub.mkdir(exist_ok=True)
(sub / 'inner.txt').write_text(''.join(f'inner {i} {rng.choice(WORDS)}\n' for i in range(60)))
@@ -646,7 +648,7 @@ def act_panes(c, rng, k):
def act_find(c, rng, k):
k(rng.choice([b' ff', b' fr', b' fg']))
time.sleep(rng.uniform(0.3, 1.0))
- k(rng.choice([b'notes\r', ESC, b'j\r', b'inner\r']))
+ k(rng.choice([b'notes\r', ESC, b'j\r', b'inner\r', b'design\r']))
def act_shell(c, rng, k):