From 9af475a8a2ff4c465c0b45ee179efaac839e03d8 Mon Sep 17 00:00:00 2001 From: Andreas Stefl Date: Thu, 10 Sep 2026 18:16:42 +0200 Subject: [PATCH 1/6] test(browser): put every check page on the shared report `annotation` and `viewport` kept their own `check()` and printed no `#summary`, so a headless run could not read them at a glance. Both now load `checks.js`, which gains an optional failure `detail` and a `note()` heading. `checks.js` also guards against a throw in an event listener: it does not stop the script that dispatched it, so a page could pass over a live exception. The README said editing is limited to odt, odp, odg, ods and docx. ods, pptx, xlsx and txt all declare `edit` + `save` now. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01KKFKbUVCYF2VhujdmjhhPW --- README.md | 6 +++--- test/browser/annotation/tests.html | 29 +---------------------------- test/browser/checks.js | 27 ++++++++++++++++++++++++--- test/browser/plaintext/tests.html | 7 ------- test/browser/text/tests.html | 7 ------- test/browser/viewport/tests.html | 28 +++++++++------------------- 6 files changed, 37 insertions(+), 67 deletions(-) diff --git a/README.md b/README.md index 084baf52a..372715119 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ to a system file picker. It is a declared upper bound; `DecodedFile::capabilitie and `Document::is_editable` / `is_savable` give the precise answer for a concrete file. -Editing and saving are currently limited to odt, odp, odg (`edit` + `save`), -ods (`save` only) and docx (`edit` + `save`); saving with a password is not -supported for any format. +Editing and saving are currently limited to odt, odp, ods, odg, docx, pptx, +xlsx and txt (`edit` + `save` each); saving with a password is not supported +for any format. ## Unsupported files diff --git a/test/browser/annotation/tests.html b/test/browser/annotation/tests.html index 6d24c1dca..09493478b 100644 --- a/test/browser/annotation/tests.html +++ b/test/browser/annotation/tests.html @@ -19,13 +19,6 @@ border-left: 1px solid #ccc; z-index: 10; } - .ok { - color: #0a7d28; - } - .fail { - color: #c00; - font-weight: bold; - } /* stands in for a rendered page: laid out in inches, as the pdf view does */ .p { position: relative; @@ -67,24 +60,9 @@ +