test(tests): R4.4 layout timing on L and CAP; ledger rows of the text and layout cases point at cargo
This commit is contained in:
1 parent
70007e0c93
commit
1550d2160a
3 files changed
+67
-17
No files matched your search
+24
-5
@@ -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.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'
|
||||
const CHECKS = 'cargo pdf_layout::the_checks_refuse_what_export_ts_refused'
|
||||
const SAFE_TEXT =
|
||||
'cargo pdf_text::safe_text_reproduces_every_oracle_range, pdf_text::safe_text_works_on_whole_strings'
|
||||
const WRAP = 'cargo pdf_text::wrap_lines_reproduces_every_case'
|
||||
const DATES =
|
||||
'cargo pdf_text::format_date_reproduces_the_intl_grid_and_the_others'
|
||||
const CARGO_GOLDENS = 'R4.4/R4.5 cargo goldens (pending)'
|
||||
const SAME = 'vitest (same case)'
|
||||
const NONE = '-'
|
||||
@@ -137,12 +146,12 @@ const RULES = [
|
||||
{
|
||||
file: SECURITY,
|
||||
title: '__proto__ ids and the inflate bomb > report ids named __proto__',
|
||||
...ported(WRITER, 'O1'),
|
||||
...ported(LAYOUT, 'O1'),
|
||||
},
|
||||
{
|
||||
file: SECURITY,
|
||||
title: 'export: a snapshot over the caps fails',
|
||||
...ported(WRITER, NONE, 'typed export errors, no oracle file'),
|
||||
...ported(CHECKS, NONE, 'typed export errors, no oracle file'),
|
||||
},
|
||||
{
|
||||
file: SECURITY,
|
||||
@@ -163,9 +172,19 @@ const RULES = [
|
||||
{
|
||||
file: `${PDF}text.test.ts`,
|
||||
title: 'formatDate > ',
|
||||
...ported(WRITER, 'O5'),
|
||||
...ported(DATES, 'O6'),
|
||||
},
|
||||
{ file: `${PDF}text.test.ts`, ...ported(WRITER, 'O4') },
|
||||
{
|
||||
file: `${PDF}text.test.ts`,
|
||||
title: 'safeText > wrapLines',
|
||||
...ported(WRAP, 'O4'),
|
||||
},
|
||||
{
|
||||
file: `${PDF}text.test.ts`,
|
||||
title: 'export with hostile text > ',
|
||||
...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') },
|
||||
@@ -428,7 +447,7 @@ function cargoTests(file) {
|
||||
'-p',
|
||||
'faunosteo-core',
|
||||
'--features',
|
||||
'pdf-read',
|
||||
'pdf-read,pdf-write',
|
||||
'--locked',
|
||||
'--test',
|
||||
file,
|
||||
|
||||
Reference in new issue
Block a user