summaryrefslogtreecommitdiff
path: root/test/macos-snapshots
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-16 13:20:29 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:14 -0300
commit7cbd44dd1cfe97126e7fc996214e458525d2980c (patch)
treeeeb02eabaf39231dece68647129040e546aa80a2 /test/macos-snapshots
parent3042f33df2b16b61c08d6535fba268103728dd1e (diff)
downloadpardes-7cbd44dd1cfe97126e7fc996214e458525d2980c.tar.gz
pardes-7cbd44dd1cfe97126e7fc996214e458525d2980c.zip
Align macOS rendering with Linux and establish parity regressions
Diffstat (limited to 'test/macos-snapshots')
-rw-r--r--test/macos-snapshots/context.zig109
-rw-r--r--test/macos-snapshots/rendering-parity.golden14
-rw-r--r--test/macos-snapshots/rendering-parity.snap54
-rw-r--r--test/macos-snapshots/tag-ink.golden1
-rw-r--r--test/macos-snapshots/tag-ink.snap8
5 files changed, 186 insertions, 0 deletions
diff --git a/test/macos-snapshots/context.zig b/test/macos-snapshots/context.zig
new file mode 100644
index 00000000..ff8f8553
--- /dev/null
+++ b/test/macos-snapshots/context.zig
@@ -0,0 +1,109 @@
+const Workspace = struct {
+ const enabled = true;
+
+ fn draw(
+ value: u32,
+ ) u32 {
+ var result = value;
+ result +%= 1;
+ result +%= 2;
+ result +%= 3;
+ result +%= 4;
+ result +%= 5;
+ result +%= 6;
+ result +%= 7;
+ result +%= 8;
+ result +%= 9;
+ result +%= 10;
+ result +%= 11;
+ result +%= 12;
+ result +%= 13;
+ result +%= 14;
+ result +%= 15;
+ result +%= 16;
+ result +%= 17;
+ result +%= 18;
+ result +%= 19;
+ result +%= 20;
+ result +%= 21;
+ result +%= 22;
+ result +%= 23;
+ result +%= 24;
+ result +%= 25;
+ result +%= 26;
+ result +%= 27;
+ result +%= 28;
+ result +%= 29;
+ result +%= 30;
+ result +%= 31;
+ result +%= 32;
+ result +%= 33;
+ result +%= 34;
+ result +%= 35;
+ result +%= 36;
+ result +%= 37;
+ result +%= 38;
+ result +%= 39;
+ result +%= 40;
+ result +%= 41;
+ result +%= 42;
+ result +%= 43;
+ result +%= 44;
+ result +%= 45;
+ result +%= 46;
+ result +%= 47;
+ result +%= 48;
+ result +%= 49;
+ result +%= 50;
+ result +%= 51;
+ result +%= 52;
+ result +%= 53;
+ result +%= 54;
+ result +%= 55;
+ result +%= 56;
+ result +%= 57;
+ result +%= 58;
+ result +%= 59;
+ result +%= 60;
+ result +%= 61;
+ result +%= 62;
+ result +%= 63;
+ result +%= 64;
+ result +%= 65;
+ result +%= 66;
+ result +%= 67;
+ result +%= 68;
+ result +%= 69;
+ result +%= 70;
+ result +%= 71;
+ result +%= 72;
+ result +%= 73;
+ result +%= 74;
+ result +%= 75;
+ result +%= 76;
+ result +%= 77;
+ result +%= 78;
+ result +%= 79;
+ result +%= 80;
+ result +%= 81;
+ result +%= 82;
+ result +%= 83;
+ result +%= 84;
+ result +%= 85;
+ result +%= 86;
+ result +%= 87;
+ result +%= 88;
+ result +%= 89;
+ result +%= 90;
+ result +%= 91;
+ result +%= 92;
+ result +%= 93;
+ result +%= 94;
+ result +%= 95;
+ result +%= 96;
+ result +%= 97;
+ result +%= 98;
+ result +%= 99;
+ return result;
+ }
+};
diff --git a/test/macos-snapshots/rendering-parity.golden b/test/macos-snapshots/rendering-parity.golden
new file mode 100644
index 00000000..536f6800
--- /dev/null
+++ b/test/macos-snapshots/rendering-parity.golden
@@ -0,0 +1,14 @@
+== backgrounds tags-100 uniform
+== backgrounds tags-bottom uniform
+== backgrounds tags-71 uniform
+== backgrounds tags-0 uniform
+== backgrounds invalid-stays-0 uniform
+== context context-100 compact separators verified
+== context context-71 compact separators verified
+== pdf pdf-100 native page opacity verified
+== pdf pdf-0 native page opacity verified
+== pdf pdf-71 native page opacity verified
+== pdf pdf-fit-height native page opacity verified
+== pdf pdf-full-tint native page opacity verified
+== pdf pdf-original-colors native page opacity verified
+== pdf pdf-scrolled native page opacity verified
diff --git a/test/macos-snapshots/rendering-parity.snap b/test/macos-snapshots/rendering-parity.snap
new file mode 100644
index 00000000..cdd940c8
--- /dev/null
+++ b/test/macos-snapshots/rendering-parity.snap
@@ -0,0 +1,54 @@
+start 40 110
+native-metrics
+wait 8000 $
+command Theme forge
+command TaglineSize 70
+stable 700 20000
+check-backgrounds tags-100
+command Tagbottom
+stable 700 20000
+check-backgrounds tags-bottom
+command Tagbottom
+stable 700 20000
+command WindowOpacity 71
+stable 700 20000
+check-backgrounds tags-71
+command WindowOpacity 0
+stable 700 20000
+check-backgrounds tags-0
+command WindowOpacity 101
+stable 700 20000
+check-backgrounds invalid-stays-0
+command WindowOpacity 100
+open-fixture context.zig:55
+command TreeContext on
+stable 700 20000
+capture context-initial
+check-context context-100
+command WindowOpacity 71
+stable 700 20000
+check-context context-71
+command WindowOpacity 100
+open-fixture ../../docs/9p.pdf
+stable 1000 20000
+check-pdf pdf-100
+command WindowOpacity 0
+stable 700 20000
+check-pdf pdf-0
+command WindowOpacity 71
+stable 700 20000
+check-pdf pdf-71
+command WindowOpacity 100
+command PdfFit
+stable 700 20000
+check-pdf pdf-fit-height
+command PdfTint
+stable 700 20000
+check-pdf pdf-full-tint
+command PdfTint
+stable 700 20000
+check-pdf pdf-original-colors
+command PdfFit
+scroll 6 10 30
+stable 700 20000
+check-pdf pdf-scrolled
diff --git a/test/macos-snapshots/tag-ink.golden b/test/macos-snapshots/tag-ink.golden
new file mode 100644
index 00000000..dfb0704d
--- /dev/null
+++ b/test/macos-snapshots/tag-ink.golden
@@ -0,0 +1 @@
+== tag-ink forge-tags visible
diff --git a/test/macos-snapshots/tag-ink.snap b/test/macos-snapshots/tag-ink.snap
new file mode 100644
index 00000000..e9e4c8e2
--- /dev/null
+++ b/test/macos-snapshots/tag-ink.snap
@@ -0,0 +1,8 @@
+start 24 80
+wait 8000 Newcol Joincol
+wait 8000 $
+stable 700 20000
+command Theme forge
+command TaglineSize 70
+stable 700 20000
+draw-tag-ink forge-tags