test(tests): R4.5 export-side security cases; ledger rows of the writer cases point at cargo (only the R4.7 compare rows pending)
This commit is contained in:
1 parent
50c8fe0b33
commit
ba6ac078be
3 files changed
+132
-66
No files matched your search
+21
-8
@@ -70,6 +70,15 @@ const LOCATE = 'cargo pdf_import::o7_locate_and_read_match_the_typescript'
|
||||
const INFLATE =
|
||||
'cargo pdf_inflate::every_o9_row_matches_node, pdf_inflate::every_o7_flate_input_matches_node'
|
||||
const WRITER = 'R4.4/R4.5 cargo (pending)'
|
||||
// R4.5 targets: the serialiser suite against the O2 PDFs and the PNG suite against O6.
|
||||
const O2 =
|
||||
'cargo pdf_serialize::o2_streams_images_links_info_and_attachment_match_the_r3_build'
|
||||
const EXTERNAL =
|
||||
'cargo pdf_serialize::external_tools_accept_the_files_and_render_them_like_the_r3_build'
|
||||
const ROUND_TRIP = 'cargo pdf_serialize::restoration_round_trip_loses_nothing'
|
||||
const SECURITY_EXPORT = 'cargo pdf_serialize::export_side_security_cases_hold'
|
||||
const PNG_GATE =
|
||||
'cargo pdf_png::every_o6_gate_verdict_matches_png_issue, pdf_png::every_o6_decode_matches_pdf_lib'
|
||||
// R4.4 targets: the layout and text suites (one cargo test checks every frozen row).
|
||||
const LAYOUT =
|
||||
'cargo pdf_layout::o1_draw_logs_match_the_typescript_at_full_precision'
|
||||
@@ -157,7 +166,7 @@ const RULES = [
|
||||
file: SECURITY,
|
||||
title: 'hostile SVG assets > ',
|
||||
...ported(
|
||||
WRITER,
|
||||
SECURITY_EXPORT,
|
||||
NONE,
|
||||
'export SVG path; R4 refuses where the TS sanitised (A.3, RUST.md §9.4)',
|
||||
),
|
||||
@@ -165,10 +174,14 @@ const RULES = [
|
||||
{
|
||||
file: SECURITY,
|
||||
title: 'branding URL injection (HIGH) > ',
|
||||
...ported(WRITER, 'O2', 'link sink'),
|
||||
...ported(SECURITY_EXPORT, 'O2', 'link sink'),
|
||||
},
|
||||
{ file: SECURITY, title: 'PNG budget (MEDIUM) > ', ...ported(WRITER, 'O6') },
|
||||
{ file: `${PDF}goldens.test.ts`, ...ported(WRITER, 'O1/O2') },
|
||||
{
|
||||
file: SECURITY,
|
||||
title: 'PNG budget (MEDIUM) > ',
|
||||
...ported(PNG_GATE, 'O6'),
|
||||
},
|
||||
{ file: `${PDF}goldens.test.ts`, ...ported(O2, 'O1/O2') },
|
||||
{
|
||||
file: `${PDF}text.test.ts`,
|
||||
title: 'formatDate > ',
|
||||
@@ -185,9 +198,9 @@ const RULES = [
|
||||
...ported(LAYOUT, 'O4', 'the layout draws the safe text'),
|
||||
},
|
||||
{ file: `${PDF}text.test.ts`, ...ported(SAFE_TEXT, 'O4') },
|
||||
{ file: `${PDF}size.test.ts`, ...ported(WRITER, 'O2', 'E2 budget') },
|
||||
{ file: `${PDF}raster.test.ts`, ...ported(WRITER, 'O2/O4') },
|
||||
{ file: `${PDF}reexport.test.ts`, ...ported(WRITER, 'O2') },
|
||||
{ file: `${PDF}size.test.ts`, ...ported(EXTERNAL, 'O2', 'E2 budget') },
|
||||
{ file: `${PDF}raster.test.ts`, ...ported(O2, 'O2/O4') },
|
||||
{ file: `${PDF}reexport.test.ts`, ...ported(ROUND_TRIP, 'O2') },
|
||||
// Oracle generators, deleted with the TS they freeze; the oracle files stay
|
||||
...[
|
||||
[`${PDF}r3.highlight-oracles.test.ts`, 'R3 highlight'],
|
||||
@@ -247,7 +260,7 @@ const RULES = [
|
||||
{ file: `${APP}n-1.reader.test.ts`, ...kept(NONE, N1_SWITCH) },
|
||||
{
|
||||
file: `${APP}pdf.export.app.test.ts`,
|
||||
...ported('R4.5 cargo from_envelope (pending)', NONE),
|
||||
...ported(ROUND_TRIP, NONE, 'export_from_envelope'),
|
||||
},
|
||||
{ file: `${APP}migration.leaves.test.ts`, ...kept(NONE) },
|
||||
{ file: `${APP}pdf.browserRasterizer.test.ts`, ...kept(NONE) },
|
||||
|
||||
Reference in new issue
Block a user