Implement native PDF links and vertical discard lists

This commit is contained in:
gloamxun committed 2026-11-18 23:39:45 +08:00
1 parent b6567f67e2
commit a53d9c9bf9
29 files changed
+980 -109

No files matched your search

@@ -334,7 +334,7 @@ fn old_schema_and_missing_unicode_state_are_rejected_even_with_valid_checksums()
let envelope: serde_json::Value = serde_json::from_slice(&encoded).unwrap();
let original: serde_json::Value =
serde_json::from_str(envelope["payload"].as_str().unwrap()).unwrap();
assert_eq!(original["schema"], 20);
assert_eq!(original["schema"], 22);
for (schema, expected) in [
(1, "incompatible native format"),
(2, "incompatible native format"),
@@ -355,7 +355,9 @@ fn old_schema_and_missing_unicode_state_are_rejected_even_with_valid_checksums()
(17, "incompatible native format"),
(18, "incompatible native format"),
(19, "incompatible native format"),
(20, "glyph_unicode"),
(20, "incompatible native format"),
(21, "incompatible native format"),
(22, "glyph_unicode"),
] {
let mut payload = original.clone();
payload["schema"] = schema.into();