diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-03 16:52:58 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-03 16:52:58 -0300 |
| commit | d1273bbd99daf9b1855d82bf315db8ede20abde5 (patch) | |
| tree | 14891fab4f951767dcf4d2b14470703055479b90 /test/record_demos.py | |
| parent | a0320c49c1288e8e74f18983f18988a024952bb8 (diff) | |
| download | pardes-d1273bbd99daf9b1855d82bf315db8ede20abde5.tar.gz pardes-d1273bbd99daf9b1855d82bf315db8ede20abde5.zip | |
fs: a pane's ctl read ends with its mode (mode:normal|insert|select|tty, select being normal mode extending), and kbdin takes Plan 9's Kalt, Kshift and Kctl runes (U+F015-F017), each adding its modifier to the key after it, an Alt or Ctrl key typing no text: the two surfaces the behavioural tests' inventory found most wanted (90 tests read body.mode, 18 send Alt or Shift); the tests that pinned the ctl line's end look for its words instead
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/record_demos.py')
| -rw-r--r-- | test/record_demos.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/record_demos.py b/test/record_demos.py index 3c64f55c..a2e48d73 100644 --- a/test/record_demos.py +++ b/test/record_demos.py @@ -819,8 +819,9 @@ def pdf_tint_fit(s): s.pointer = s.cell_px(44, 12) s.shot(1.2) for _ in range(3): - before = s.read('/pane/1/ctl').split()[-1] - s.click(2, *pdf_tag(s, 'PdfTint'), done=lambda: s.read('/pane/1/ctl').split()[-1] != before, + tint = lambda: next(w for w in s.read('/pane/1/ctl').split() if w.startswith(b'tint:')) + before = tint() + s.click(2, *pdf_tag(s, 'PdfTint'), done=lambda: tint() != before, what='the tint', after=1.0) for fit in ('height', 'width'): s.click(2, *pdf_tag(s, 'PdfFit'), done=lambda: f'fit:{fit}' in s.read('/pane/1/ctl'), what='the fit', |
