diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-18 07:22:41 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-18 09:44:10 -0300 |
| commit | b2f709d7130571658220636f33b5f89414a5101a (patch) | |
| tree | d90c39668caec2fb08bc4bfc9e0ef8c18c9cbe02 /test/behaviour | |
| parent | f0e6eb0de0b5ac9f81ba2c728f3040c4a51ab284 (diff) | |
| download | pardes-b2f709d7130571658220636f33b5f89414a5101a.tar.gz pardes-b2f709d7130571658220636f33b5f89414a5101a.zip | |
pdf: the PDF kind runs where its pane is shown (PA_PLAIN): its state is one plain block of 840 bytes with no padding (the place, each view's layout, fit, tint, the state jobs out, the search, the selection made, the press, the pointer's word, the glide and the fling, the count), changed only by its calls from the block and taped values; the document, the pages' sizes, what the state jobs answered, the strips and the pictures are each process's own, found by the block's address and made again where a client joined late lacks them; its pages are draws asked as each view is painted, never jobs on the tape; its keys, mouse and ticks read no picture (a pan, a click and a revealed hit take MuPDF's measure of the raster); the glide and the fling run on the ticks' clock, never on frames painted (.scratch/sketch/reorg/pardes-addons-3/design-glide.md); with no workers a draw done at once is painted the same frame; a client's joined pane keeps the session's place; a window client wheeling the PDF to page 2 reads 80.4 MB -> 0.18 MB and waits a round trip on 0 of 36 inputs (34 before), its join reads 7.4 -> 26.8 MB (it now maps pdf.so); tui core-test 820/959 (139 skipped), shell-test 994/997, behaviour-test 274/274 and --replay 0 failures, pane-test 180/181 (the PDF Shadow test is now the line's), addon-test 1/1 (pdf.out unchanged), replicas pass, process-test 2 of 144 failed (lspcomplete, lspcompletemoved: the base's), image-harness passes, test/daemon.py plain, --far, --games, --window-clients pass; gui unit-test 1588/1592 (its perf check's BaselineBuildMismatch, known); the frame corpus 74/77 Debug and ReleaseFast: frames 58-60 differ, InactiveDim's announcement now replaced by WindowOpacity's instead of stacked, because a PDF render's answer is no longer a core event between the two 9P writes (the PDF's own frames are identical); corpus2x -0.247%; pdf-scroll-bench 18,394M -> 19,214M instructions (its clock never advances, so its slow scroll counts as a fling)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/behaviour')
| -rw-r--r-- | test/behaviour/addons_pdf.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/behaviour/addons_pdf.zig b/test/behaviour/addons_pdf.zig index af194a5b..cf5c8009 100644 --- a/test/behaviour/addons_pdf.zig +++ b/test/behaviour/addons_pdf.zig @@ -273,8 +273,9 @@ test "addons: a PDF whose file changes on disk while a page of it renders: the p try std.testing.expect((try shown(&s, n)).len >= 1); // A page drawn again (another tint), its render done on a worker but // not yet answered as the file changes and the pane opens it again. - s.hold_jobs = true; + s.holdJobs(); try s.write(s.at("/pane/{d}/ctl", .{n}), "PdfTint full\n"); + _ = try shown(&s, n); s.runJobs(); try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "doc.pdf", .data = outline }); try std.testing.expect(try s.filesChanged()); |
