This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 2c760c133df3253aa7075d23c106a30339fca6f2 Author: Jim Jagielski <[email protected]> AuthorDate: Tue Nov 3 11:39:02 2026 -0500 test/aoo-test: add the ODF 1.4 and 1.4 Extended save modes and the ODF 1.4 Part 4 formula cases --- test/aoo-test/README.md | 2 +- test/aoo-test/USAGE.md | 7 +- test/aoo-test/conftest.py | 24 +- test/aoo-test/data/baseline/kinds-x14-14.json | 835 +++++++++++++++++++++++++ test/aoo-test/data/baseline/kinds-x14-14x.json | 734 ++++++++++++++++++++++ test/aoo-test/data/calcval-cases.tsv | 54 ++ test/aoo-test/data/expect/builders.tsv | 37 ++ test/aoo-test/data/expect/calcval.tsv | 3 + test/aoo-test/data/expect/odf14.tsv | 3 + test/aoo-test/data/expect/reload.tsv | 33 + test/aoo-test/data/expect/stability.tsv | 1 + test/aoo-test/src/aootest/calcval.py | 2 +- test/aoo-test/src/aootest/kinds.py | 4 +- test/aoo-test/src/aootest/odfversion.py | 6 +- test/aoo-test/tests/odf/test_save_modes.py | 8 +- test/aoo-test/tests/odf/test_stability.py | 2 +- 16 files changed, 1733 insertions(+), 22 deletions(-) diff --git a/test/aoo-test/README.md b/test/aoo-test/README.md index 8169dd97f7..ee988140ef 100644 --- a/test/aoo-test/README.md +++ b/test/aoo-test/README.md @@ -30,7 +30,7 @@ The only required input is where the office is installed. The suite runs the sam | `tests/selftest` | no | The checkers (schema validation, package rules, document types, xml ids, formula syntax, decryption) against documents built to fail. | | `tests/harness` | no | Install discovery, the worker protocol and process handling, against fake installs and a fake worker. | | `tests/smoke` | yes | Start, connect, new/save/reload per application and save mode, conversion, and the old smoke test document (Writer, Calc, Impress, Draw, HTML, chart, Math, Bibliography, extensions). | -| `tests/odf` | yes | Documents saved in each ODF save mode and checked against the ODF 1.2, 1.3 and 1.4 schemas and the package rules, with a second validator (odfvalidator) as a cross-check; documents the suite builds, saved and read back; saving twice for stable output; the error kinds of the extended modes compared with a stored baseline; password-protected documents decrypted by an independent implementation; about 250 OpenFormula cases evaluated in Calc; and, with a corpus, ODF 1.2 [...] +| `tests/odf` | yes | Documents saved in each ODF save mode and checked against the ODF 1.2, 1.3 and 1.4 schemas and the package rules, with a second validator (odfvalidator) as a cross-check; documents the suite builds, saved and read back; saving twice for stable output; the error kinds of the extended modes compared with a stored baseline; password-protected documents decrypted by an independent implementation; about 300 OpenFormula cases evaluated in Calc; and, with a corpus, ODF 1.2 [...] ## What it does not include diff --git a/test/aoo-test/USAGE.md b/test/aoo-test/USAGE.md index 380900f9df..c024d6cf50 100644 --- a/test/aoo-test/USAGE.md +++ b/test/aoo-test/USAGE.md @@ -65,6 +65,7 @@ Each download is checked against its pinned sha256 before it is used. The cache | `--start-timeout S` | | Seconds an office may take to start and accept a connection. Default 240; starts have taken from 5 to 90 seconds on a busy desktop. | | `--require-office` | | Fail instead of skip when there is no usable office. | | `--require-odf13` | | Fail instead of skip the ODF 1.3 save modes when the build cannot write 1.3. | +| `--require-odf14` | | Fail instead of skip the ODF 1.4 save modes when the build cannot write 1.4. | | `--documents DIR` | | Extra ODF documents to run through every save mode. | | `--shipped-limit N` | | How many shipped templates and documents to use. Default 40. | | `--twin-corpus DIR` | `AOO_TWIN_CORPUS` | Corpus for the import twin tests. | @@ -86,16 +87,16 @@ The save-mode tests run over documents that are not stored in this repository: `data/built-excluded.tsv` names the documents of those scripts that are left out of the default run because converting them kills or stalls the office (Calc documents with tracked changes, Base documents). `python3 -m pytest -m crash` runs each of them through every save mode in a fresh office; expect crash reports, and on macOS the "unexpectedly quit" prompt for each crash, to which `Don't Reopen` is the answer. Known deviations of the other documents are rows in `data/expect/`. -Each document is saved once per mode: strict ODF 1.2 (save mode 4), 1.2 extended (3), 1.3 (5), 1.3 extended (6) and the product default. Builds that predate the ODF 1.3 work ignore modes 5 and 6; those items skip, or fail with `--require-odf13`. +Each document is saved once per mode: strict ODF 1.2 (save mode 4), 1.2 extended (3), 1.3 (5), 1.3 extended (6), 1.4 (7), 1.4 extended (8) and the product default. Builds that predate the ODF 1.3 work ignore modes 5 and 6, and builds that predate the ODF 1.4 work ignore modes 7 and 8; those items skip, or fail with `--require-odf13` or `--require-odf14`. ## Other families -- **Error kinds of the extended modes.** The 1.2 extended and 1.3 extended modes write extension content on purpose, so their output is not asserted to be schema valid. `tests/odf/test_kinds.py` compares the errors against the ODF 1.2 and 1.3 schemas, and the same with foreign content removed, with `data/baseline/`: a new kind of error, a higher count, a kind found in more documents, or a baseline document that is no longer covered fails the item; fewer errors pass. The baseline covers t [...] +- **Error kinds of the extended modes.** The 1.2, 1.3 and 1.4 extended modes write extension content on purpose, so their output is not asserted to be schema valid. `tests/odf/test_kinds.py` compares the errors against the ODF 1.2 (1.2 extended), 1.3 (1.3 extended) and 1.4 (1.4 extended) schemas, and the same with foreign content removed, with `data/baseline/`: a new kind of error, a higher count, a kind found in more documents, or a baseline document that is no longer covered fails the [...] - **Cross-check.** odfvalidator checks the same saved files as jing; the two must agree on which streams have errors. - **Stability.** Each document is saved twice; `content.xml` and `styles.xml` must match apart from the cached value of date and time fields. - **Encrypted.** Documents saved with a password under each combination of `UseSHA1InODF12` and `UseBlowfishInODF12`, in ODF 1.2 strict and extended mode. The suite's own decryptor (`aootest/checkers/decrypt.py`) must read them with the right password, reject a wrong one, and get the same content as the unencrypted copy. -- **Formulas.** `data/calcval-cases.tsv` holds about 250 OpenFormula cases with the result ODF 1.3 Part 4 requires; each is evaluated in Calc. +- **Formulas.** `data/calcval-cases.tsv` holds about 300 OpenFormula cases with the result ODF 1.3 and 1.4 Part 4 require; each is evaluated in Calc. ## Import twins diff --git a/test/aoo-test/conftest.py b/test/aoo-test/conftest.py index bb62147e12..3f569524c0 100644 --- a/test/aoo-test/conftest.py +++ b/test/aoo-test/conftest.py @@ -43,6 +43,7 @@ def pytest_addoption(parser): g.addoption("--strict-expect", action="store_true", help="an item that a data/expect row expects to fail must fail (XPASS becomes a failure)") g.addoption("--write-kinds", action="store_true", help="write data/baseline/ from this run instead of comparing with it (tests/odf/test_kinds.py)") g.addoption("--require-odf13", action="store_true", help="fail instead of skipping the ODF 1.3 save modes when the office cannot write 1.3") + g.addoption("--require-odf14", action="store_true", help="fail instead of skipping the ODF 1.4 save modes when the office cannot write 1.4") def _unavailable(config, message): @@ -162,16 +163,25 @@ def odf13(aoo_offices, tmp_path_factory): return odf_versions(dst) == ("1.3", "1.3") [email protected](scope="session") +def odf14(aoo_offices, tmp_path_factory): + """Whether this build writes ODF 1.4 in save mode 7: builds from before the ODF 1.4 work ignore the setting.""" + dst = tmp_path_factory.mktemp("odf14") / "probe.odt" + aoo_offices.get(7).call("new_and_store", {"app": "writer", "dst": str(dst), "filter": "writer8"}, timeout=120) + return odf_versions(dst) == ("1.4", "1.4") + + @pytest.fixture -def need_mode(odf13, pytestconfig): - """need_mode(mode): skip (or fail with --require-odf13) when the build cannot write that save mode (names or numbers).""" +def need_mode(request, pytestconfig): + """need_mode(mode): skip (or fail with --require-odf13 or --require-odf14) when the build cannot write that save mode (names or numbers).""" def check(mode): number = SAVE_MODES.get(mode, mode) - if number in (5, 6) and not odf13: - message = "this build does not write ODF 1.3 (save mode %s)" % mode - if pytestconfig.getoption("--require-odf13"): - pytest.fail(message, pytrace=False) - pytest.skip(message) + for numbers, probe, option, label in (((5, 6), "odf13", "--require-odf13", "1.3"), ((7, 8), "odf14", "--require-odf14", "1.4")): + if number in numbers and not request.getfixturevalue(probe): + message = "this build does not write ODF %s (save mode %s)" % (label, mode) + if pytestconfig.getoption(option): + pytest.fail(message, pytrace=False) + pytest.skip(message) return check diff --git a/test/aoo-test/data/baseline/kinds-x14-14.json b/test/aoo-test/data/baseline/kinds-x14-14.json new file mode 100644 index 0000000000..d10a5e9c88 --- /dev/null +++ b/test/aoo-test/data/baseline/kinds-x14-14.json @@ -0,0 +1,835 @@ +{ + "documents": [ + "built__alien-attrs__alien-calc_ods.ods", + "built__alien-attrs__alien-draw_odg.odg", + "built__alien-attrs__alien-writer_odt.odt", + "built__boolean-writer__boolean-writer_odt.odt", + "built__calc__calc-settings-a_ods.ods", + "built__calc__calc-settings-b_ods.ods", + "built__calc__calc-settings-c_ods.ods", + "built__calc__calc-settings-d_ods.ods", + "built__calc__calc-settings-e_ods.ods", + "built__calc__calc-settings-f_ods.ods", + "built__calc__calc-settings-g_ods.ods", + "built__calc__calc-settings-h_ods.ods", + "built__calc__calc-settings-null-year_ods.ods", + "built__calc__conditional-formats_ods.ods", + "built__calc__consolidation-max_ods.ods", + "built__calc__consolidation-min_ods.ods", + "built__calc__consolidation-sum_ods.ods", + "built__calc__consolidation_ods.ods", + "built__calc__dbranges-import_ods.ods", + "built__calc__dbranges-sort-subtotal_ods.ods", + "built__calc__detective_ods.ods", + "built__calc__filter-connections_ods.ods", + "built__calc__filter-operators_ods.ods", + "built__calc__filtered-rows_ods.ods", + "built__calc__formulas-01-database_ods.ods", + "built__calc__formulas-02-datetime_ods.ods", + "built__calc__formulas-03-financial_ods.ods", + "built__calc__formulas-04-information_ods.ods", + "built__calc__formulas-05-logical_ods.ods", + "built__calc__formulas-06-math_ods.ods", + "built__calc__formulas-07-matrix_ods.ods", + "built__calc__formulas-08-statistical_ods.ods", + "built__calc__formulas-09-spreadsheet_ods.ods", + "built__calc__formulas-10-text_ods.ods", + "built__calc__formulas-11-addin_ods.ods", + "built__calc__formulas-forms_ods.ods", + "built__calc__links_ods.ods", + "built__calc__named-ranges_ods.ods", + "built__calc__pivot-tables_ods.ods", + "built__calc__scenarios_ods.ods", + "built__calc__shapes_ods.ods", + "built__calc__table-attrs_ods.ods", + "built__calc__tracked-insdel_ods.ods", + "built__calc__tracked-sheets_ods.ods", + "built__calc__validation-alerts_ods.ods", + "built__calc__validation-custom-list_ods.ods", + "built__calc__validation-edges_ods.ods", + "built__calc__validation-types_ods.ods", + "built__chart-shapes__chart-shapes_ods.ods", + "built__chart__axes2_ods.ods", + "built__chart__axes_ods.ods", + "built__chart__data_ods.ods", + "built__chart__embed-draw2_odg.odg", + "built__chart__embed-draw_odg.odg", + "built__chart__embed-impress2_odp.odp", + "built__chart__embed-impress_odp.odp", + "built__chart__embed-writer-table_odt.odt", + "built__chart__embed-writer2_odt.odt", + "built__chart__embed-writer_odt.odt", + "built__chart__label-opts_ods.ods", + "built__chart__labels_ods.ods", + "built__chart__legend_ods.ods", + "built__chart__pie-variants_ods.ods", + "built__chart__point-props_ods.ods", + "built__chart__solid-types_ods.ods", + "built__chart__stats-error_ods.ods", + "built__chart__stats-mean_ods.ods", + "built__chart__stats-regression_ods.ods", + "built__chart__stock-variants_ods.ods", + "built__chart__symbols_ods.ods", + "built__chart__three-d_ods.ods", + "built__chart__types-area_ods.ods", + "built__chart__types-column_ods.ods", + "built__chart__types-line_ods.ods", + "built__chart__types-net_ods.ods", + "built__chart__types-pie_ods.ods", + "built__chart__types-stock_ods.ods", + "built__chart__types-xy_ods.ods", + "built__connector-viewbox__conn_odg.odg", + "built__connector-viewbox__conn_odp.odp", + "built__doctypes__chart-host_ods.ods", + "built__doctypes__impress-as-draw_odg.odg", + "built__doctypes__master-as-text_odt.odt", + "built__doctypes__master_odm.odm", + "built__doctypes__math_odf.odf", + "built__doctypes__template-calc_ots.ods", + "built__doctypes__template-draw_otg.odg", + "built__doctypes__template-impress_otp.odp", + "built__doctypes__template-writer_ott.odt", + "built__doctypes__web_odt.odt", + "built__draw__anchors-group-frame_odt.odt", + "built__draw__anchors_odt.odt", + "built__draw__animations_odp.odp", + "built__draw__click-actions_odp.odp", + "built__draw__connectors_odg.odg", + "built__draw__connectors_odp.odp", + "built__draw__core_odg.odg", + "built__draw__core_odp.odp", + "built__draw__custom-full_odg.odg", + "built__draw__custom-presets_odg.odg", + "built__draw__draw-links_odg.odg", + "built__draw__draw-master_odg.odg", + "built__draw__draw-master_otg.odg", + "built__draw__fills_odg.odg", + "built__draw__fontwork_odg.odg", + "built__draw__graphics_odt.odt", + "built__draw__header-footer_odp.odp", + "built__draw__image-map_odg.odg", + "built__draw__layers_odg.odg", + "built__draw__layouts_odp.odp", + "built__draw__masters-notes_odp.odp", + "built__draw__masters-notes_otp.odp", + "built__draw__measure_odg.odg", + "built__draw__measure_odp.odp", + "built__draw__pres-settings-start_odp.odp", + "built__draw__pres-settings_odp.odp", + "built__draw__scenes_odg.odg", + "built__draw__scenes_odp.odp", + "built__draw__shapes_ods.ods", + "built__draw__special_odg.odg", + "built__draw__special_odp.odp", + "built__draw__transitions_odp.odp", + "built__fill-others__others-calc_ods.ods", + "built__fill-others__others-draw_odg.odg", + "built__fill-others__others-impress_odp.odp", + "built__fill-others__others-writer_odt.odt", + "built__grid-snap__grid-snap_odt.odt", + "built__leak__calc-chart-axis_ods.ods", + "built__leak__calc-chart-types_ods.ods", + "built__leak__calc-misc_ods.ods", + "built__leak__calc-pivot-group_ods.ods", + "built__leak__calc-tracked_ods.ods", + "built__leak__draw-fontwork_odg.odg", + "built__leak__writer-fields_odt.odt", + "built__leak__writer-forms_odt.odt", + "built__leak__writer-pagegrid_odt.odt", + "built__leak__writer-redline_odt.odt", + "built__leak__writer-toc-image_odt.odt", + "built__normal-values5b__normal5b_ods.ods", + "built__normal-values__normal-values_odt.odt", + "built__note-ref__note-ref_odt.odt", + "built__ole-text-edge__ole-text-edge_odg.odg", + "built__ole-text__ole-text_odg.odg", + "built__p8-drawings__draw01_odg.odg", + "built__p8-drawings__draw02_odg.odg", + "built__p8-drawings__draw03_odg.odg", + "built__p8-drawings__draw04_odg.odg", + "built__p8-drawings__draw05_odg.odg", + "built__p8-drawings__draw06_odg.odg", + "built__p8-drawings__draw07_odg.odg", + "built__p8-drawings__draw08_odg.odg", + "built__p8-drawings__draw09_odg.odg", + "built__p8-drawings__draw10_odg.odg", + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill-1_3__calc-drawing-page_ods.ods", + "built__page-fill-1_3__calc-src_ods.ods", + "built__page-fill__page-fill_odt.odt", + "built__para-fill__para-fill_odt.odt", + "built__row-split__row-split_odt.odt", + "built__styles-gfx__calc-cells_ods.ods", + "built__styles-gfx__calc-pagestyles_ods.ods", + "built__styles-gfx__calc-sheets_ods.ods", + "built__styles-gfx__draw-3d_odg.odg", + "built__styles-gfx__draw-backgrounds_odg.odg", + "built__styles-gfx__draw-fill-line_odg.odg", + "built__styles-gfx__draw-frames_odg.odg", + "built__styles-gfx__draw-objects_odg.odg", + "built__styles-gfx__draw-text_odg.odg", + "built__styles-gfx__impress-backgrounds_odp.odp", + "built__styles-gfx__impress-effects_odp.odp", + "built__styles-gfx__impress-table_odp.odp", + "built__styles-gfx__impress-transitions_odp.odp", + "built__styles-gfx__writer-frames-misc_odt.odt", + "built__styles-gfx__writer-frames-pos_odt.odt", + "built__styles-gfx__writer-objects_odt.odt", + "built__styles-gfx__writer-pagestyles_odt.odt", + "built__styles-gfx__writer-tables_odt.odt", + "built__styles-text__calc-numberformats_ods.ods", + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt", + "built__styles-text__writer-list-styles_odt.odt", + "built__styles-text__writer-page-styles_odt.odt", + "built__styles-text__writer-para-styles_odt.odt", + "built__styles-text__writer-ruby_odt.odt", + "built__styles-text__writer-sections_odt.odt", + "built__t13__annot_odt.odt", + "built__t13__chart_ods.ods", + "built__t13__dropdown_odt.odt", + "built__t13__scaleto_ods.ods", + "built__t13__tabcolor_ods.ods", + "built__writer__annotations_odt.odt", + "built__writer__bibliography_odt.odt", + "built__writer__database-fields_odt.odt", + "built__writer__fields-docinfo_odt.odt", + "built__writer__fields-misc-nocompat_odt.odt", + "built__writer__fields-misc_odt.odt", + "built__writer__forms_odt.odt", + "built__writer__hyperlinks-ruby_odt.odt", + "built__writer__indexes-nocompat_odt.odt", + "built__writer__indexes_odt.odt", + "built__writer__linenumbers-0_odt.odt", + "built__writer__linenumbers-1_odt.odt", + "built__writer__linenumbers-2_odt.odt", + "built__writer__lists-outline-nocompat_odt.odt", + "built__writer__lists-outline_odt.odt", + "built__writer__master-doc-as-text_odt.odt", + "built__writer__master-doc_odm.odm", + "built__writer__notes-variants_odt.odt", + "built__writer__objects_odt.odt", + "built__writer__redlines-notrack_odt.odt", + "built__writer__redlines_odt.odt", + "built__writer__refs-notes-nocompat_odt.odt", + "built__writer__refs-notes_odt.odt", + "built__writer__settings_odt.odt", + "built__writer__structure-nocompat_odt.odt", + "built__writer__structure_odt.odt", + "built__writer__table-fields_odt.odt", + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt", + "built__writer__web-fields_odt.odt", + "generated__calc.ods", + "generated__draw.odg", + "generated__impress.odp", + "generated__writer.odt" + ], + "kinds": { + "attribute \"draw:fill\" not allowed here": { + "errors": 21, + "packages": [ + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill__page-fill_odt.odt", + "built__styles-gfx__writer-pagestyles_odt.odt" + ] + }, + "attribute \"draw:fill-color\" not allowed here": { + "errors": 19, + "packages": [ + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill__page-fill_odt.odt", + "built__styles-gfx__writer-pagestyles_odt.odt" + ] + }, + "attribute \"draw:fill-gradient-name\" not allowed here": { + "errors": 1, + "packages": [ + "built__page-fill__page-fill_odt.odt" + ] + }, + "attribute \"draw:fill-hatch-name\" not allowed here": { + "errors": 2, + "packages": [ + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill__page-fill_odt.odt" + ] + }, + "attribute \"draw:fill-hatch-solid\" not allowed here": { + "errors": 2, + "packages": [ + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill__page-fill_odt.odt" + ] + }, + "attribute \"draw:fill-image-name\" not allowed here": { + "errors": 2, + "packages": [ + "built__page-fill__page-fill_odt.odt" + ] + }, + "attribute \"draw:fontwork-adjust\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-distance\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-hide-form\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-mirror\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-outline\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-shadow\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-shadow-color\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-shadow-offset-x\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-shadow-offset-y\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-shadow-transparence\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-start\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-style\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:opacity\" not allowed here": { + "errors": 19, + "packages": [ + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill__page-fill_odt.odt", + "built__styles-gfx__writer-pagestyles_odt.odt" + ] + }, + "attribute \"ex:alien-foreign\" not allowed here": { + "errors": 7, + "packages": [ + "built__alien-attrs__alien-calc_ods.ods", + "built__alien-attrs__alien-draw_odg.odg", + "built__alien-attrs__alien-writer_odt.odt" + ] + }, + "attribute \"fo:min-width\" not allowed here": { + "errors": 3, + "packages": [ + "built__draw__graphics_odt.odt", + "built__styles-gfx__writer-frames-misc_odt.odt" + ] + }, + "attribute \"form:current-value\" not allowed here": { + "errors": 4, + "packages": [ + "built__styles-gfx__draw-frames_odg.odg", + "built__writer__forms_odt.odt" + ] + }, + "attribute \"form:validation\" not allowed here": { + "errors": 2, + "packages": [ + "built__writer__forms_odt.odt" + ] + }, + "attribute \"office:currency\" not allowed here": { + "errors": 4, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"office:date-value\" not allowed here": { + "errors": 2, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"office:string-value\" not allowed here": { + "errors": 2, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"office:value\" not allowed here": { + "errors": 2, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"office:value-type\" not allowed here": { + "errors": 12, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"style:with-tab\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__writer-toc-image_odt.odt" + ] + }, + "attribute \"svg:transform\" not allowed here": { + "errors": 3, + "packages": [ + "built__draw__graphics_odt.odt", + "built__leak__writer-toc-image_odt.odt" + ] + }, + "attribute \"svg:y\" not allowed here": { + "errors": 1, + "packages": [ + "built__draw__anchors_odt.odt" + ] + }, + "attribute \"table:conversion-mode\" not allowed here": { + "errors": 2, + "packages": [ + "built__leak__calc-misc_ods.ods" + ] + }, + "attribute \"table:is-group-field\" not allowed here": { + "errors": 18, + "packages": [ + "built__calc__pivot-tables_ods.ods", + "built__leak__calc-pivot-group_ods.ods" + ] + }, + "attribute \"table:table-name\" not allowed here": { + "errors": 3, + "packages": [ + "built__calc__dbranges-import_ods.ods" + ] + }, + "attribute \"table:use-label\" not allowed here": { + "errors": 4, + "packages": [ + "built__calc__consolidation-max_ods.ods", + "built__calc__consolidation-min_ods.ods", + "built__calc__consolidation_ods.ods", + "built__leak__calc-misc_ods.ods" + ] + }, + "attribute \"text:display\" not allowed here": { + "errors": 25, + "packages": [ + "built__writer__database-fields_odt.odt" + ] + }, + "attribute \"text:formula\" not allowed here": { + "errors": 6, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"text:is-hidden\" not allowed here": { + "errors": 2, + "packages": [ + "built__writer__structure-nocompat_odt.odt", + "built__writer__structure_odt.odt" + ] + }, + "element \"anim:animateMotion\" missing required attribute \"smil:attributeName\"": { + "errors": 1, + "packages": [ + "built__draw__animations_odp.odp" + ] + }, + "element \"chartooo:date-scale\" not allowed here": { + "errors": 262, + "packages": [ + "built__chart__axes2_ods.ods", + "built__chart__axes_ods.ods", + "built__chart__data_ods.ods", + "built__chart__embed-writer-table_odt.odt", + "built__chart__label-opts_ods.ods", + "built__chart__labels_ods.ods", + "built__chart__legend_ods.ods", + "built__chart__pie-variants_ods.ods", + "built__chart__point-props_ods.ods", + "built__chart__solid-types_ods.ods", + "built__chart__stats-error_ods.ods", + "built__chart__stats-mean_ods.ods", + "built__chart__stats-regression_ods.ods", + "built__chart__stock-variants_ods.ods", + "built__chart__symbols_ods.ods", + "built__chart__three-d_ods.ods", + "built__chart__types-area_ods.ods", + "built__chart__types-column_ods.ods", + "built__chart__types-line_ods.ods", + "built__chart__types-net_ods.ods", + "built__chart__types-pie_ods.ods", + "built__chart__types-stock_ods.ods", + "built__draw__special_odg.odg", + "built__draw__special_odp.odp", + "built__leak__calc-chart-axis_ods.ods", + "built__leak__calc-chart-types_ods.ods", + "built__normal-values5b__normal5b_ods.ods", + "built__t13__chart_ods.ods", + "built__writer__objects_odt.odt" + ] + }, + "element \"draw:line\" missing required attributes \"svg:x1\" and \"svg:y1\"": { + "errors": 1, + "packages": [ + "built__draw__anchors_odt.odt" + ] + }, + "element \"style:chart-properties\" incomplete; missing required element \"chart:symbol-image\"": { + "errors": 1, + "packages": [ + "built__normal-values5b__normal5b_ods.ods" + ] + }, + "element \"style:graphic-properties\" not allowed here": { + "errors": 42, + "packages": [ + "built__para-fill__para-fill_odt.odt", + "built__styles-gfx__impress-table_odp.odp", + "built__styles-text__writer-para-styles_odt.odt" + ] + }, + "element \"table:data-pilot-field\" missing required attribute \"table:selected-page\"": { + "errors": 1, + "packages": [ + "built__calc__pivot-tables_ods.ods" + ] + }, + "element \"table:data-pilot-group\" incomplete; missing required element \"table:data-pilot-group-member\"": { + "errors": 3, + "packages": [ + "built__calc__pivot-tables_ods.ods", + "built__leak__calc-pivot-group_ods.ods" + ] + }, + "element \"table:data-pilot-groups\" incomplete; missing required element \"table:data-pilot-group\"": { + "errors": 16, + "packages": [ + "built__calc__pivot-tables_ods.ods" + ] + }, + "element \"table:data-pilot-member\" not allowed here": { + "errors": 5, + "packages": [ + "built__calc__pivot-tables_ods.ods", + "built__leak__calc-pivot-group_ods.ods" + ] + }, + "element \"table:database-source-table\" missing required attribute \"table:database-table-name\"": { + "errors": 3, + "packages": [ + "built__calc__dbranges-import_ods.ods" + ] + }, + "element \"table:dependence\" not allowed here": { + "errors": 6, + "packages": [ + "built__calc__tracked-insdel_ods.ods", + "built__leak__calc-tracked_ods.ods" + ] + }, + "element \"table:dependencies\" incomplete; missing required element \"table:dependency\"": { + "errors": 4, + "packages": [ + "built__calc__tracked-insdel_ods.ods", + "built__leak__calc-tracked_ods.ods" + ] + }, + "element \"text:footnote-continuation-notice-backward\" not allowed here": { + "errors": 3, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__writer__refs-notes-nocompat_odt.odt", + "built__writer__refs-notes_odt.odt" + ] + }, + "element \"text:footnote-continuation-notice-forward\" not allowed here": { + "errors": 3, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__writer__refs-notes-nocompat_odt.odt", + "built__writer__refs-notes_odt.odt" + ] + }, + "element \"text:p\" not allowed here": { + "errors": 5, + "packages": [ + "built__ole-text-edge__ole-text-edge_odg.odg", + "built__ole-text__ole-text_odg.odg" + ] + }, + "element \"text:page-continuation-string\" not allowed here": { + "errors": 8, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__writer__fields-misc-nocompat_odt.odt", + "built__writer__fields-misc_odt.odt" + ] + }, + "element \"text:section\" missing required attribute \"text:display\"": { + "errors": 2, + "packages": [ + "built__writer__structure-nocompat_odt.odt", + "built__writer__structure_odt.odt" + ] + }, + "element \"text:tab-stop\" not allowed here": { + "errors": 3, + "packages": [ + "built__leak__calc-chart-axis_ods.ods" + ] + }, + "found attribute \"chartooo:axis-type\", but no attributes allowed here": { + "errors": 361, + "packages": [ + "built__chart__axes2_ods.ods", + "built__chart__axes_ods.ods", + "built__chart__data_ods.ods", + "built__chart__embed-draw2_odg.odg", + "built__chart__embed-draw_odg.odg", + "built__chart__embed-impress2_odp.odp", + "built__chart__embed-impress_odp.odp", + "built__chart__embed-writer-table_odt.odt", + "built__chart__embed-writer2_odt.odt", + "built__chart__embed-writer_odt.odt", + "built__chart__label-opts_ods.ods", + "built__chart__labels_ods.ods", + "built__chart__legend_ods.ods", + "built__chart__pie-variants_ods.ods", + "built__chart__point-props_ods.ods", + "built__chart__solid-types_ods.ods", + "built__chart__stats-error_ods.ods", + "built__chart__stats-mean_ods.ods", + "built__chart__stats-regression_ods.ods", + "built__chart__stock-variants_ods.ods", + "built__chart__symbols_ods.ods", + "built__chart__three-d_ods.ods", + "built__chart__types-area_ods.ods", + "built__chart__types-column_ods.ods", + "built__chart__types-line_ods.ods", + "built__chart__types-net_ods.ods", + "built__chart__types-pie_ods.ods", + "built__chart__types-stock_ods.ods", + "built__chart__types-xy_ods.ods", + "built__draw__special_odg.odg", + "built__draw__special_odp.odp", + "built__leak__calc-chart-axis_ods.ods", + "built__leak__calc-chart-types_ods.ods", + "built__normal-values5b__normal5b_ods.ods", + "built__t13__chart_ods.ods", + "built__writer__objects_odt.odt" + ] + }, + "found attribute \"style:with-tab\", but no attributes allowed here": { + "errors": 2, + "packages": [ + "built__writer__indexes-nocompat_odt.odt", + "built__writer__indexes_odt.odt" + ] + }, + "found attribute \"text:help\", but no attributes allowed here": { + "errors": 3, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__writer__fields-misc-nocompat_odt.odt", + "built__writer__fields-misc_odt.odt" + ] + }, + "found attribute \"text:hint\", but no attributes allowed here": { + "errors": 3, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__writer__fields-misc-nocompat_odt.odt", + "built__writer__fields-misc_odt.odt" + ] + }, + "found attribute \"textooo:help\", but no attributes allowed here": { + "errors": 5, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__t13__dropdown_odt.odt", + "built__writer__fields-misc-nocompat_odt.odt", + "built__writer__fields-misc_odt.odt" + ] + }, + "found attribute \"textooo:hint\", but no attributes allowed here": { + "errors": 5, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__t13__dropdown_odt.odt", + "built__writer__fields-misc-nocompat_odt.odt", + "built__writer__fields-misc_odt.odt" + ] + }, + "value of attribute \"anim:iterate-interval\" is invalid": { + "errors": 3, + "packages": [ + "built__draw__animations_odp.odp" + ] + }, + "value of attribute \"draw:unit\" is invalid": { + "errors": 2, + "packages": [ + "built__styles-gfx__draw-objects_odg.odg" + ] + }, + "value of attribute \"fo:font-weight\" is invalid": { + "errors": 24, + "packages": [ + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt" + ] + }, + "value of attribute \"form:current-value\" is invalid": { + "errors": 2, + "packages": [ + "built__writer__forms_odt.odt" + ] + }, + "value of attribute \"form:max-value\" is invalid": { + "errors": 2, + "packages": [ + "built__writer__forms_odt.odt" + ] + }, + "value of attribute \"form:value\" is invalid": { + "errors": 2, + "packages": [ + "built__writer__forms_odt.odt" + ] + }, + "value of attribute \"form:visual-effect\" is invalid": { + "errors": 3, + "packages": [ + "built__writer__forms_odt.odt" + ] + }, + "value of attribute \"presentation:object\" is invalid": { + "errors": 6, + "packages": [ + "built__draw__layouts_odp.odp" + ] + }, + "value of attribute \"smil:additive\" is invalid": { + "errors": 3, + "packages": [ + "built__draw__animations_odp.odp" + ] + }, + "value of attribute \"style:border-line-width-left\" is invalid": { + "errors": 1, + "packages": [ + "built__styles-text__writer-para-styles_odt.odt" + ] + }, + "value of attribute \"style:border-line-width-top\" is invalid": { + "errors": 1, + "packages": [ + "built__styles-text__writer-para-styles_odt.odt" + ] + }, + "value of attribute \"style:font-weight-asian\" is invalid": { + "errors": 24, + "packages": [ + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt" + ] + }, + "value of attribute \"style:font-weight-complex\" is invalid": { + "errors": 24, + "packages": [ + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt" + ] + }, + "value of attribute \"style:text-overline-style\" is invalid": { + "errors": 21, + "packages": [ + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt" + ] + }, + "value of attribute \"style:text-underline-style\" is invalid": { + "errors": 21, + "packages": [ + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt" + ] + }, + "value of attribute \"table:display-list\" is invalid": { + "errors": 3, + "packages": [ + "built__calc__validation-alerts_ods.ods" + ] + }, + "value of attribute \"text:number-position\" is invalid": { + "errors": 3, + "packages": [ + "built__writer__linenumbers-2_odt.odt", + "built__writer__structure-nocompat_odt.odt", + "built__writer__structure_odt.odt" + ] + } + } +} diff --git a/test/aoo-test/data/baseline/kinds-x14-14x.json b/test/aoo-test/data/baseline/kinds-x14-14x.json new file mode 100644 index 0000000000..7946ee3b4e --- /dev/null +++ b/test/aoo-test/data/baseline/kinds-x14-14x.json @@ -0,0 +1,734 @@ +{ + "documents": [ + "built__alien-attrs__alien-calc_ods.ods", + "built__alien-attrs__alien-draw_odg.odg", + "built__alien-attrs__alien-writer_odt.odt", + "built__boolean-writer__boolean-writer_odt.odt", + "built__calc__calc-settings-a_ods.ods", + "built__calc__calc-settings-b_ods.ods", + "built__calc__calc-settings-c_ods.ods", + "built__calc__calc-settings-d_ods.ods", + "built__calc__calc-settings-e_ods.ods", + "built__calc__calc-settings-f_ods.ods", + "built__calc__calc-settings-g_ods.ods", + "built__calc__calc-settings-h_ods.ods", + "built__calc__calc-settings-null-year_ods.ods", + "built__calc__conditional-formats_ods.ods", + "built__calc__consolidation-max_ods.ods", + "built__calc__consolidation-min_ods.ods", + "built__calc__consolidation-sum_ods.ods", + "built__calc__consolidation_ods.ods", + "built__calc__dbranges-import_ods.ods", + "built__calc__dbranges-sort-subtotal_ods.ods", + "built__calc__detective_ods.ods", + "built__calc__filter-connections_ods.ods", + "built__calc__filter-operators_ods.ods", + "built__calc__filtered-rows_ods.ods", + "built__calc__formulas-01-database_ods.ods", + "built__calc__formulas-02-datetime_ods.ods", + "built__calc__formulas-03-financial_ods.ods", + "built__calc__formulas-04-information_ods.ods", + "built__calc__formulas-05-logical_ods.ods", + "built__calc__formulas-06-math_ods.ods", + "built__calc__formulas-07-matrix_ods.ods", + "built__calc__formulas-08-statistical_ods.ods", + "built__calc__formulas-09-spreadsheet_ods.ods", + "built__calc__formulas-10-text_ods.ods", + "built__calc__formulas-11-addin_ods.ods", + "built__calc__formulas-forms_ods.ods", + "built__calc__links_ods.ods", + "built__calc__named-ranges_ods.ods", + "built__calc__pivot-tables_ods.ods", + "built__calc__scenarios_ods.ods", + "built__calc__shapes_ods.ods", + "built__calc__table-attrs_ods.ods", + "built__calc__tracked-insdel_ods.ods", + "built__calc__tracked-sheets_ods.ods", + "built__calc__validation-alerts_ods.ods", + "built__calc__validation-custom-list_ods.ods", + "built__calc__validation-edges_ods.ods", + "built__calc__validation-types_ods.ods", + "built__chart-shapes__chart-shapes_ods.ods", + "built__chart__axes2_ods.ods", + "built__chart__axes_ods.ods", + "built__chart__data_ods.ods", + "built__chart__embed-draw2_odg.odg", + "built__chart__embed-draw_odg.odg", + "built__chart__embed-impress2_odp.odp", + "built__chart__embed-impress_odp.odp", + "built__chart__embed-writer-table_odt.odt", + "built__chart__embed-writer2_odt.odt", + "built__chart__embed-writer_odt.odt", + "built__chart__label-opts_ods.ods", + "built__chart__labels_ods.ods", + "built__chart__legend_ods.ods", + "built__chart__pie-variants_ods.ods", + "built__chart__point-props_ods.ods", + "built__chart__solid-types_ods.ods", + "built__chart__stats-error_ods.ods", + "built__chart__stats-mean_ods.ods", + "built__chart__stats-regression_ods.ods", + "built__chart__stock-variants_ods.ods", + "built__chart__symbols_ods.ods", + "built__chart__three-d_ods.ods", + "built__chart__types-area_ods.ods", + "built__chart__types-column_ods.ods", + "built__chart__types-line_ods.ods", + "built__chart__types-net_ods.ods", + "built__chart__types-pie_ods.ods", + "built__chart__types-stock_ods.ods", + "built__chart__types-xy_ods.ods", + "built__connector-viewbox__conn_odg.odg", + "built__connector-viewbox__conn_odp.odp", + "built__doctypes__chart-host_ods.ods", + "built__doctypes__impress-as-draw_odg.odg", + "built__doctypes__master-as-text_odt.odt", + "built__doctypes__master_odm.odm", + "built__doctypes__math_odf.odf", + "built__doctypes__template-calc_ots.ods", + "built__doctypes__template-draw_otg.odg", + "built__doctypes__template-impress_otp.odp", + "built__doctypes__template-writer_ott.odt", + "built__doctypes__web_odt.odt", + "built__draw__anchors-group-frame_odt.odt", + "built__draw__anchors_odt.odt", + "built__draw__animations_odp.odp", + "built__draw__click-actions_odp.odp", + "built__draw__connectors_odg.odg", + "built__draw__connectors_odp.odp", + "built__draw__core_odg.odg", + "built__draw__core_odp.odp", + "built__draw__custom-full_odg.odg", + "built__draw__custom-presets_odg.odg", + "built__draw__draw-links_odg.odg", + "built__draw__draw-master_odg.odg", + "built__draw__draw-master_otg.odg", + "built__draw__fills_odg.odg", + "built__draw__fontwork_odg.odg", + "built__draw__graphics_odt.odt", + "built__draw__header-footer_odp.odp", + "built__draw__image-map_odg.odg", + "built__draw__layers_odg.odg", + "built__draw__layouts_odp.odp", + "built__draw__masters-notes_odp.odp", + "built__draw__masters-notes_otp.odp", + "built__draw__measure_odg.odg", + "built__draw__measure_odp.odp", + "built__draw__pres-settings-start_odp.odp", + "built__draw__pres-settings_odp.odp", + "built__draw__scenes_odg.odg", + "built__draw__scenes_odp.odp", + "built__draw__shapes_ods.ods", + "built__draw__special_odg.odg", + "built__draw__special_odp.odp", + "built__draw__transitions_odp.odp", + "built__fill-others__others-calc_ods.ods", + "built__fill-others__others-draw_odg.odg", + "built__fill-others__others-impress_odp.odp", + "built__fill-others__others-writer_odt.odt", + "built__grid-snap__grid-snap_odt.odt", + "built__leak__calc-chart-axis_ods.ods", + "built__leak__calc-chart-types_ods.ods", + "built__leak__calc-misc_ods.ods", + "built__leak__calc-pivot-group_ods.ods", + "built__leak__calc-tracked_ods.ods", + "built__leak__draw-fontwork_odg.odg", + "built__leak__writer-fields_odt.odt", + "built__leak__writer-forms_odt.odt", + "built__leak__writer-pagegrid_odt.odt", + "built__leak__writer-redline_odt.odt", + "built__leak__writer-toc-image_odt.odt", + "built__normal-values5b__normal5b_ods.ods", + "built__normal-values__normal-values_odt.odt", + "built__note-ref__note-ref_odt.odt", + "built__ole-text-edge__ole-text-edge_odg.odg", + "built__ole-text__ole-text_odg.odg", + "built__p8-drawings__draw01_odg.odg", + "built__p8-drawings__draw02_odg.odg", + "built__p8-drawings__draw03_odg.odg", + "built__p8-drawings__draw04_odg.odg", + "built__p8-drawings__draw05_odg.odg", + "built__p8-drawings__draw06_odg.odg", + "built__p8-drawings__draw07_odg.odg", + "built__p8-drawings__draw08_odg.odg", + "built__p8-drawings__draw09_odg.odg", + "built__p8-drawings__draw10_odg.odg", + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill-1_3__calc-drawing-page_ods.ods", + "built__page-fill-1_3__calc-src_ods.ods", + "built__page-fill__page-fill_odt.odt", + "built__para-fill__para-fill_odt.odt", + "built__row-split__row-split_odt.odt", + "built__styles-gfx__calc-cells_ods.ods", + "built__styles-gfx__calc-pagestyles_ods.ods", + "built__styles-gfx__calc-sheets_ods.ods", + "built__styles-gfx__draw-3d_odg.odg", + "built__styles-gfx__draw-backgrounds_odg.odg", + "built__styles-gfx__draw-fill-line_odg.odg", + "built__styles-gfx__draw-frames_odg.odg", + "built__styles-gfx__draw-objects_odg.odg", + "built__styles-gfx__draw-text_odg.odg", + "built__styles-gfx__impress-backgrounds_odp.odp", + "built__styles-gfx__impress-effects_odp.odp", + "built__styles-gfx__impress-table_odp.odp", + "built__styles-gfx__impress-transitions_odp.odp", + "built__styles-gfx__writer-frames-misc_odt.odt", + "built__styles-gfx__writer-frames-pos_odt.odt", + "built__styles-gfx__writer-objects_odt.odt", + "built__styles-gfx__writer-pagestyles_odt.odt", + "built__styles-gfx__writer-tables_odt.odt", + "built__styles-text__calc-numberformats_ods.ods", + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt", + "built__styles-text__writer-list-styles_odt.odt", + "built__styles-text__writer-page-styles_odt.odt", + "built__styles-text__writer-para-styles_odt.odt", + "built__styles-text__writer-ruby_odt.odt", + "built__styles-text__writer-sections_odt.odt", + "built__t13__annot_odt.odt", + "built__t13__chart_ods.ods", + "built__t13__dropdown_odt.odt", + "built__t13__scaleto_ods.ods", + "built__t13__tabcolor_ods.ods", + "built__writer__annotations_odt.odt", + "built__writer__bibliography_odt.odt", + "built__writer__database-fields_odt.odt", + "built__writer__fields-docinfo_odt.odt", + "built__writer__fields-misc-nocompat_odt.odt", + "built__writer__fields-misc_odt.odt", + "built__writer__forms_odt.odt", + "built__writer__hyperlinks-ruby_odt.odt", + "built__writer__indexes-nocompat_odt.odt", + "built__writer__indexes_odt.odt", + "built__writer__linenumbers-0_odt.odt", + "built__writer__linenumbers-1_odt.odt", + "built__writer__linenumbers-2_odt.odt", + "built__writer__lists-outline-nocompat_odt.odt", + "built__writer__lists-outline_odt.odt", + "built__writer__master-doc-as-text_odt.odt", + "built__writer__master-doc_odm.odm", + "built__writer__notes-variants_odt.odt", + "built__writer__objects_odt.odt", + "built__writer__redlines-notrack_odt.odt", + "built__writer__redlines_odt.odt", + "built__writer__refs-notes-nocompat_odt.odt", + "built__writer__refs-notes_odt.odt", + "built__writer__settings_odt.odt", + "built__writer__structure-nocompat_odt.odt", + "built__writer__structure_odt.odt", + "built__writer__table-fields_odt.odt", + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt", + "built__writer__web-fields_odt.odt", + "generated__calc.ods", + "generated__draw.odg", + "generated__impress.odp", + "generated__writer.odt" + ], + "kinds": { + "attribute \"draw:fill\" not allowed here": { + "errors": 21, + "packages": [ + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill__page-fill_odt.odt", + "built__styles-gfx__writer-pagestyles_odt.odt" + ] + }, + "attribute \"draw:fill-color\" not allowed here": { + "errors": 19, + "packages": [ + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill__page-fill_odt.odt", + "built__styles-gfx__writer-pagestyles_odt.odt" + ] + }, + "attribute \"draw:fill-gradient-name\" not allowed here": { + "errors": 1, + "packages": [ + "built__page-fill__page-fill_odt.odt" + ] + }, + "attribute \"draw:fill-hatch-name\" not allowed here": { + "errors": 2, + "packages": [ + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill__page-fill_odt.odt" + ] + }, + "attribute \"draw:fill-hatch-solid\" not allowed here": { + "errors": 2, + "packages": [ + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill__page-fill_odt.odt" + ] + }, + "attribute \"draw:fill-image-name\" not allowed here": { + "errors": 2, + "packages": [ + "built__page-fill__page-fill_odt.odt" + ] + }, + "attribute \"draw:fontwork-adjust\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-distance\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-hide-form\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-mirror\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-outline\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-shadow\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-shadow-color\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-shadow-offset-x\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-shadow-offset-y\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-shadow-transparence\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-start\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:fontwork-style\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__draw-fontwork_odg.odg" + ] + }, + "attribute \"draw:opacity\" not allowed here": { + "errors": 19, + "packages": [ + "built__page-fill-1_3__aoo-src_odt.odt", + "built__page-fill__page-fill_odt.odt", + "built__styles-gfx__writer-pagestyles_odt.odt" + ] + }, + "attribute \"fo:min-width\" not allowed here": { + "errors": 3, + "packages": [ + "built__draw__graphics_odt.odt", + "built__styles-gfx__writer-frames-misc_odt.odt" + ] + }, + "attribute \"form:current-value\" not allowed here": { + "errors": 4, + "packages": [ + "built__styles-gfx__draw-frames_odg.odg", + "built__writer__forms_odt.odt" + ] + }, + "attribute \"form:validation\" not allowed here": { + "errors": 2, + "packages": [ + "built__writer__forms_odt.odt" + ] + }, + "attribute \"office:currency\" not allowed here": { + "errors": 4, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"office:date-value\" not allowed here": { + "errors": 2, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"office:string-value\" not allowed here": { + "errors": 2, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"office:value\" not allowed here": { + "errors": 2, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"office:value-type\" not allowed here": { + "errors": 12, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"style:with-tab\" not allowed here": { + "errors": 1, + "packages": [ + "built__leak__writer-toc-image_odt.odt" + ] + }, + "attribute \"svg:transform\" not allowed here": { + "errors": 3, + "packages": [ + "built__draw__graphics_odt.odt", + "built__leak__writer-toc-image_odt.odt" + ] + }, + "attribute \"svg:y\" not allowed here": { + "errors": 1, + "packages": [ + "built__draw__anchors_odt.odt" + ] + }, + "attribute \"table:conversion-mode\" not allowed here": { + "errors": 2, + "packages": [ + "built__leak__calc-misc_ods.ods" + ] + }, + "attribute \"table:is-group-field\" not allowed here": { + "errors": 18, + "packages": [ + "built__calc__pivot-tables_ods.ods", + "built__leak__calc-pivot-group_ods.ods" + ] + }, + "attribute \"table:table-name\" not allowed here": { + "errors": 3, + "packages": [ + "built__calc__dbranges-import_ods.ods" + ] + }, + "attribute \"table:use-label\" not allowed here": { + "errors": 4, + "packages": [ + "built__calc__consolidation-max_ods.ods", + "built__calc__consolidation-min_ods.ods", + "built__calc__consolidation_ods.ods", + "built__leak__calc-misc_ods.ods" + ] + }, + "attribute \"text:display\" not allowed here": { + "errors": 25, + "packages": [ + "built__writer__database-fields_odt.odt" + ] + }, + "attribute \"text:formula\" not allowed here": { + "errors": 6, + "packages": [ + "built__writer__variables-nocompat_odt.odt", + "built__writer__variables_odt.odt" + ] + }, + "attribute \"text:is-hidden\" not allowed here": { + "errors": 2, + "packages": [ + "built__writer__structure-nocompat_odt.odt", + "built__writer__structure_odt.odt" + ] + }, + "element \"anim:animateMotion\" missing required attribute \"smil:attributeName\"": { + "errors": 1, + "packages": [ + "built__draw__animations_odp.odp" + ] + }, + "element \"draw:line\" missing required attributes \"svg:x1\" and \"svg:y1\"": { + "errors": 1, + "packages": [ + "built__draw__anchors_odt.odt" + ] + }, + "element \"style:chart-properties\" incomplete; missing required element \"chart:symbol-image\"": { + "errors": 1, + "packages": [ + "built__normal-values5b__normal5b_ods.ods" + ] + }, + "element \"style:graphic-properties\" not allowed here": { + "errors": 42, + "packages": [ + "built__para-fill__para-fill_odt.odt", + "built__styles-gfx__impress-table_odp.odp", + "built__styles-text__writer-para-styles_odt.odt" + ] + }, + "element \"table:data-pilot-field\" missing required attribute \"table:selected-page\"": { + "errors": 1, + "packages": [ + "built__calc__pivot-tables_ods.ods" + ] + }, + "element \"table:data-pilot-group\" incomplete; missing required element \"table:data-pilot-group-member\"": { + "errors": 3, + "packages": [ + "built__calc__pivot-tables_ods.ods", + "built__leak__calc-pivot-group_ods.ods" + ] + }, + "element \"table:data-pilot-groups\" incomplete; missing required element \"table:data-pilot-group\"": { + "errors": 16, + "packages": [ + "built__calc__pivot-tables_ods.ods" + ] + }, + "element \"table:data-pilot-member\" not allowed here": { + "errors": 5, + "packages": [ + "built__calc__pivot-tables_ods.ods", + "built__leak__calc-pivot-group_ods.ods" + ] + }, + "element \"table:database-source-table\" missing required attribute \"table:database-table-name\"": { + "errors": 3, + "packages": [ + "built__calc__dbranges-import_ods.ods" + ] + }, + "element \"table:dependence\" not allowed here": { + "errors": 6, + "packages": [ + "built__calc__tracked-insdel_ods.ods", + "built__leak__calc-tracked_ods.ods" + ] + }, + "element \"table:dependencies\" incomplete; missing required element \"table:dependency\"": { + "errors": 4, + "packages": [ + "built__calc__tracked-insdel_ods.ods", + "built__leak__calc-tracked_ods.ods" + ] + }, + "element \"text:footnote-continuation-notice-backward\" not allowed here": { + "errors": 3, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__writer__refs-notes-nocompat_odt.odt", + "built__writer__refs-notes_odt.odt" + ] + }, + "element \"text:footnote-continuation-notice-forward\" not allowed here": { + "errors": 3, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__writer__refs-notes-nocompat_odt.odt", + "built__writer__refs-notes_odt.odt" + ] + }, + "element \"text:p\" not allowed here": { + "errors": 5, + "packages": [ + "built__ole-text-edge__ole-text-edge_odg.odg", + "built__ole-text__ole-text_odg.odg" + ] + }, + "element \"text:page-continuation-string\" not allowed here": { + "errors": 8, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__writer__fields-misc-nocompat_odt.odt", + "built__writer__fields-misc_odt.odt" + ] + }, + "element \"text:section\" missing required attribute \"text:display\"": { + "errors": 2, + "packages": [ + "built__writer__structure-nocompat_odt.odt", + "built__writer__structure_odt.odt" + ] + }, + "element \"text:tab-stop\" not allowed here": { + "errors": 3, + "packages": [ + "built__leak__calc-chart-axis_ods.ods" + ] + }, + "found attribute \"style:with-tab\", but no attributes allowed here": { + "errors": 2, + "packages": [ + "built__writer__indexes-nocompat_odt.odt", + "built__writer__indexes_odt.odt" + ] + }, + "found attribute \"text:help\", but no attributes allowed here": { + "errors": 3, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__writer__fields-misc-nocompat_odt.odt", + "built__writer__fields-misc_odt.odt" + ] + }, + "found attribute \"text:hint\", but no attributes allowed here": { + "errors": 3, + "packages": [ + "built__leak__writer-fields_odt.odt", + "built__writer__fields-misc-nocompat_odt.odt", + "built__writer__fields-misc_odt.odt" + ] + }, + "value of attribute \"anim:iterate-interval\" is invalid": { + "errors": 3, + "packages": [ + "built__draw__animations_odp.odp" + ] + }, + "value of attribute \"draw:unit\" is invalid": { + "errors": 2, + "packages": [ + "built__styles-gfx__draw-objects_odg.odg" + ] + }, + "value of attribute \"fo:font-weight\" is invalid": { + "errors": 24, + "packages": [ + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt" + ] + }, + "value of attribute \"form:current-value\" is invalid": { + "errors": 2, + "packages": [ + "built__writer__forms_odt.odt" + ] + }, + "value of attribute \"form:max-value\" is invalid": { + "errors": 2, + "packages": [ + "built__writer__forms_odt.odt" + ] + }, + "value of attribute \"form:value\" is invalid": { + "errors": 2, + "packages": [ + "built__writer__forms_odt.odt" + ] + }, + "value of attribute \"form:visual-effect\" is invalid": { + "errors": 3, + "packages": [ + "built__writer__forms_odt.odt" + ] + }, + "value of attribute \"presentation:object\" is invalid": { + "errors": 6, + "packages": [ + "built__draw__layouts_odp.odp" + ] + }, + "value of attribute \"smil:additive\" is invalid": { + "errors": 3, + "packages": [ + "built__draw__animations_odp.odp" + ] + }, + "value of attribute \"style:border-line-width-left\" is invalid": { + "errors": 1, + "packages": [ + "built__styles-text__writer-para-styles_odt.odt" + ] + }, + "value of attribute \"style:border-line-width-top\" is invalid": { + "errors": 1, + "packages": [ + "built__styles-text__writer-para-styles_odt.odt" + ] + }, + "value of attribute \"style:font-weight-asian\" is invalid": { + "errors": 24, + "packages": [ + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt" + ] + }, + "value of attribute \"style:font-weight-complex\" is invalid": { + "errors": 24, + "packages": [ + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt" + ] + }, + "value of attribute \"style:text-overline-style\" is invalid": { + "errors": 21, + "packages": [ + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt" + ] + }, + "value of attribute \"style:text-underline-style\" is invalid": { + "errors": 21, + "packages": [ + "built__styles-text__calc-text_ods.ods", + "built__styles-text__draw-text_odg.odg", + "built__styles-text__impress-text_odp.odp", + "built__styles-text__writer-char-styles_odt.odt" + ] + }, + "value of attribute \"table:display-list\" is invalid": { + "errors": 3, + "packages": [ + "built__calc__validation-alerts_ods.ods" + ] + }, + "value of attribute \"text:number-position\" is invalid": { + "errors": 3, + "packages": [ + "built__writer__linenumbers-2_odt.odt", + "built__writer__structure-nocompat_odt.odt", + "built__writer__structure_odt.odt" + ] + } + } +} diff --git a/test/aoo-test/data/calcval-cases.tsv b/test/aoo-test/data/calcval-cases.tsv index e5269141f9..301479070c 100644 --- a/test/aoo-test/data/calcval-cases.tsv +++ b/test/aoo-test/data/calcval-cases.tsv @@ -286,3 +286,57 @@ BESSELY.ctl.Y1 =BESSELY(1;1) cell ~-0.7812128213 control: Y1(1); ~ tolerance FARR.sumprod.match =SUMPRODUCT(--ISNUMBER(MATCH(D1:D5;D1:D5;0))) cell 5 ForceArray context of SUMPRODUCT reaches the scalar parameter of MATCH (must keep working in a plain cell) FARR.sumprod.vlookup =SUMPRODUCT(VLOOKUP(D1:D3;D1:E5;2;0)) cell 66 same for VLOOKUP: 11+22+33 FARR.sumprod.abs =SUMPRODUCT(ABS(D1:D3)) cell 60 control without lookup function + +# ODF 1.4 Part 4 changes: EASTERSUNDAY without a year and with a year range, CONVERT SI_at, the IS* family on errors, DAYS, SECOND/MINUTE rounding, +# the 1583 year limit, INDEX on row and column vectors. Columns as above. +EASTER.1583 =EASTERSUNDAY(1583)-DATE(1583;4;10) cell 0 6.10.8 EASTERSUNDAY: lower bound of the allowed range +EASTER.1900 =EASTERSUNDAY(1900)-DATE(1900;4;15) cell 0 6.10.8 algorithm +EASTER.2000 =EASTERSUNDAY(2000)-DATE(2000;4;23) cell 0 6.10.8 algorithm +EASTER.2024 =EASTERSUNDAY(2024)-DATE(2024;3;31) cell 0 6.10.8 algorithm +EASTER.2025 =EASTERSUNDAY(2025)-DATE(2025;4;20) cell 0 6.10.8 algorithm +EASTER.9956 =EASTERSUNDAY(9956)-DATE(9956;4;22) cell 0 6.10.8 upper bound of the allowed range +EASTER.low =EASTERSUNDAY(1582) cell #ERR 6.10.8 constraint 1583 <= Year +EASTER.high =EASTERSUNDAY(9957) cell #ERR 6.10.8 constraint Year <= 9956 +EASTER.noarg =IF(EASTERSUNDAY()>=TODAY();1;0) cell 1 6.10.8 without Year: the next Easter Sunday on or after TODAY() +EASTER.noarg.dist =EASTERSUNDAY()-TODAY() cell - 6.10.8 without Year: distance is recorded only (it depends on the day the test runs) +CONVERT.atm =CONVERT(1;"atm";"Pa") cell 101325.1 6.16.18 Table 24: atm is the Standard atmosphere, 1.0132510E+5 Pa +CONVERT.SI_at =CONVERT(1;"SI_at";"Pa") cell 98066.5 6.16.18 Table 24: SI_at is the Technical atmosphere, 9.8066510E+4 Pa +CONVERT.at =CONVERT(1;"at";"Pa") cell - 6.16.18 Table 24: at is deprecated, recorded only +NPER.omit =NPER(0.01;-100;1000)-NPER(0.01;-100;1000;0;0) cell 0 6.12.29 Fv and PayType default to 0 +NPER.empty =NPER(0.01;-100;1000;;)-NPER(0.01;-100;1000;0;0) cell 0 6.12.29 empty Fv and PayType take the defaults; known deviation: the formula compiler rejects an empty last parameter before ')' for every function except IF (Err:511) +NPER.paytype1 =NPER(0.01;-100;1000;0;1)-NPER(0.01;-100;1000;0;0) cell - 6.12.29 PayType 1 differs; recorded only +INDEX.col.row =INDEX(D1:D5;2) cell 20 6.14.6 column vector, Row only: the entire row of the area +INDEX.col.rowcol =INDEX(D1:D5;2;1) cell 20 6.14.6 column vector, Row and Column +INDEX.row.col =INDEX(D1:F1;1;3) cell 101 6.14.6 row vector, Row and Column +INDEX.row.rowonly =INDEX(H1:L1;3) cell #ERR 6.14.6 (1.4) row vector with Row = 3 > 1 row: an Error; 1.3 let Row act as the column offset +INDEX.row.empty =INDEX(H1:L1;;3) cell 30 6.14.6 row vector, Column only +INDEX.col.beyond =INDEX(D1:D5;2;2) cell #ERR 6.14.6 Column greater than the dimension of the area is an Error +ISBLANK.err =ISBLANK(NA()) cell 0 6.13.14 an Error argument returns FALSE +ISBLANK.err2 =ISBLANK(1/0) cell 0 6.13.14 an Error argument returns FALSE +ISLOGICAL.err =ISLOGICAL(NA()) cell 0 6.13.19 an Error argument returns FALSE +ISLOGICAL.err2 =ISLOGICAL(1/0) cell 0 6.13.19 an Error argument returns FALSE +ISNUMBER.err =ISNUMBER(NA()) cell 0 6.13.22 an Error argument returns FALSE +ISNUMBER.err2 =ISNUMBER(1/0) cell 0 6.13.22 an Error argument returns FALSE +ISTEXT.err =ISTEXT(NA()) cell 0 6.13.25 an Error argument returns FALSE +ISTEXT.err2 =ISTEXT(1/0) cell 0 6.13.25 an Error argument returns FALSE +ISNONTEXT.err =ISNONTEXT(NA()) cell 1 6.13.21 an Error argument returns TRUE +ISNONTEXT.err2 =ISNONTEXT(1/0) cell 1 6.13.21 an Error argument returns TRUE +ISBLANK.ref =ISBLANK(AB1) cell 1 6.13.14 unchanged: a reference to an empty cell +DAYS.num =DAYS(DATE(2024;3;10);DATE(2024;3;1)) cell 9 6.10.6 Numbers: EndDate - StartDate +DAYS.text =DAYS("2024-03-10";"2024-03-01") cell 9 6.10.6 (1.4) Text: DATEVALUE(EndDate) - DATEVALUE(StartDate); 1.3 had the operands the other way round (-9) +SECOND.round.up =SECOND(TIME(0;0;59)+0.6/86400) cell 0 6.10.17 (1.4) T is rounded to the nearest second first: 59.6 s is 60 s, second 0 +MINUTE.round.up =MINUTE(TIME(0;0;59)+0.6/86400) cell 1 6.10.13 (1.4) the same rounding carries into the minute +SECOND.round.down =SECOND(TIME(0;0;59)+0.4/86400) cell 59 6.10.17 59.4 s rounds to 59 +SECOND.plain =SECOND(TIME(1;2;3)) cell 3 6.10.17 an exact time +MINUTE.plain =MINUTE(TIME(1;2;3)) cell 2 6.10.13 an exact time +LEAP.1900 =DATE(1900;3;1)-DATE(1900;2;28) cell 1 7.4 1900 was not a leap year +LEAP.2000 =DATE(2000;3;1)-DATE(2000;2;28) cell 2 7.4 2000 was a leap year +LEAP.2100 =DATE(2100;3;1)-DATE(2100;2;28) cell 1 7.4 2100 is not a leap year +Y1583.jan1 =DATE(1583;1;2)-DATE(1583;1;1) cell 1 7.4 dates from 1 January 1583 are calculated +Y1500.leap =DATE(1500;3;1)-DATE(1500;2;28) cell - 7.4 before 1583 the system is implementation-defined (proleptic Gregorian: 1, Julian: 2) +Y1582.switch =DATE(1582;10;15)-DATE(1582;10;4) cell - 7.4 proleptic Gregorian gives 11, a Julian-to-Gregorian switch gives 1 +CONVERT.g.kg =CONVERT(1;"g";"kg") cell 0.001 control: the add-in rewrite reaches a known unit pair +CONVERT.bogus =CONVERT(1;"nosuchunit";"Pa") cell #ERR control: an unknown unit is an error +EASTER.mid =EASTERSUNDAY(1000) cell #ERR 6.10.8 constraint 1583 <= Year (100 to 1582) +EASTER.neg =EASTERSUNDAY(-1) cell #ERR 6.10.8 constraint 1583 <= Year (negative years used to wrap) +EASTER.wrap =EASTERSUNDAY(67536) cell #ERR 6.10.8 constraint Year <= 9956 (67536 used to wrap to 2000) diff --git a/test/aoo-test/data/expect/builders.tsv b/test/aoo-test/data/expect/builders.tsv index b15dbf0142..708f24c511 100644 --- a/test/aoo-test/data/expect/builders.tsv +++ b/test/aoo-test/data/expect/builders.tsv @@ -158,3 +158,40 @@ test_validators_agree[built/styles-text/writer-para-styles.odt-strict-conformanc test_validators_agree[built/styles-text/writer-sections.odt-ext-extended] xfail only one of jing and odfvalidator reports errors: content.xml 2:15475, attribute "style:position" has a bad value. Possible values are: bottom,center,left,right,top, and more test_validators_agree[built/styles-text/writer-sections.odt-strict-conformance] xfail only one of jing and odfvalidator reports errors: content.xml 2:15327, attribute "style:position" has a bad value. Possible values are: bottom,center,left,right,top, and more test_validators_agree[built/writer/annotations.odt-ext-extended] xfail only one of jing and odfvalidator reports errors: content.xml 2:3164, unexpected character literal + +# ODF 1.4 modes (v14, x14): the same deviations as the 1.2 and 1.3 modes show; recorded 2026-11-03 on the trunk dev app +test_formula_syntax[built/calc/formulas-forms.ods-v14] xfail the saved output has 6 formula syntax errors at shall level; first: table:formula="of:=SUM([.A1:.A5] [.A3:.A7])": ')' expected at character 19 +test_formula_syntax[built/calc/formulas-forms.ods-x14] xfail the saved output has 6 formula syntax errors at shall level; first: table:formula="of:=SUM([.A1:.A5] [.A3:.A7])": ')' expected at character 19 +test_formula_syntax[built/calc/named-ranges.ods-v14] xfail the saved output has 1 formula syntax error at shall level; first: table:expression="#ref!": malformed error constant at character 1 +test_formula_syntax[built/calc/named-ranges.ods-x14] xfail the saved output has 1 formula syntax error at shall level; first: table:expression="#ref!": malformed error constant at character 1 +test_saving_twice_gives_the_same_content[built/calc/formulas-02-datetime.ods-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/calc/formulas-02-datetime.ods-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/calc/formulas-06-math.ods-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/calc/formulas-06-math.ods-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/leak/writer-redline.odt-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/leak/writer-redline.odt-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/styles-text/calc-text.ods-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/styles-text/calc-text.ods-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/styles-text/writer-list-styles.odt-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/styles-text/writer-list-styles.odt-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/indexes-nocompat.odt-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/indexes-nocompat.odt-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/indexes.odt-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/indexes.odt-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/lists-outline-nocompat.odt-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/lists-outline-nocompat.odt-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/lists-outline.odt-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/lists-outline.odt-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/redlines-notrack.odt-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/redlines-notrack.odt-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/redlines.odt-v14] xfail content.xml differs between two saves in one office session; cause not examined +test_saving_twice_gives_the_same_content[built/writer/redlines.odt-x14] xfail content.xml differs between two saves in one office session; cause not examined +test_valid_against_odf_schema[built/calc/pivot-tables.ods-v14-14] xfail the saved output has 17 errors against the ODF 1.4 schema; first: content.xml 2:410742, element "table:data-pilot-field" missing required attribute "table:selected-page +test_valid_against_odf_schema[built/draw/anchors.odt-v14-14] xfail the saved output has 2 errors against the ODF 1.4 schema; first: content.xml 2:24517, attribute "svg:y" not allowed here; expected attribute "draw:caption-id", "draw:class-names", "draw:id", "draw:layer", "draw:name", "draw:style-name"… +test_valid_against_odf_schema[built/draw/animations.odp-v14-14] xfail the saved output has 1 error against the ODF 1.4 schema; first: content.xml 2:10183, element "anim:animateMotion" missing required attribute "smil:attributeName +test_valid_against_odf_schema[built/draw/layouts.odp-v14-14] xfail the saved output has 6 errors against the ODF 1.4 schema; first: styles.xml 2:39970, value of attribute "presentation:object" is invalid; must be equal to "chart", "date-time", "footer", "graphic", "handout", "header", "notes", "objec… +test_valid_against_odf_schema[built/leak/writer-fields.odt-v14-14] xfail the saved output has 2 errors against the ODF 1.4 schema; first: styles.xml 2:10406, element "text:footnote-continuation-notice-forward" not allowed here; expected the element end-tag or element "text:note-continuation-notice-backward… +test_valid_against_odf_schema[built/writer/fields-misc-nocompat.odt-v14-14] xfail the saved output has 1 error against the ODF 1.4 schema; first: content.xml 2:8134, value of attribute "text:select-page" is invalid; must be equal to "next" or "previous +test_valid_against_odf_schema[built/writer/fields-misc.odt-v14-14] xfail the saved output has 1 error against the ODF 1.4 schema; first: content.xml 2:8134, value of attribute "text:select-page" is invalid; must be equal to "next" or "previous +test_valid_against_odf_schema[built/writer/refs-notes-nocompat.odt-v14-14] xfail the saved output has 2 errors against the ODF 1.4 schema; first: styles.xml 2:11233, element "text:footnote-continuation-notice-forward" not allowed here; expected the element end-tag or element "text:note-continuation-notice-backward… +test_valid_against_odf_schema[built/writer/refs-notes.odt-v14-14] xfail the saved output has 2 errors against the ODF 1.4 schema; first: styles.xml 2:11233, element "text:footnote-continuation-notice-forward" not allowed here; expected the element end-tag or element "text:note-continuation-notice-backward… diff --git a/test/aoo-test/data/expect/calcval.tsv b/test/aoo-test/data/expect/calcval.tsv index a6ca8e0b9b..dd508d08c6 100644 --- a/test/aoo-test/data/expect/calcval.tsv +++ b/test/aoo-test/data/expect/calcval.tsv @@ -27,3 +27,6 @@ test_formula_result[DCOUNT.emptycrit] xfail AOO ignores empty criteria cells; Pa test_formula_result[DCOUNTA.emptycrit] xfail AOO ignores empty criteria cells; Part 4 4.11.11 reads an empty criterion as the number 0 test_formula_result[LINEST.k2.const] xfail AOO allows zero degrees of freedom (two-point regression); Part 4 6.18.41 wants an error test_formula_result[LINEST.k1.noconst] xfail AOO allows zero degrees of freedom (one point, no constant); Part 4 6.18.41 wants an error +test_formula_result[CONVERT.atm] xfail AOO's standard atmosphere is 101324.996583 Pa; the ODF 1.4 Part 4 table gives 1.0132510E+5 (a relative difference of 1.0e-6) +test_formula_result[NPER.empty] xfail the formula compiler rejects an empty last parameter before ')' (Err:511) for every function except IF; an empty parameter in the middle works +test_formula_result[INDEX.row.rowonly] xfail INDEX on a row vector with only a row argument returns the column (Excel behaviour); ODF 1.4 calls it an error diff --git a/test/aoo-test/data/expect/odf14.tsv b/test/aoo-test/data/expect/odf14.tsv index 1184134353..1b8fa361c2 100644 --- a/test/aoo-test/data/expect/odf14.tsv +++ b/test/aoo-test/data/expect/odf14.tsv @@ -23,3 +23,6 @@ test_valid_against_odf_schema[built/t13/chart.ods-strict-14] xfail the ODF 1.4 schema rejects table:cell-range-address in the chart content (C1/content.xml); the ODF 1.2 and 1.3 schemas accept it test_valid_against_odf_schema[built/chart-shapes/chart-shapes.ods-strict-14] xfail the ODF 1.4 schema rejects table:cell-range-address in the chart content (c1/content.xml); the ODF 1.2 and 1.3 schemas accept it test_valid_against_odf_schema[built/normal-values5b/normal5b.ods-strict-14] xfail the saved chart content has style:chart-properties for a graphic symbol but no chart:symbol-image element, which the schema requires; the symbol-image reload check for the same document also fails and the original fixture file passes it; not analysed + +# ODF 1.4 modes (v14, x14): the same deviations as the 1.2 and 1.3 modes show; recorded 2026-11-03 on the trunk dev app +test_valid_against_odf_schema[built/normal-values5b/normal5b.ods-v14-14] xfail the saved chart content has style:chart-properties for a graphic symbol but no chart:symbol-image element, which the schema requires; the symbol-image reload check for the same document also fails and the original fixture file passes it; not analysed diff --git a/test/aoo-test/data/expect/reload.tsv b/test/aoo-test/data/expect/reload.tsv index 921c7a6e21..ec2f2be746 100644 --- a/test/aoo-test/data/expect/reload.tsv +++ b/test/aoo-test/data/expect/reload.tsv @@ -103,3 +103,36 @@ test_reload_check[default|built/ole-text-edge/ole-text-edge.odg|ole_has_field] x test_reload_check[default|built/normal-values5b/normal5b.ods|symbol_image] xfail a fixture built now reads back no symbol graphic where the check expects one; the original fixture file passes in the extended mode; not analysed test_reload_check[default|built/alien-attrs/alien-writer.odt|writer_aliens] xfail fails in the extended mode with the original fixture file as well; not analysed test_reload_check[default|built/alien-attrs/alien-writer.odt|writer_aliens_cell] xfail fails in the extended mode with the original fixture file as well; not analysed + +# ODF 1.4 modes (v14, x14): the same deviations as the 1.2 and 1.3 modes show; recorded 2026-11-03 on the trunk dev app +test_reload_check[v14|built/alien-attrs/alien-calc.ods|calc_aliens] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/alien-attrs/alien-calc.ods|calc_aliens_foreign] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/alien-attrs/alien-draw.odg|draw_aliens] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/alien-attrs/alien-draw.odg|draw_aliens_foreign] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/alien-attrs/alien-writer.odt|writer_aliens] xfail fails in the v14 mode with the original fixture file as well, as in the extended 1.2 mode; not analysed +test_reload_check[v14|built/alien-attrs/alien-writer.odt|writer_aliens_cell] xfail fails in the v14 mode with the original fixture file as well, as in the extended 1.2 mode; not analysed +test_reload_check[v14|built/alien-attrs/alien-writer.odt|writer_aliens_foreign] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/normal-values5b/normal5b.ods|symbol_image] xfail a fixture built now reads back no symbol graphic where the check expects one; the original fixture file passes in the extended 1.2 mode; not analysed; the v14 mode fails the same check +test_reload_check[v14|built/ole-text-edge/ole-text-edge.odg|ole_has_field] xfail a fixture built now reads back no date-field shape where the check expects one; the original fixture file, made on an earlier build, passes in the extended 1.2 mode; not analysed; the v14 mode fails the same check +test_reload_check[v14|built/ole-text-edge/ole-text-edge.odg|ole_paragraphs] xfail a fixture built now reads back no date-field shape where the check expects one; the original fixture file, made on an earlier build, passes in the extended 1.2 mode; not analysed; the v14 mode fails the same check +test_reload_check[v14|built/ole-text-edge/ole-text-edge.odg|ole_text] xfail a fixture built now reads back no date-field shape where the check expects one; the original fixture file, made on an earlier build, passes in the extended 1.2 mode; not analysed; the v14 mode fails the same check +test_reload_check[v14|built/ole-text/ole-text.odg|ole] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/page-fill-1_3/aoo-src.odt|header_fill] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/page-fill-1_3/aoo-src.odt|page_bitmap] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/page-fill-1_3/aoo-src.odt|page_fill] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/page-fill-1_3/aoo-src.odt|page_gradient] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/page-fill-1_3/aoo-src.odt|page_hatch] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/page-fill-1_3/aoo-src.odt|page_transparence_gradient] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/page-fill/page-fill.odt|hf_fill] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/page-fill/page-fill.odt|page_fill] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/para-fill/para-fill.odt|para_bitmap] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/para-fill/para-fill.odt|para_styles] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/para-fill/para-fill.odt|paragraphs] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/t13/dropdown.odt|dd_help] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[v14|built/t13/dropdown.odt|dd_tooltip] xfail the value read back from the v14 copy differs from the one recorded from the extended-mode copy (the same check fails in the v13 mode); recorded on the trunk dev app, not analysed per check +test_reload_check[x14|built/alien-attrs/alien-writer.odt|writer_aliens] xfail fails in the x14 mode with the original fixture file as well, as in the extended 1.2 mode; not analysed +test_reload_check[x14|built/alien-attrs/alien-writer.odt|writer_aliens_cell] xfail fails in the x14 mode with the original fixture file as well, as in the extended 1.2 mode; not analysed +test_reload_check[x14|built/normal-values5b/normal5b.ods|symbol_image] xfail a fixture built now reads back no symbol graphic where the check expects one; the original fixture file passes in the extended 1.2 mode; not analysed; the x14 mode fails the same check +test_reload_check[x14|built/ole-text-edge/ole-text-edge.odg|ole_has_field] xfail a fixture built now reads back no date-field shape where the check expects one; the original fixture file, made on an earlier build, passes in the extended 1.2 mode; not analysed; the x14 mode fails the same check +test_reload_check[x14|built/ole-text-edge/ole-text-edge.odg|ole_paragraphs] xfail a fixture built now reads back no date-field shape where the check expects one; the original fixture file, made on an earlier build, passes in the extended 1.2 mode; not analysed; the x14 mode fails the same check +test_reload_check[x14|built/ole-text-edge/ole-text-edge.odg|ole_text] xfail a fixture built now reads back no date-field shape where the check expects one; the original fixture file, made on an earlier build, passes in the extended 1.2 mode; not analysed; the x14 mode fails the same check diff --git a/test/aoo-test/data/expect/stability.tsv b/test/aoo-test/data/expect/stability.tsv index 0fa2dd450c..f35368b26d 100644 --- a/test/aoo-test/data/expect/stability.tsv +++ b/test/aoo-test/data/expect/stability.tsv @@ -24,3 +24,4 @@ test_saving_twice_gives_the_same_content[shipped/template/en-US/internal/idxexam test_saving_twice_gives_the_same_content[shipped/template/en-US/internal/idxexample.odt-ext] flaky in some runs the automatic paragraph styles P1 and P2 swap names between two saves (each heading keeps a style with the same parent); cause not examined test_saving_twice_gives_the_same_content[shipped/template/en-US/internal/idxexample.odt-v13] flaky in some runs the automatic paragraph styles P1 and P2 swap names between two saves (each heading keeps a style with the same parent); cause not examined test_saving_twice_gives_the_same_content[shipped/template/en-US/internal/idxexample.odt-x13] flaky in some runs the automatic paragraph styles P1 and P2 swap names between two saves (each heading keeps a style with the same parent); cause not examined +test_saving_twice_gives_the_same_content[shipped/template/en-US/internal/idxexample.odt-x14] flaky content.xml differed between two saves in one of three full runs; this document does the same in the other modes (a swap of the automatic paragraph styles P1 and P2 there); the swap was not checked in x14 diff --git a/test/aoo-test/src/aootest/calcval.py b/test/aoo-test/src/aootest/calcval.py index fb67417a1b..7fb1cf7c7e 100644 --- a/test/aoo-test/src/aootest/calcval.py +++ b/test/aoo-test/src/aootest/calcval.py @@ -27,7 +27,7 @@ CASES = DATA / "calcval-cases.tsv" NOT_AVAILABLE = 32767 # Analysis add-in functions are not known by their English names to setFormula; the cases keep the ODF names and # are rewritten to the programmatic names. -ADDIN = {"RECEIVED": "getReceived", "BESSELK": "getBesselk", "BESSELY": "getBessely"} +ADDIN = {"RECEIVED": "getReceived", "BESSELK": "getBesselk", "BESSELY": "getBessely", "CONVERT": "getConvert"} def parse_mode(mode): diff --git a/test/aoo-test/src/aootest/kinds.py b/test/aoo-test/src/aootest/kinds.py index 6e5dae7214..69d910cca8 100644 --- a/test/aoo-test/src/aootest/kinds.py +++ b/test/aoo-test/src/aootest/kinds.py @@ -28,8 +28,8 @@ from aootest.checkers import compare, report from aootest.paths import DATA BASELINE = DATA / "baseline" -# (save mode, schema): 12 and 13 are the plain schemas, 12x and 13x the same with foreign content removed first -PAIRS = (("ext", "12"), ("ext", "12x"), ("x13", "13"), ("x13", "13x")) +# (save mode, schema): 12, 13 and 14 are the plain schemas, 12x, 13x and 14x the same with foreign content removed first +PAIRS = (("ext", "12"), ("ext", "12x"), ("x13", "13"), ("x13", "13x"), ("x14", "14"), ("x14", "14x")) STABLE_PREFIXES = ("built/", "generated/") diff --git a/test/aoo-test/src/aootest/odfversion.py b/test/aoo-test/src/aootest/odfversion.py index c91ac732dd..8d8d8bb616 100644 --- a/test/aoo-test/src/aootest/odfversion.py +++ b/test/aoo-test/src/aootest/odfversion.py @@ -23,12 +23,12 @@ import re import zipfile -# Save/ODF/DefaultVersion -> the office:version written (3 and 4 are ODF 1.2, 5 and 6 are 1.3) -MODES = {3: "1.2", 4: "1.2", 5: "1.3", 6: "1.3"} +# Save/ODF/DefaultVersion -> the office:version written (3 and 4 are ODF 1.2, 5 and 6 are 1.3, 7 and 8 are 1.4) +MODES = {3: "1.2", 4: "1.2", 5: "1.3", 6: "1.3", 7: "1.4", 8: "1.4"} # mode name -> Save/ODF/DefaultVersion (None leaves the product default) -SAVE_MODES = {"strict": 4, "ext": 3, "v13": 5, "x13": 6, "default": None} +SAVE_MODES = {"strict": 4, "ext": 3, "v13": 5, "x13": 6, "v14": 7, "x14": 8, "default": None} def odf_versions(path): diff --git a/test/aoo-test/tests/odf/test_save_modes.py b/test/aoo-test/tests/odf/test_save_modes.py index 8341aaea5c..1e9a66c906 100644 --- a/test/aoo-test/tests/odf/test_save_modes.py +++ b/test/aoo-test/tests/odf/test_save_modes.py @@ -22,8 +22,8 @@ application, and any --documents directory) saved in each ODF save mode, then ch version, the package and document-type rules hold, ids and formulas parse, and it validates against the schema its mode promises. -Strict ODF 1.2 (mode 4) must validate against 1.2 and 1.3; 1.3 (mode 5) against 1.3. The extended modes (3, 6, and the -product default) carry AOO extensions on purpose, so their schema errors are not asserted here.""" +Strict ODF 1.2 (mode 4) must validate against 1.2 and 1.3; 1.3 (mode 5) against 1.3; 1.4 (mode 7) against 1.4. The extended +modes (3, 6, 8 and the product default) carry AOO extensions on purpose, so their schema errors are not asserted here.""" import pytest from aootest import documents @@ -32,8 +32,8 @@ from aootest.odfversion import SAVE_MODES, is_formula, odf_versions pytestmark = pytest.mark.slow MODE_NAMES = list(SAVE_MODES) -DECLARED = {"strict": "1.2", "ext": "1.2", "v13": "1.3", "x13": "1.3"} -SCHEMAS = [("strict", "12"), ("strict", "13"), ("strict", "14"), ("v13", "13")] +DECLARED = {"strict": "1.2", "ext": "1.2", "v13": "1.3", "x13": "1.3", "v14": "1.4", "x14": "1.4"} +SCHEMAS = [("strict", "12"), ("strict", "13"), ("strict", "14"), ("v13", "13"), ("v14", "14")] def saved_copy(odf_runs, need_mode, mode, source): diff --git a/test/aoo-test/tests/odf/test_stability.py b/test/aoo-test/tests/odf/test_stability.py index 42d65ffc4d..22e58a2f74 100644 --- a/test/aoo-test/tests/odf/test_stability.py +++ b/test/aoo-test/tests/odf/test_stability.py @@ -27,7 +27,7 @@ from aootest import stability pytestmark = pytest.mark.slow [email protected]("mode", ["strict", "ext", "v13", "x13"]) [email protected]("mode", ["strict", "ext", "v13", "x13", "v14", "x14"]) def test_saving_twice_gives_the_same_content(saved, mode, source): run, first = saved(mode, source) assert first["out"], "not saved: %s" % first["detail"]
