oficina / slides Public

Slides: draw a follow-along code only for this deck's live link

Review fixes. followCodes (qrlink.go) is now the authority on what a
code draws (render.Options.QR, layout.Options.QR, ExportOptions.QR; nil
draws none): only this instance's origin whose token is a live share
link of this deck. On /s/ surfaces (page, follow view and fragment,
thumbnails) the code and caption are the reader's own link, so an
audience link is never handed to a share reader. Slide HTML, thumbnail
and talk ETags carry linksStamp, so revoking a link refreshes caches.

Insert's Follow-along code row is offered only to people who may share
the deck (InsertTypes); a member still sees a code's address read-only.
docs/api.md and the ShareLink comment now say the token of an audience
link lives in the document.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 0ad46d6f06a9fcaf32d4e052d6c57cecb2e1a6b4 parent d2dec08
21 files changed, +396 −51
  • AGENTS.md +8 −3
  • docs/api.md +11 −6
  • internal/slides/api.go +1 −1
  • internal/slides/editor.go +26 −5
  • internal/slides/export.go +6 −1
  • internal/slides/export_qr_test.go +3 −2
  • internal/slides/exports.go +1 −0
  • internal/slides/layout/blocks.go +8 −4
  • internal/slides/layout/layout.go +4 −0
  • internal/slides/layout/qr_test.go +9 −3
  • internal/slides/models.go +5 −1
  • internal/slides/presentation.go +2 −1
  • internal/slides/presenter_window.go +2 −1
  • internal/slides/presenting_talk.go +7 −3
  • internal/slides/qrlink.go +87 −2
  • internal/slides/render/qr_test.go +35 −6
  • internal/slides/render/render.go +23 −7
  • internal/slides/templates/editor.html +1 −1
  • internal/slides/thumbs.go +8 −3
  • internal/slides/viewer.go +1 −1
  • internal/slidestest/qrlink_test.go +148 −0

CI passed — run details

CI log
=== gate ===
=== rust: fmt
=== rust: clippy
    Updating crates.io index
 Downloading crates ...
  Downloaded async-trait v0.1.92
  Downloaded cfg-if v1.0.4
  Downloaded autocfg v1.5.1
  Downloaded ahash v0.8.12
  Downloaded arrayvec v0.7.8
  Downloaded async-lock v3.4.2
  Downloaded bitflags v2.13.1
  Downloaded arc-swap v1.9.2
  Downloaded num-derive v0.4.2
  Downloaded crossbeam-utils v0.8.22
  Downloaded indexmap-nostd v0.4.0
  Downloaded multi-stash v0.2.0
  Downloaded thiserror v2.0.20
  Downloaded foldhash v0.2.0
  Downloaded event-listener-strategy v0.5.4
  Downloaded equivalent v1.0.2
  Downloaded downcast-rs v1.2.1
  Downloaded scopeguard v1.2.0
  Downloaded itoa v1.0.18
  Downloaded smallstr v0.3.1
  Downloaded parking v2.2.1
  Downloaded lock_api v0.4.14
  Downloaded version_check v0.9.5
  Downloaded wasmi_core v0.32.3
  Downloaded dashmap v6.2.1
  Downloaded string-interner v0.17.0
  Downloaded paste v1.0.15
  Downloaded quote v1.0.47
  Downloaded rustversion v1.0.23
  Downloaded once_cell v1.21.4
  Downloaded pin-project-lite v0.2.17
  Downloaded thiserror-impl v2.0.20
  Downloaded wasmi_collections v0.32.3
  Downloaded serde_core v1.0.229
  Downloaded spin v0.9.9
  Downloaded parking_lot_core v0.9.12
  Downloaded semver v1.0.28
  Downloaded serde_derive v1.0.229
  Downloaded smallvec v1.15.2
  Downloaded unicode-ident v1.0.24
  Downloaded zmij v1.0.23
  Downloaded event-listener v5.4.2
  Downloaded proc-macro2 v1.0.107
  Downloaded num-traits v0.2.19
  Downloaded serde v1.0.229
  Downloaded indexmap v2.14.1
  Downloaded hashbrown v0.14.5
  Downloaded memchr v2.8.3
  Downloaded wasmparser-nostd v0.100.2
  Downloaded serde_json v1.0.151
  Downloaded libm v0.2.16
  Downloaded hashbrown v0.17.1
  Downloaded yrs v0.23.5
  Downloaded zerocopy v0.8.56
  Downloaded wasmparser v0.258.0
  Downloaded syn v2.0.119
  Downloaded syn v3.0.4
  Downloaded wasmi v0.32.3
  Downloaded libc v0.2.189
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling serde_core v1.0.229
   Compiling version_check v0.9.5
   Compiling zerocopy v0.8.56
    Checking cfg-if v1.0.4
    Checking once_cell v1.21.4
   Compiling serde v1.0.229
    Checking smallvec v1.15.2
   Compiling libc v0.2.189
   Compiling rustversion v1.0.23
   Compiling parking_lot_core v0.9.12
   Compiling crossbeam-utils v0.8.22
   Compiling zmij v1.0.23
    Checking pin-project-lite v0.2.17
    Checking parking v2.2.1
   Compiling autocfg v1.5.1
    Checking event-listener v5.4.2
   Compiling paste v1.0.15
   Compiling serde_json v1.0.151
   Compiling thiserror v2.0.20
    Checking scopeguard v1.2.0
   Compiling ahash v0.8.12
   Compiling libm v0.2.16
   Compiling num-traits v0.2.19
    Checking lock_api v0.4.14
    Checking event-listener-strategy v0.5.4
    Checking foldhash v0.2.0
    Checking memchr v2.8.3
    Checking itoa v1.0.18
    Checking async-lock v3.4.2
    Checking smallstr v0.3.1
    Checking fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/feat__follow-qr/core/vendor/fastrand-2.5.0)
    Checking downcast-rs v1.2.1
    Checking indexmap-nostd v0.4.0
    Checking equivalent v1.0.2
    Checking arrayvec v0.7.8
    Checking multi-stash v0.2.0
    Checking spin v0.9.9
    Checking wasmparser-nostd v0.100.2
    Checking semver v1.0.28
    Checking bitflags v2.13.1
    Checking arc-swap v1.9.2
   Compiling syn v3.0.4
   Compiling syn v2.0.119
    Checking wasmi_core v0.32.3
    Checking hashbrown v0.17.1
    Checking indexmap v2.14.1
   Compiling num-derive v0.4.2
    Checking hashbrown v0.14.5
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
    Checking dashmap v6.2.1
    Checking string-interner v0.17.0
    Checking yrs v0.23.5
    Checking wasmparser v0.258.0
    Checking wasmi_collections v0.32.3
    Checking wasmi v0.32.3
    Checking slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__follow-qr/core)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.73s
=== the embedded wasm must be built from these sources
wasm-stamp: internal/slides/core/testdata/slides_core.wasm was built from these inputs
=== wasm: the artifact the host embeds
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.03s
build-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
 Downloading crates ...
  Downloaded getrandom v0.4.3
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling serde_core v1.0.229
   Compiling cfg-if v1.0.4
   Compiling crossbeam-utils v0.8.22
   Compiling rustversion v1.0.23
   Compiling zmij v1.0.23
   Compiling getrandom v0.4.3
   Compiling smallvec v1.15.2
   Compiling parking_lot_core v0.9.12
   Compiling pin-project-lite v0.2.17
   Compiling thiserror v2.0.20
   Compiling serde v1.0.229
   Compiling scopeguard v1.2.0
   Compiling serde_json v1.0.151
   Compiling hashbrown v0.14.5
   Compiling itoa v1.0.18
   Compiling memchr v2.8.3
   Compiling once_cell v1.21.4
   Compiling event-listener v5.4.2
   Compiling lock_api v0.4.14
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/feat__follow-qr/core/vendor/fastrand-2.5.0)
   Compiling event-listener-strategy v0.5.4
   Compiling smallstr v0.3.1
   Compiling async-lock v3.4.2
   Compiling arc-swap v1.9.2
   Compiling dashmap v6.2.1
   Compiling syn v3.0.4
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
   Compiling yrs v0.23.5
   Compiling slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__follow-qr/core)
    Finished `release` profile [optimized] target(s) in 10.78s
core/target/wasm32-unknown-unknown/release/slides_core.wasm (801191 bytes)
=== the embedded wasm must match a fresh build
gate: byte comparison skipped on Linux/aarch64: no build on this host reproduces the canonical amd64 bytes; the input stamp above holds freshness here
=== rust: test
   Compiling cfg-if v1.0.4
   Compiling once_cell v1.21.4
   Compiling smallvec v1.15.2
   Compiling parking v2.2.1
   Compiling pin-project-lite v0.2.17
   Compiling serde_core v1.0.229
   Compiling zerocopy v0.8.56
   Compiling libc v0.2.189
   Compiling scopeguard v1.2.0
   Compiling zmij v1.0.23
   Compiling crossbeam-utils v0.8.22
   Compiling memchr v2.8.3
   Compiling itoa v1.0.18
   Compiling foldhash v0.2.0
   Compiling arc-swap v1.9.2
   Compiling libm v0.2.16
   Compiling thiserror v2.0.20
   Compiling lock_api v0.4.14
   Compiling num-traits v0.2.19
   Compiling event-listener v5.4.2
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/feat__follow-qr/core/vendor/fastrand-2.5.0)
   Compiling smallstr v0.3.1
   Compiling indexmap-nostd v0.4.0
   Compiling equivalent v1.0.2
   Compiling downcast-rs v1.2.1
   Compiling bitflags v2.13.1
   Compiling arrayvec v0.7.8
   Compiling event-listener-strategy v0.5.4
   Compiling spin v0.9.9
   Compiling semver v1.0.28
   Compiling multi-stash v0.2.0
   Compiling wasmparser-nostd v0.100.2
   Compiling async-lock v3.4.2
   Compiling parking_lot_core v0.9.12
   Compiling wasmi_core v0.32.3
   Compiling serde v1.0.229
   Compiling serde_json v1.0.151
   Compiling hashbrown v0.17.1
   Compiling indexmap v2.14.1
   Compiling wasmparser v0.258.0
   Compiling ahash v0.8.12
   Compiling hashbrown v0.14.5
   Compiling string-interner v0.17.0
   Compiling dashmap v6.2.1
   Compiling wasmi_collections v0.32.3
   Compiling yrs v0.23.5
   Compiling wasmi v0.32.3
   Compiling slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__follow-qr/core)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 11.78s
     Running unittests src/lib.rs (core/target/debug/deps/slides_core-e2842964c29de994)

running 32 tests
test check::tests::the_empty_document_passes ... ok
test layout::tests::aside_region_rect ... ok
test layout::tests::default_region_by_kind ... ok
test layout::tests::body_region_rect_narrows_for_an_aside ... ok
test layout::tests::heading_region_rect ... ok
test layout::tests::media_region_rect ... ok
test markdown::tests::empty_input_is_no_paragraphs_and_lines_keep_blanks ... ok
test markdown::tests::inline_marks ... ok
test markdown::tests::marks_nest_and_links_carry_marks ... ok
test markdown::tests::paragraphs_split_on_blank_lines_and_list_markers ... ok
test layout::tests::to_canvas_narrows_body_when_an_aside_is_present ... ok
test schema::tests::an_empty_map_reads_as_a_set_mark ... ok
test layout::tests::to_canvas_splits_a_shared_region_equally_and_sets_z_by_index ... ok
test schema::tests::an_href_map_without_a_string_url_reads_as_no_link ... ok
test layout::tests::to_flow_is_a_no_op_when_already_in_order ... ok
test layout::tests::to_flow_classifies_by_position_and_kind ... ok
test check::tests::what_the_ops_write_passes ... ok
test check::tests::bare_text_at_fragment_level_is_reported ... ok
test check::tests::an_element_inside_a_paragraph_is_reported ... ok
test schema::tests::href_written_as_a_plain_string_still_reads_back ... ok
test schema::tests::href_is_written_as_a_one_key_map_and_reads_back ... ok
test check::tests::a_non_paragraph_child_is_reported ... ok
test check::tests::y_prosemirror_shapes_pass ... ok
test layout::tests::to_flow_orders_y_then_x ... ok
test check::tests::an_unknown_formatting_attribute_is_reported ... ok
test view::tests::a_malformed_font_files_list_is_absent ... ok
test view::tests::assets_are_typed_or_skipped ... ok
test view::tests::malformed_background_is_the_default ... ok
test view::tests::malformed_fonts_are_null ... ok
test view::tests::malformed_box_is_null_and_phone_keeps_only_typed_fields ... ok
test view::tests::step_items_talk_and_arrive_outside_their_vocabularies_are_absent ... ok
test layout::tests::to_flow_keeps_a_concurrent_text_edit ... ok

test result: ok. 32 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/no_host_imports.rs (core/target/debug/deps/no_host_imports-0da85e8553d154e5)

running 1 test
test no_host_imports ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/ops.rs (core/target/debug/deps/ops-ac5209169f357f96)

running 22 tests
test add_slide_then_view_lists_it ... ok
test ops_are_atomic ... ok
test add_block_with_markdown_produces_runs ... ok
test a_deck_without_the_fields_has_no_such_keys_in_its_view ... ok
test font_files_round_trip_and_clear ... ok
test set_block_refuses_a_step_of_zero_negative_or_non_finite ... ok
test layout_switch_assigns_boxes ... ok
test remove_block_drops_it_from_columns_children ... ok
test columns_children_must_name_blocks_on_the_slide ... ok
test columns_children_have_one_parent_and_no_cycles ... ok
test duplicate_slide_remaps_columns_children ... ok
test qr_url_must_be_a_follow_link ... ok
test set_slide_refuses_an_unknown_talk ... ok
test set_meta_arrive_round_trips_and_clears ... ok
test set_slide_talk_round_trips_and_clears ... ok
test set_block_step_round_trips_and_clears ... ok
test set_block_refuses_items_on_a_non_list ... ok
test move_block_keeps_a_concurrent_text_edit ... ok
test move_slide_keeps_a_concurrent_text_edit ... ok
test update_roundtrip ... ok
test remaining_ops_roundtrip ... ok
test font_files_refusals ... ok

test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

   Doc-tests slides_core

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

=== rust: fmt (pdf)
=== rust: clippy (pdf)
    Updating crates.io index
 Downloading crates ...
  Downloaded base64 v0.22.1
  Downloaded adler2 v2.0.1
  Downloaded color_quant v1.1.0
  Downloaded arrayref v0.3.9
  Downloaded bytemuck v1.25.2
  Downloaded byteorder-lite v0.1.0
  Downloaded core_maths v0.1.1
  Downloaded bytemuck_derive v1.12.0
  Downloaded float-cmp v0.9.0
  Downloaded quick-error v2.0.1
  Downloaded bumpalo v3.20.3
  Downloaded pico-args v0.5.0
  Downloaded tinyvec_macros v0.1.1
  Downloaded rustc-hash v2.1.3
  Downloaded yoke-derive v0.8.2
  Downloaded unicode-ccc v0.4.0
  Downloaded stable_deref_trait v1.2.1
  Downloaded strict-num v0.1.1
  Downloaded siphasher v1.0.3
  Downloaded unicode-bidi-mirroring v0.4.0
  Downloaded zerofrom v0.1.8
  Downloaded zerofrom-derive v0.1.7
  Downloaded unicode-vo v0.1.0
  Downloaded xmlwriter v0.1.0
  Downloaded fdeflate v0.3.7
  Downloaded data-url v0.3.2
  Downloaded font-types v0.11.3
  Downloaded krilla-svg v0.8.1
  Downloaded polycool v0.4.0
  Downloaded simd-adler32 v0.3.10
  Downloaded smallvec v1.16.0
  Downloaded simplecss v0.2.2
  Downloaded synstructure v0.13.2
  Downloaded rgb v0.8.53
  Downloaded xmp-writer v0.3.3
  Downloaded zune-core v0.5.3
  Downloaded crc32fast v1.5.1
  Downloaded gif v0.14.2
  Downloaded fontconfig-parser v0.5.8
  Downloaded yoke v0.8.3
  Downloaded tiny-skia-path v0.12.0
  Downloaded unicode-script v0.5.8
  Downloaded unicode-properties v0.1.4
  Downloaded svgtypes v0.16.1
  Downloaded subsetter v0.2.6
  Downloaded imagesize v0.14.0
  Downloaded ryu v1.0.23
  Downloaded memmap2 v0.9.11
  Downloaded roxmltree v0.20.0
  Downloaded tinyvec v1.13.2
  Downloaded unicode-bidi v0.3.18
  Downloaded weezl v0.1.12
  Downloaded roxmltree v0.21.1
  Downloaded image-webp v0.2.4
  Downloaded log v0.4.34
  Downloaded miniz_oxide v0.9.1
  Downloaded miniz_oxide v0.8.9
  Downloaded slotmap v1.1.1
  Downloaded flate2 v1.1.10
  Downloaded euclid v0.22.14
  Downloaded resvg v0.47.0
  Downloaded zune-jpeg v0.5.15
  Downloaded fontdb v0.23.0
  Downloaded indexmap v2.14.2
  Downloaded png v0.18.1
  Downloaded usvg v0.47.0
  Downloaded kurbo v0.13.1
  Downloaded krilla v0.8.2
  Downloaded ttf-parser v0.25.1
  Downloaded zlib-rs v0.6.7
  Downloaded write-fonts v0.48.1
  Downloaded rustybuzz v0.20.1
  Downloaded skrifa v0.42.1
  Downloaded tiny-skia v0.12.0
  Downloaded syn v3.0.5
  Downloaded read-fonts v0.39.2
  Downloaded pdf-writer v0.15.0
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling autocfg v1.5.1
    Checking simd-adler32 v0.3.10
   Compiling serde_core v1.0.229
   Compiling libm v0.2.16
    Checking arrayvec v0.7.8
    Checking log v0.4.34
    Checking smallvec v1.16.0
   Compiling crc32fast v1.5.1
    Checking bitflags v2.13.1
    Checking adler2 v2.0.1
    Checking cfg-if v1.0.4
   Compiling libc v0.2.189
   Compiling version_check v0.9.5
    Checking foldhash v0.2.0
    Checking arrayref v0.3.9
    Checking memchr v2.8.3
    Checking miniz_oxide v0.9.1
    Checking equivalent v1.0.2
    Checking miniz_oxide v0.8.9
    Checking fdeflate v0.3.7
    Checking unicode-properties v0.1.4
    Checking unicode-ccc v0.4.0
    Checking polycool v0.4.0
    Checking siphasher v1.0.3
    Checking tinyvec_macros v0.1.1
    Checking roxmltree v0.20.0
    Checking unicode-bidi-mirroring v0.4.0
    Checking unicode-script v0.5.8
    Checking tinyvec v1.13.2
    Checking kurbo v0.13.1
    Checking base64 v0.22.1
   Compiling slotmap v1.1.1
    Checking weezl v0.1.12
   Compiling num-traits v0.2.19
    Checking color_quant v1.1.0
    Checking byteorder-lite v0.1.0
    Checking quick-error v2.0.1
    Checking flate2 v1.1.10
    Checking imagesize v0.14.0
    Checking zune-core v0.5.3
    Checking roxmltree v0.21.1
    Checking simplecss v0.2.2
    Checking gif v0.14.2
    Checking fontconfig-parser v0.5.8
    Checking data-url v0.3.2
    Checking image-webp v0.2.4
    Checking xmlwriter v0.1.0
    Checking zune-jpeg v0.5.15
    Checking ryu v1.0.23
    Checking pico-args v0.5.0
    Checking png v0.18.1
    Checking rustc-hash v2.1.3
    Checking stable_deref_trait v1.2.1
    Checking itoa v1.0.18
    Checking unicode-bidi v0.3.18
    Checking unicode-vo v0.1.0
    Checking xmp-writer v0.3.3
   Compiling serde v1.0.229
    Checking bumpalo v3.20.3
    Checking semver v1.0.28
    Checking pdf-writer v0.15.0
   Compiling syn v3.0.5
   Compiling syn v2.0.119
    Checking svgtypes v0.16.1
    Checking core_maths v0.1.1
    Checking ttf-parser v0.25.1
    Checking float-cmp v0.9.0
    Checking strict-num v0.1.1
    Checking memmap2 v0.9.11
    Checking hashbrown v0.17.1
    Checking indexmap v2.14.2
    Checking fontdb v0.23.0
   Compiling bytemuck_derive v1.12.0
   Compiling synstructure v0.13.2
    Checking wasmparser v0.258.0
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
    Checking bytemuck v1.25.2
    Checking font-types v0.11.3
    Checking tiny-skia-path v0.12.0
    Checking rustybuzz v0.20.1
    Checking rgb v0.8.53
    Checking zerofrom v0.1.8
    Checking yoke v0.8.3
    Checking read-fonts v0.39.2
    Checking tiny-skia v0.12.0
    Checking usvg v0.47.0
    Checking resvg v0.47.0
    Checking write-fonts v0.48.1
    Checking skrifa v0.42.1
    Checking subsetter v0.2.6
    Checking krilla v0.8.2
    Checking krilla-svg v0.8.1
    Checking slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__follow-qr/core/pdf)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.24s
=== the embedded pdf wasm must be built from these sources
wasm-stamp: internal/slides/pdfcore/testdata/slides_pdf.wasm was built from these inputs
=== wasm: the pdf artifact the host embeds
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.05s
build-pdf-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling autocfg v1.5.1
   Compiling libm v0.2.16
   Compiling simd-adler32 v0.3.10
   Compiling arrayvec v0.7.8
   Compiling log v0.4.34
   Compiling crc32fast v1.5.1
   Compiling smallvec v1.16.0
   Compiling adler2 v2.0.1
   Compiling cfg-if v1.0.4
   Compiling bitflags v2.13.1
   Compiling version_check v0.9.5
   Compiling memchr v2.8.3
   Compiling arrayref v0.3.9
   Compiling unicode-properties v0.1.4
   Compiling unicode-bidi-mirroring v0.4.0
   Compiling miniz_oxide v0.9.1
   Compiling fdeflate v0.3.7
   Compiling miniz_oxide v0.8.9
   Compiling unicode-ccc v0.4.0
   Compiling polycool v0.4.0
   Compiling hashbrown v0.17.1
   Compiling tinyvec_macros v0.1.1
   Compiling equivalent v1.0.2
   Compiling unicode-script v0.5.8
   Compiling siphasher v1.0.3
   Compiling tinyvec v1.13.2
   Compiling zune-core v0.5.3
   Compiling slotmap v1.1.1
   Compiling kurbo v0.13.1
   Compiling memmap2 v0.9.11
   Compiling num-traits v0.2.19
   Compiling base64 v0.22.1
   Compiling flate2 v1.1.10
   Compiling color_quant v1.1.0
   Compiling byteorder-lite v0.1.0
   Compiling imagesize v0.14.0
   Compiling quick-error v2.0.1
   Compiling indexmap v2.14.2
   Compiling weezl v0.1.12
   Compiling image-webp v0.2.4
   Compiling zune-jpeg v0.5.15
   Compiling roxmltree v0.21.1
   Compiling png v0.18.1
   Compiling syn v3.0.5
   Compiling syn v2.0.119
   Compiling simplecss v0.2.2
   Compiling core_maths v0.1.1
   Compiling float-cmp v0.9.0
   Compiling strict-num v0.1.1
   Compiling ttf-parser v0.25.1
   Compiling svgtypes v0.16.1
   Compiling gif v0.14.2
   Compiling pico-args v0.5.0
   Compiling stable_deref_trait v1.2.1
   Compiling xmlwriter v0.1.0
   Compiling data-url v0.3.2
   Compiling unicode-bidi v0.3.18
   Compiling itoa v1.0.18
   Compiling ryu v1.0.23
   Compiling rustc-hash v2.1.3
   Compiling unicode-vo v0.1.0
   Compiling pdf-writer v0.15.0
   Compiling xmp-writer v0.3.3
   Compiling bumpalo v3.20.3
   Compiling bytemuck_derive v1.12.0
   Compiling synstructure v0.13.2
   Compiling fontdb v0.23.0
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
   Compiling bytemuck v1.25.2
   Compiling zerofrom v0.1.8
   Compiling yoke v0.8.3
   Compiling font-types v0.11.3
   Compiling tiny-skia-path v0.12.0
   Compiling rustybuzz v0.20.1
   Compiling rgb v0.8.53
   Compiling read-fonts v0.39.2
   Compiling tiny-skia v0.12.0
   Compiling usvg v0.47.0
   Compiling resvg v0.47.0
   Compiling write-fonts v0.48.1
   Compiling skrifa v0.42.1
   Compiling subsetter v0.2.6
   Compiling krilla v0.8.2
   Compiling krilla-svg v0.8.1
   Compiling slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__follow-qr/core/pdf)
    Finished `release` profile [optimized] target(s) in 17.85s
core/pdf/target/wasm32-unknown-unknown/release/slides_pdf.wasm (4157674 bytes)
=== the embedded pdf wasm must match a fresh build
gate: byte comparison skipped on Linux/aarch64: no build on this host reproduces the canonical amd64 bytes; the input stamp above holds freshness here
=== rust: test (pdf)
   Compiling log v0.4.34
   Compiling simd-adler32 v0.3.10
   Compiling arrayvec v0.7.8
   Compiling adler2 v2.0.1
   Compiling smallvec v1.16.0
   Compiling bitflags v2.13.1
   Compiling cfg-if v1.0.4
   Compiling foldhash v0.2.0
   Compiling serde_core v1.0.229
   Compiling libm v0.2.16
   Compiling equivalent v1.0.2
   Compiling num-traits v0.2.19
   Compiling memchr v2.8.3
   Compiling arrayref v0.3.9
   Compiling bytemuck v1.25.2
   Compiling libc v0.2.189
   Compiling crc32fast v1.5.1
   Compiling unicode-script v0.5.8
   Compiling siphasher v1.0.3
   Compiling miniz_oxide v0.9.1
   Compiling fdeflate v0.3.7
   Compiling miniz_oxide v0.8.9
   Compiling polycool v0.4.0
   Compiling unicode-bidi-mirroring v0.4.0
   Compiling roxmltree v0.20.0
   Compiling unicode-ccc v0.4.0
   Compiling unicode-properties v0.1.4
   Compiling tinyvec_macros v0.1.1
   Compiling tinyvec v1.13.2
   Compiling font-types v0.11.3
   Compiling slotmap v1.1.1
   Compiling quick-error v2.0.1
   Compiling imagesize v0.14.0
   Compiling weezl v0.1.12
   Compiling kurbo v0.13.1
   Compiling color_quant v1.1.0
   Compiling float-cmp v0.9.0
   Compiling flate2 v1.1.10
   Compiling read-fonts v0.39.2
   Compiling fontconfig-parser v0.5.8
   Compiling base64 v0.22.1
   Compiling strict-num v0.1.1
   Compiling byteorder-lite v0.1.0
   Compiling zune-core v0.5.3
   Compiling tiny-skia-path v0.12.0
   Compiling gif v0.14.2
   Compiling core_maths v0.1.1
   Compiling memmap2 v0.9.11
   Compiling ttf-parser v0.25.1
   Compiling png v0.18.1
   Compiling zune-jpeg v0.5.15
   Compiling image-webp v0.2.4
   Compiling roxmltree v0.21.1
   Compiling zerofrom v0.1.8
   Compiling simplecss v0.2.2
   Compiling rustc-hash v2.1.3
   Compiling pico-args v0.5.0
   Compiling stable_deref_trait v1.2.1
   Compiling itoa v1.0.18
   Compiling unicode-vo v0.1.0
   Compiling xmlwriter v0.1.0
   Compiling svgtypes v0.16.1
   Compiling unicode-bidi v0.3.18
   Compiling ryu v1.0.23
   Compiling data-url v0.3.2
   Compiling yoke v0.8.3
   Compiling pdf-writer v0.15.0
   Compiling rgb v0.8.53
   Compiling bumpalo v3.20.3
   Compiling xmp-writer v0.3.3
   Compiling semver v1.0.28
   Compiling tiny-skia v0.12.0
   Compiling hashbrown v0.17.1
   Compiling serde v1.0.229
   Compiling indexmap v2.14.2
   Compiling rustybuzz v0.20.1
   Compiling fontdb v0.23.0
   Compiling wasmparser v0.258.0
   Compiling usvg v0.47.0
   Compiling resvg v0.47.0
   Compiling write-fonts v0.48.1
   Compiling skrifa v0.42.1
   Compiling subsetter v0.2.6
   Compiling krilla v0.8.2
   Compiling krilla-svg v0.8.1
   Compiling slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__follow-qr/core/pdf)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 19.14s
     Running unittests src/lib.rs (core/pdf/target/debug/deps/slides_pdf-7ec7cd25f86a82d7)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/no_host_imports.rs (core/pdf/target/debug/deps/no_host_imports-09d1f8ca96bf3a46)

running 1 test
test no_host_imports ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/render.rs (core/pdf/target/debug/deps/render-888658dffec5d3c9)

running 6 tests
test a_null_zero_length_pair_is_no_frames_not_a_dereference ... ok
test text_with_no_fonts_at_all_still_renders_the_shapes ... ok
test raster_image_is_embedded ... ok
test abi_frames_round_trip ... ok
test renders_text_as_embedded_glyphs ... ok
test two_svgs_make_two_pages ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

   Doc-tests slides_pdf

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

=== fixtures: node dependencies
v22.23.4
10.9.9
=== fixtures: npm ci (needs the registry — see .amadan/README.md)

added 19 packages, and audited 20 packages in 1s

5 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 10.9.9 -> 12.2.3
npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3
npm notice To update run: npm install -g npm@12.2.3
npm notice
=== fixtures: the JS side's own tests
TAP version 13
# Subtest: one finished upload is register_asset plus the block that uses it, in one batch
ok 1 - one finished upload is register_asset plus the block that uses it, in one batch
  ---
  duration_ms: 9.221652
  type: 'test'
  ...
# Subtest: a record missing its numbers still makes an op the core accepts
ok 2 - a record missing its numbers still makes an op the core accepts
  ---
  duration_ms: 1.348975
  type: 'test'
  ...
# Subtest: unusedAssets is what no slide refers to, and remove_asset drops one
ok 3 - unusedAssets is what no slide refers to, and remove_asset drops one
  ---
  duration_ms: 4.285653
  type: 'test'
  ...
# Subtest: the Unused images list reconciles by id and names each Remove button
ok 4 - the Unused images list reconciles by id and names each Remove button
  ---
  duration_ms: 1.789306
  type: 'test'
  ...
# Subtest: an upload refusal is said in words the person can act on
ok 5 - an upload refusal is said in words the person can act on
  ---
  duration_ms: 0.235601
  type: 'test'
  ...
# Subtest: a request is the trimmed prompt, the scope, the slide and the model
ok 6 - a request is the trimmed prompt, the scope, the slide and the model
  ---
  duration_ms: 2.05109
  type: 'test'
  ...
# Subtest: an empty, blank or over-long prompt, or "this slide" with none, is never sent
ok 7 - an empty, blank or over-long prompt, or "this slide" with none, is never sent
  ---
  duration_ms: 0.664938
  type: 'test'
  ...
# Subtest: server words map onto the panel's strings, and anything else is generic
ok 8 - server words map onto the panel's strings, and anything else is generic
  ---
  duration_ms: 0.250289
  type: 'test'
  ...
# Subtest: an answer must be a list of op objects; anything else is generic
ok 9 - an answer must be a list of op objects; anything else is generic
  ---
  duration_ms: 0.873488
  type: 'test'
  ...
# Subtest: an answer is posted as JSON, applied through commit, saved, and focused
ok 10 - an answer is posted as JSON, applied through commit, saved, and focused
  ---
  duration_ms: 0.868208
  type: 'test'
  ...
# Subtest: a slide is focused only once its save is acknowledged
ok 11 - a slide is focused only once its save is acknowledged
  ---
  duration_ms: 0.254774
  type: 'test'
  ...
# Subtest: no ops is "nothing", and nothing is committed
ok 12 - no ops is "nothing", and nothing is committed
  ---
  duration_ms: 0.404768
  type: 'test'
  ...
# Subtest: every failure is a word, and nothing is applied
ok 13 - every failure is a word, and nothing is applied
  ---
  duration_ms: 1.22814
  type: 'test'
  ...
# Subtest: undo takes back the answer's own step, once
ok 14 - undo takes back the answer's own step, once
  ---
  duration_ms: 0.858786
  type: 'test'
  ...
# Subtest: a batch shaped as the server answers it applies through ops.mjs
ok 15 - a batch shaped as the server answers it applies through ops.mjs
  ---
  duration_ms: 12.280886
  type: 'test'
  ...
# Subtest: the toggle is lit while the panel is open, and opening focuses the prompt
ok 16 - the toggle is lit while the panel is open, and opening focuses the prompt
  ---
  duration_ms: 2.760514
  type: 'test'
  ...
# Subtest: a deck with no slide opens on "the whole deck"
ok 17 - a deck with no slide opens on "the whole deck"
  ---
  duration_ms: 0.559062
  type: 'test'
  ...
# Subtest: asking is busy, then says what was done and offers Undo
ok 18 - asking is busy, then says what was done and offers Undo
  ---
  duration_ms: 1.128171
  type: 'test'
  ...
# Subtest: an error is said in the catalog's words, marked, and offers no Undo
ok 19 - an error is said in the catalog's words, marked, and offers no Undo
  ---
  duration_ms: 0.888964
  type: 'test'
  ...
# Subtest: destroy takes every listener away
ok 20 - destroy takes every listener away
  ---
  duration_ms: 0.512786
  type: 'test'
  ...
# Subtest: rowsFor: a canvas box is arranged in layers and placed; a flow box by region
ok 21 - rowsFor: a canvas box is arranged in layers and placed; a flow box by region
  ---
  duration_ms: 1.853168
  type: 'test'
  ...
# Subtest: canOwnContextMenu: never in text being edited, anywhere else on a box
ok 22 - canOwnContextMenu: never in text being edited, anywhere else on a box
  ---
  duration_ms: 0.955981
  type: 'test'
  ...
# Subtest: boxKey: the box's keys, and Delete and the arrows only from the box itself
ok 23 - boxKey: the box's keys, and Delete and the arrows only from the box itself
  ---
  duration_ms: 0.387405
  type: 'test'
  ...
# Subtest: open draws only the rows that apply, and focuses the first
ok 24 - open draws only the rows that apply, and focuses the first
  ---
  duration_ms: 3.662538
  type: 'test'
  ...
# Subtest: a row runs its command and closes; a region row sets the region
ok 25 - a row runs its command and closes; a region row sets the region
  ---
  duration_ms: 1.48138
  type: 'test'
  ...
# Subtest: the arrows move through the rows drawn; Esc closes and focuses the box, and goes no further
ok 26 - the arrows move through the rows drawn; Esc closes and focuses the box, and goes no further
  ---
  duration_ms: 1.603224
  type: 'test'
  ...
# Subtest: place: the round button follows the selection, and an empty selection closes the menu
ok 27 - place: the round button follows the selection, and an empty selection closes the menu
  ---
  duration_ms: 1.305106
  type: 'test'
  ...
# Subtest: a right-click on a box opens the menu; in text being edited it is the browser's
ok 28 - a right-click on a box opens the menu; in text being edited it is the browser's
  ---
  duration_ms: 0.815601
  type: 'test'
  ...
# Subtest: the keys: from the box, from its text, and never from outside the stage
ok 29 - the keys: from the box, from its text, and never from outside the stage
  ---
  duration_ms: 1.237208
  type: 'test'
  ...
# Subtest: sync: the menu closes when the slide's layout changes, and its region checks follow the box
ok 30 - sync: the menu closes when the slide's layout changes, and its region checks follow the box
  ---
  duration_ms: 2.74435
  type: 'test'
  ...
# Subtest: a row that no longer applies to the box does nothing, and closes the menu
ok 31 - a row that no longer applies to the box does nothing, and closes the menu
  ---
  duration_ms: 0.788033
  type: 'test'
  ...
# Subtest: destroy takes every listener off the page's elements
ok 32 - destroy takes every listener off the page's elements
  ---
  duration_ms: 0.404537
  type: 'test'
  ...
# Subtest: place: a stage with no room docks the round button beside the view switch
ok 33 - place: a stage with no room docks the round button beside the view switch
  ---
  duration_ms: 0.958421
  type: 'test'
  ...
# Subtest: place: the round button follows the phone screen's scroll, and goes while its box is out of sight
ok 34 - place: the round button follows the phone screen's scroll, and goes while its box is out of sight
  ---
  duration_ms: 0.667126
  type: 'test'
  ...
# Subtest: buttonSpot: at the top end corner, inside the stage, clear of every handle
ok 35 - buttonSpot: at the top end corner, inside the stage, clear of every handle
  ---
  duration_ms: 1.741035
  type: 'test'
  ...
# Subtest: menuSpot: under its anchor, flipped and kept inside the window
ok 36 - menuSpot: under its anchor, flipped and kept inside the window
  ---
  duration_ms: 1.113958
  type: 'test'
  ...
# Subtest: buttonSpot: any box, a tiny one in a corner included, gets a spot that covers no handle
ok 37 - buttonSpot: any box, a tiny one in a corner included, gets a spot that covers no handle
  ---
  duration_ms: 76.52319
  type: 'test'
  ...
# Subtest: buttonSpot: the reviewer's box filling a small stage, and boxes filling stages
ok 38 - buttonSpot: the reviewer's box filling a small stage, and boxes filling stages
  ---
  duration_ms: 1.887175
  type: 'test'
  ...
# Subtest: buttonSpot: thousands of boxes, every answer fits, null only when nothing does
ok 39 - buttonSpot: thousands of boxes, every answer fits, null only when nothing does
  ---
  duration_ms: 36.446715
  type: 'test'
  ...
# Subtest: clip: what can be seen of a rect through a frame; the rect itself where the frame has no box
ok 40 - clip: what can be seen of a rect through a frame; the rect itself where the frame has no box
  ---
  duration_ms: 0.272874
  type: 'test'
  ...
# Subtest: buttonSpot: clear of the other boxes where it can be, over one only where nothing else fits
ok 41 - buttonSpot: clear of the other boxes where it can be, over one only where nothing else fits
  ---
  duration_ms: 0.685057
  type: 'test'
  ...
# Subtest: clampBox keeps the box inside the frame and no smaller than the minimum
ok 42 - clampBox keeps the box inside the frame and no smaller than the minimum
  ---
  duration_ms: 1.652902
  type: 'test'
  ...
# Subtest: fixBox writes four decimals
ok 43 - fixBox writes four decimals
  ---
  duration_ms: 0.341002
  type: 'test'
  ...
# Subtest: guides are the thirds plus every other block edge
ok 44 - guides are the thirds plus every other block edge
  ---
  duration_ms: 0.27127
  type: 'test'
  ...
# Subtest: snapMove pulls the nearest edge onto a guide within one per cent, and leaves a far one
ok 45 - snapMove pulls the nearest edge onto a guide within one per cent, and leaves a far one
  ---
  duration_ms: 0.406577
  type: 'test'
  ...
# Subtest: snapResize moves only the edges the handle drags
ok 46 - snapResize moves only the edges the handle drags
  ---
  duration_ms: 0.277735
  type: 'test'
  ...
# Subtest: moveBox and resizeBox by handle
ok 47 - moveBox and resizeBox by handle
  ---
  duration_ms: 0.288376
  type: 'test'
  ...
# Subtest: nudge: arrows move by half a per cent, Shift by two, Alt resizes
ok 48 - nudge: arrows move by half a per cent, Shift by two, Alt resizes
  ---
  duration_ms: 0.39037
  type: 'test'
  ...
# Subtest: rectBox reads a block rectangle against its frame
ok 49 - rectBox reads a block rectangle against its frame
  ---
  duration_ms: 0.291
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (a) the paste right after the refused x (Fable's probe)
ok 50 - a paste that waited for its font is kept: (a) the paste right after the refused x (Fable's probe)
  ---
  duration_ms: 22.11134
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (b) the refused x elsewhere, before the paste
ok 51 - a paste that waited for its font is kept: (b) the refused x elsewhere, before the paste
  ---
  duration_ms: 4.751823
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (g) the refused x after the paste point
ok 52 - a paste that waited for its font is kept: (g) the refused x after the paste point
  ---
  duration_ms: 5.945627
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (c) two refused x, the paste after the second
ok 53 - a paste that waited for its font is kept: (c) two refused x, the paste after the second
  ---
  duration_ms: 3.307346
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (i) the refused x mid-paragraph, the paste at its end
ok 54 - a paste that waited for its font is kept: (i) the refused x mid-paragraph, the paste at its end
  ---
  duration_ms: 3.031899
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (e) the paste over "paragraph.x"
ok 55 - a paste that waited for its font is kept: (e) the paste over "paragraph.x"
  ---
  duration_ms: 5.202458
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (f) a refused deletion elsewhere
ok 56 - a paste that waited for its font is kept: (f) a refused deletion elsewhere
  ---
  duration_ms: 2.858831
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (h) two paragraphs pasted after the refused x
ok 57 - a paste that waited for its font is kept: (h) two paragraphs pasted after the refused x
  ---
  duration_ms: 3.176204
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (j) a colleague's words before, the refused x after
ok 58 - a paste that waited for its font is kept: (j) a colleague's words before, the refused x after
  ---
  duration_ms: 7.104325
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (k) a colleague appended where the x was refused
ok 59 - a paste that waited for its font is kept: (k) a colleague appended where the x was refused
  ---
  duration_ms: 6.294531
  type: 'test'
  ...
# Subtest: a paste into a paragraph the refused change made cannot be kept: nothing is posted, the page is the server's
ok 60 - a paste into a paragraph the refused change made cannot be kept: nothing is posted, the page is the server's
  ---
  duration_ms: 2.045387
  type: 'test'
  ...
# Subtest: a paste made elsewhere carries as its own updates, not a replay
ok 61 - a paste made elsewhere carries as its own updates, not a replay
  ---
  duration_ms: 1.698263
  type: 'test'
  ...
# Subtest: the replay is one change for an undo manager tracking the carried origin
ok 62 - the replay is one change for an undo manager tracking the carried origin
  ---
  duration_ms: 3.050057
  type: 'test'
  ...
# Subtest: every update written on top of the refused text is held back, not only the first
ok 63 - every update written on top of the refused text is held back, not only the first
  ---
  duration_ms: 1.64058
  type: 'test'
  ...
# Subtest: a Backspace over the refused text is held back
ok 64 - a Backspace over the refused text is held back
  ---
  duration_ms: 1.005573
  type: 'test'
  ...
# Subtest: of an update that partly took, the part that took is posted, and nothing the server would hold pending
ok 65 - of an update that partly took, the part that took is posted, and nothing the server would hold pending
  ---
  duration_ms: 2.796276
  type: 'test'
  ...
# Subtest: an update that rewrites formatting and writes on top of the refused text posts the formatting, not the words
ok 66 - an update that rewrites formatting and writes on top of the refused text posts the formatting, not the words
  ---
  duration_ms: 1.567368
  type: 'test'
  ...
# Subtest: a paste elsewhere is posted and a keystroke after the refused x is not
ok 67 - a paste elsewhere is posted and a keystroke after the refused x is not
  ---
  duration_ms: 2.446147
  type: 'test'
  ...
# Subtest: took reads all, some and none from the update itself
ok 68 - took reads all, some and none from the update itself
  ---
  duration_ms: 1.041928
  type: 'test'
  ...
# Subtest: a Backspace over this tab's own saved words and its refused ones together posts the saved part (one delete range, one client)
ok 69 - a Backspace over this tab's own saved words and its refused ones together posts the saved part (one delete range, one client)
  ---
  duration_ms: 6.392363
  type: 'test'
  ...
# Subtest: a paste right after a refused repeated letter lands where it was made
ok 70 - a paste right after a refused repeated letter lands where it was made
  ---
  duration_ms: 8.659067
  type: 'test'
  ...
# Subtest: a change made in a clean spot is not lost with one held back on the refused text (on the refused text, then elsewhere)
ok 71 - a change made in a clean spot is not lost with one held back on the refused text (on the refused text, then elsewhere)
  ---
  duration_ms: 4.099959
  type: 'test'
  ...
# Subtest: a change made in a clean spot is not lost with one held back on the refused text (elsewhere, then on the refused text)
ok 72 - a change made in a clean spot is not lost with one held back on the refused text (elsewhere, then on the refused text)
  ---
  duration_ms: 1.162398
  type: 'test'
  ...
# Subtest: the keeper groups the updates of one held change into one entry, and hands the entries over once
ok 73 - the keeper groups the updates of one held change into one entry, and hands the entries over once
  ---
  duration_ms: 0.541201
  type: 'test'
  ...
# Subtest: every change made while diverged is kept, whatever it was written on
ok 74 - every change made while diverged is kept, whatever it was written on
  ---
  duration_ms: 6.929006
  type: 'test'
  ...
# Subtest: a change that cannot be kept in the middle loses nothing after it
ok 75 - a change that cannot be kept in the middle loses nothing after it
  ---
  duration_ms: 6.003607
  type: 'test'
  ...
# Subtest: a replay that cannot be made falls back to what of the change's own updates integrates
ok 76 - a replay that cannot be made falls back to what of the change's own updates integrates
  ---
  duration_ms: 1.565913
  type: 'test'
  ...
# Subtest: the carried changes undo in the steps they were made in
ok 77 - the carried changes undo in the steps they were made in
  ---
  duration_ms: 4.14876
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: an insert, then an insert just before the refused text
ok 78 - a multi-step change replays each step where it was made: an insert, then an insert just before the refused text
  ---
  duration_ms: 0.803482
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: an insert, then a mark over it, the refused text two letters on
ok 79 - a multi-step change replays each step where it was made: an insert, then a mark over it, the refused text two letters on
  ---
  duration_ms: 0.758726
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: a delete, then an insert past the refused text
ok 80 - a multi-step change replays each step where it was made: a delete, then an insert past the refused text
  ---
  duration_ms: 0.34689
  type: 'test'
  ...
# Subtest: a mark made over an insertion in the same change covers all of it
ok 81 - a mark made over an insertion in the same change covers all of it
  ---
  duration_ms: 0.354734
  type: 'test'
  ...
# Subtest: a multi-step change on the refused text is replayed where it was made, on the page and the server
ok 82 - a multi-step change on the refused text is replayed where it was made, on the page and the server
  ---
  duration_ms: 2.253347
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: A: "abc" on the x; Backspace; undo the Backspace
ok 83 - an undo or a redo while diverged ends as the person saw it: A: "abc" on the x; Backspace; undo the Backspace
  ---
  duration_ms: 4.84986
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: B: "a" on the x; select it, type "b"; undo
ok 84 - an undo or a redo while diverged ends as the person saw it: B: "a" on the x; select it, type "b"; undo
  ---
  duration_ms: 6.494232
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: C: "a" on the x; Backspace; undo
ok 85 - an undo or a redo while diverged ends as the person saw it: C: "a" on the x; Backspace; undo
  ---
  duration_ms: 5.00085
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: D: "a" on the x; Backspace; undo; "b" typed
ok 86 - an undo or a redo while diverged ends as the person saw it: D: "a" on the x; Backspace; undo; "b" typed
  ---
  duration_ms: 4.212026
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: E: "a" on the x; Backspace; undo; redo
ok 87 - an undo or a redo while diverged ends as the person saw it: E: "a" on the x; Backspace; undo; redo
  ---
  duration_ms: 6.437521
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: F: "a" elsewhere; Backspace; undo
ok 88 - an undo or a redo while diverged ends as the person saw it: F: "a" elsewhere; Backspace; undo
  ---
  duration_ms: 2.270474
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: G: "a" on the x; undo; redo; undo; redo
ok 89 - an undo or a redo while diverged ends as the person saw it: G: "a" on the x; undo; redo; undo; redo
  ---
  duration_ms: 4.671428
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: H: "a" on the x; "b"; undo; undo; redo; redo; "c"
ok 90 - an undo or a redo while diverged ends as the person saw it: H: "a" on the x; "b"; undo; undo; redo; redo; "c"
  ---
  duration_ms: 6.345371
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: I: "a" on the x; Backspace over "xa"; undo
ok 91 - an undo or a redo while diverged ends as the person saw it: I: "a" on the x; Backspace over "xa"; undo
  ---
  duration_ms: 3.300412
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: J: "a" on the x; Backspace over ".xa"; undo
ok 92 - an undo or a redo while diverged ends as the person saw it: J: "a" on the x; Backspace over ".xa"; undo
  ---
  duration_ms: 3.40129
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: K: the x and "a" one undo step; undo; redo
ok 93 - an undo or a redo while diverged ends as the person saw it: K: the x and "a" one undo step; undo; redo
  ---
  duration_ms: 4.959058
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: L: "a" on the x; undo; "b"; undo; redo
ok 94 - an undo or a redo while diverged ends as the person saw it: L: "a" on the x; undo; "b"; undo; redo
  ---
  duration_ms: 4.335984
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: M: two words pasted on the x; the first deleted; undo
ok 95 - an undo or a redo while diverged ends as the person saw it: M: two words pasted on the x; the first deleted; undo
  ---
  duration_ms: 2.7844
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: N: "a" on the x; undo
ok 96 - an undo or a redo while diverged ends as the person saw it: N: "a" on the x; undo
  ---
  duration_ms: 2.286492
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: O: "a" on the x; undo; "b"
ok 97 - an undo or a redo while diverged ends as the person saw it: O: "a" on the x; undo; "b"
  ---
  duration_ms: 2.597286
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: P: "a" on the x; "b" elsewhere; undo; undo
ok 98 - an undo or a redo while diverged ends as the person saw it: P: "a" on the x; "b" elsewhere; undo; undo
  ---
  duration_ms: 2.308724
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: Q: "a" on the x; undo; redo; "c"
ok 99 - an undo or a redo while diverged ends as the person saw it: Q: "a" on the x; undo; redo; "c"
  ---
  duration_ms: 2.962117
  type: 'test'
  ...
# Subtest: an undo of a change saved before the refusal is still carried
ok 100 - an undo of a change saved before the refusal is still carried
  ---
  duration_ms: 1.987151
  type: 'test'
  ...
# Subtest: derivedStep turns one document into the other, and is null for the same one
ok 101 - derivedStep turns one document into the other, and is null for the same one
  ---
  duration_ms: 0.22324
  type: 'test'
  ...
# Subtest: carrying grows linearly over a long divergence: changes typed elsewhere, 1000 against 4000, under few client ids
ok 102 - carrying grows linearly over a long divergence: changes typed elsewhere, 1000 against 4000, under few client ids
  ---
  duration_ms: 2158.962103
  type: 'test'
  ...
# Subtest: carrying grows linearly over a long divergence: changes typed on the refused text, 500 against 2000, under few client ids
ok 103 - carrying grows linearly over a long divergence: changes typed on the refused text, 500 against 2000, under few client ids
  ---
  duration_ms: 3961.84079
  type: 'test'
  ...
# Subtest: a client id never collides with one the document already holds
ok 104 - a client id never collides with one the document already holds
  ---
  duration_ms: 0.415079
  type: 'test'
  ...
# Subtest: ProseMirror changes inside one window share an id; one held back there does not strand the next
ok 105 - ProseMirror changes inside one window share an id; one held back there does not strand the next
  ---
  duration_ms: 1.852541
  type: 'test'
  ...
# Subtest: typing into a block is a text change on its slide only
ok 106 - typing into a block is a text change on its slide only
  ---
  duration_ms: 8.73406
  type: 'test'
  ...
# Subtest: a block's props changing is structure on its slide
ok 107 - a block's props changing is structure on its slide
  ---
  duration_ms: 1.815169
  type: 'test'
  ...
# Subtest: adding, moving or removing a block is structure on its slide
ok 108 - adding, moving or removing a block is structure on its slide
  ---
  duration_ms: 2.680089
  type: 'test'
  ...
# Subtest: the notes are text on their slide
ok 109 - the notes are text on their slide
  ---
  duration_ms: 1.525304
  type: 'test'
  ...
# Subtest: a slide added, removed or moved is an order change
ok 110 - a slide added, removed or moved is an order change
  ---
  duration_ms: 2.694522
  type: 'test'
  ...
# Subtest: one transaction touching several things reports each once
ok 111 - one transaction touching several things reports each once
  ---
  duration_ms: 3.12615
  type: 'test'
  ...
# Subtest: what the ops write passes, and so does an empty document
ok 112 - what the ops write passes, and so does an empty document
  ---
  duration_ms: 9.757478
  type: 'test'
  ...
# Subtest: the shapes y-prosemirror and older documents write pass
ok 113 - the shapes y-prosemirror and older documents write pass
  ---
  duration_ms: 1.817827
  type: 'test'
  ...
# Subtest: an unknown formatting attribute is reported with the core's message
ok 114 - an unknown formatting attribute is reported with the core's message
  ---
  duration_ms: 2.577493
  type: 'test'
  ...
# Subtest: an element inside a paragraph, a non-paragraph child and bare text are reported
ok 115 - an element inside a paragraph, a non-paragraph child and bare text are reported
  ---
  duration_ms: 5.948435
  type: 'test'
  ...
# Subtest: the unknownmark poison shape is what the check refuses
ok 116 - the unknownmark poison shape is what the check refuses
  ---
  duration_ms: 1.868425
  type: 'test'
  ...
# Subtest: y-prosemirror 1.3.7 deletes the words under an unknown mark; sanitising first keeps them
ok 117 - y-prosemirror 1.3.7 deletes the words under an unknown mark; sanitising first keeps them
  ---
  duration_ms: 5.155872
  type: 'test'
  ...
# Subtest: the vocabulary is the five marks and nothing else
ok 118 - the vocabulary is the five marks and nothing else
  ---
  duration_ms: 0.147095
  type: 'test'
  ...
# Subtest: a reload reuses the id this tab stored for the deck
ok 119 - a reload reuses the id this tab stored for the deck
  ---
  duration_ms: 3.30819
  type: 'test'
  ...
# Subtest: two tabs, and two decks in one tab, get different ids
ok 120 - two tabs, and two decks in one tab, get different ids
  ---
  duration_ms: 1.175733
  type: 'test'
  ...
# Subtest: a stored value that is not an id, or storage that throws, gives a fresh id
ok 121 - a stored value that is not an id, or storage that throws, gives a fresh id
  ---
  duration_ms: 0.496091
  type: 'test'
  ...
# Subtest: a duplicated tab gives up the copied id; the original keeps it
ok 122 - a duplicated tab gives up the copied id; the original keeps it
  ---
  duration_ms: 8.359305
  type: 'test'
  ...
# Subtest: a reload finds no rival and keeps its id
ok 123 - a reload finds no rival and keeps its id
  ---
  duration_ms: 2.251897
  type: 'test'
  ...
# Subtest: presence switches id: beats carry the new one and the old one is somebody else
ok 124 - presence switches id: beats carry the new one and the old one is somebody else
  ---
  duration_ms: 1.314655
  type: 'test'
  ...
# Subtest: setTitle commits the deck's title, one set_meta
ok 125 - setTitle commits the deck's title, one set_meta
  ---
  duration_ms: 1.773081
  type: 'test'
  ...
# Subtest: accent-reset commits the theme's accent back, once
ok 126 - accent-reset commits the theme's accent back, once
  ---
  duration_ms: 0.266849
  type: 'test'
  ...
# Subtest: addBlock commits the kind after the selected box, then selects it; refused, selects nothing
ok 127 - addBlock commits the kind after the selected box, then selects it; refused, selects nothing
  ---
  duration_ms: 1.430952
  type: 'test'
  ...
# Subtest: addBlock with no slide on the stage commits nothing
ok 128 - addBlock with no slide on the stage commits nothing
  ---
  duration_ms: 0.38804
  type: 'test'
  ...
# Subtest: the box menu's rows into the card: Format and Position and size, for a selected box only
ok 129 - the box menu's rows into the card: Format and Position and size, for a selected box only
  ---
  duration_ms: 0.315138
  type: 'test'
  ...
# Subtest: addBlock("qr") asks for an audience link and adds the box with it; the card's button replaces it
ok 130 - addBlock("qr") asks for an audience link and adds the box with it; the card's button replaces it
  ---
  duration_ms: 0.892359
  type: 'test'
  ...
# Subtest: a stack leads with its first family, unquoted
ok 131 - a stack leads with its first family, unquoted
  ---
  duration_ms: 1.31396
  type: 'test'
  ...
# Subtest: a field shows the uploaded family its stack leads with, else the stack
ok 132 - a field shows the uploaded family its stack leads with, else the stack
  ---
  duration_ms: 0.221458
  type: 'test'
  ...
# Subtest: the theme's stack for a role, an unknown theme's being the default's
ok 133 - the theme's stack for a role, an unknown theme's being the default's
  ---
  duration_ms: 0.172253
  type: 'test'
  ...
# Subtest: a pick sets the role in front of the theme stack and lists the family, one op
ok 134 - a pick sets the role in front of the theme stack and lists the family, one op
  ---
  duration_ms: 1.149381
  type: 'test'
  ...
# Subtest: two people's Brands: picking one for the body keeps the other in the heading
ok 135 - two people's Brands: picking one for the body keeps the other in the heading
  ---
  duration_ms: 0.414171
  type: 'test'
  ...
# Subtest: another choice drops a family no role leads with any more, in the same op
ok 136 - another choice drops a family no role leads with any more, in the same op
  ---
  duration_ms: 0.303845
  type: 'test'
  ...
# Subtest: a pick answered after a newer choice for its field commits nothing
ok 137 - a pick answered after a newer choice for its field commits nothing
  ---
  duration_ms: 0.70545
  type: 'test'
  ...
# Subtest: two picks answered out of order: the newer one is the one written
ok 138 - two picks answered out of order: the newer one is the one written
  ---
  duration_ms: 0.237586
  type: 'test'
  ...
# Subtest: a change to one field does not cancel the other field's pick
ok 139 - a change to one field does not cancel the other field's pick
  ---
  duration_ms: 0.732223
  type: 'test'
  ...
# Subtest: the ops are ones the document takes
ok 140 - the ops are ones the document takes
  ---
  duration_ms: 6.772924
  type: 'test'
  ...
# Subtest: a change that loads runs once and releases the queue in order
ok 141 - a change that loads runs once and releases the queue in order
  ---
  duration_ms: 6.118726
  type: 'test'
  ...
# Subtest: a refusal releases the queue in order and refills the inspector
ok 142 - a refusal releases the queue in order and refills the inspector
  ---
  duration_ms: 1.222646
  type: 'test'
  ...
# Subtest: a refusal whose notice throws still releases the queue
ok 143 - a refusal whose notice throws still releases the queue
  ---
  duration_ms: 1.204039
  type: 'test'
  ...
# Subtest: a change that throws still releases the queue, and is refused
ok 144 - a change that throws still releases the queue, and is refused
  ---
  duration_ms: 0.875791
  type: 'test'
  ...
# Subtest: a change that can no longer be made once its font is in is said as interrupted, not as a font that failed
ok 145 - a change that can no longer be made once its font is in is said as interrupted, not as a font that failed
  ---
  duration_ms: 1.012619
  type: 'test'
  ...
# Subtest: a second change during a wait is refused at once and never queued
ok 146 - a second change during a wait is refused at once and never queued
  ---
  duration_ms: 0.661948
  type: 'test'
  ...
# Subtest: free() with no wait on resolves at once
ok 147 - free() with no wait on resolves at once
  ---
  duration_ms: 2.795947
  type: 'test'
  ...
# Subtest: a wait makes the Deck settings dialog inert with the card
ok 148 - a wait makes the Deck settings dialog inert with the card
  ---
  duration_ms: 0.718243
  type: 'test'
  ...
# Subtest: the shared vectors have cases to check
ok 149 - the shared vectors have cases to check
  ---
  duration_ms: 1.424496
  type: 'test'
  ...
# Subtest: familiesOfView: an empty deck draws in nothing
ok 150 - familiesOfView: an empty deck draws in nothing
  ---
  duration_ms: 0.916947
  type: 'test'
  ...
# Subtest: familiesOfView: paper: serif headings, sans body
ok 151 - familiesOfView: paper: serif headings, sans body
  ---
  duration_ms: 0.655715
  type: 'test'
  ...
# Subtest: familiesOfView: ink: sans for both
ok 152 - familiesOfView: ink: sans for both
  ---
  duration_ms: 0.198284
  type: 'test'
  ...
# Subtest: familiesOfView: an unknown theme is paper
ok 153 - familiesOfView: an unknown theme is paper
  ---
  duration_ms: 0.182118
  type: 'test'
  ...
# Subtest: familiesOfView: a code block brings in mono
ok 154 - familiesOfView: a code block brings in mono
  ---
  duration_ms: 0.142315
  type: 'test'
  ...
# Subtest: familiesOfView: an empty code block still does
ok 155 - familiesOfView: an empty code block still does
  ---
  duration_ms: 0.357515
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a text block
ok 156 - familiesOfView: a code mark in a text block
  ---
  duration_ms: 1.615101
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a heading
ok 157 - familiesOfView: a code mark in a heading
  ---
  duration_ms: 0.576075
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a table cell
ok 158 - familiesOfView: a code mark in a table cell
  ---
  duration_ms: 0.817849
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in the notes is the chrome's
ok 159 - familiesOfView: a code mark in the notes is the chrome's
  ---
  duration_ms: 0.274655
  type: 'test'
  ...
# Subtest: familiesOfView: bold, italic, highlight and links stay in the family
ok 160 - familiesOfView: bold, italic, highlight and links stay in the family
  ---
  duration_ms: 0.144436
  type: 'test'
  ...
# Subtest: familiesOfView: the inspector's system heading drops serif
ok 161 - familiesOfView: the inspector's system heading drops serif
  ---
  duration_ms: 0.240204
  type: 'test'
  ...
# Subtest: familiesOfView: system faces for both draw in no web face
ok 162 - familiesOfView: system faces for both draw in no web face
  ---
  duration_ms: 0.086002
  type: 'test'
  ...
# Subtest: familiesOfView: a body override naming mono
ok 163 - familiesOfView: a body override naming mono
  ---
  duration_ms: 0.07284
  type: 'test'
  ...
# Subtest: familiesOfView: a family anywhere in a stack counts
ok 164 - familiesOfView: a family anywhere in a stack counts
  ---
  duration_ms: 0.064637
  type: 'test'
  ...
# Subtest: familiesOfView: an override that fails the allowlist is the theme's
ok 165 - familiesOfView: an override that fails the allowlist is the theme's
  ---
  duration_ms: 0.174893
  type: 'test'
  ...
# Subtest: familiesOfView: a too-long override is the theme's
ok 166 - familiesOfView: a too-long override is the theme's
  ---
  duration_ms: 0.080433
  type: 'test'
  ...
# Subtest: familiesOfView: padded overrides are trimmed
ok 167 - familiesOfView: padded overrides are trimmed
  ---
  duration_ms: 0.070275
  type: 'test'
  ...
# Subtest: familiesOfView: a family named only on a later slide's code
ok 168 - familiesOfView: a family named only on a later slide's code
  ---
  duration_ms: 0.08559
  type: 'test'
  ...
# Subtest: familiesOfView: an uploaded family in the heading only
ok 169 - familiesOfView: an uploaded family in the heading only
  ---
  duration_ms: 0.115265
  type: 'test'
  ...
# Subtest: familiesOfView: an uploaded family in the body only
ok 170 - familiesOfView: an uploaded family in the body only
  ---
  duration_ms: 0.077097
  type: 'test'
  ...
# Subtest: familiesOfView: an uploaded family listed but unused is not needed
ok 171 - familiesOfView: an uploaded family listed but unused is not needed
  ---
  duration_ms: 0.063645
  type: 'test'
  ...
# Subtest: familiesOfView: an odd but clean name
ok 172 - familiesOfView: an odd but clean name
  ---
  duration_ms: 0.061126
  type: 'test'
  ...
# Subtest: familiesOfView: a stack naming an uploaded family the deck does not list falls back
ok 173 - familiesOfView: a stack naming an uploaded family the deck does not list falls back
  ---
  duration_ms: 0.078814
  type: 'test'
  ...
# Subtest: familiesOfView: an uploaded family only later in a stack is not needed
ok 174 - familiesOfView: an uploaded family only later in a stack is not needed
  ---
  duration_ms: 0.061321
  type: 'test'
  ...
# Subtest: familiesOfView: two uploaded families come in fontFiles order
ok 175 - familiesOfView: two uploaded families come in fontFiles order
  ---
  duration_ms: 0.064536
  type: 'test'
  ...
# Subtest: familiesOfView: one uploaded family in both roles is needed once
ok 176 - familiesOfView: one uploaded family in both roles is needed once
  ---
  duration_ms: 0.063774
  type: 'test'
  ...
# Subtest: familiesOfView: an empty deck needs no uploaded family
ok 177 - familiesOfView: an empty deck needs no uploaded family
  ---
  duration_ms: 0.060072
  type: 'test'
  ...
# Subtest: a stack names a family wherever it appears, in any case, quoted or not
ok 178 - a stack names a family wherever it appears, in any case, quoted or not
  ---
  duration_ms: 0.159738
  type: 'test'
  ...
# Subtest: safeFontStack is render.go's allowlist
ok 179 - safeFontStack is render.go's allowlist
  ---
  duration_ms: 0.133178
  type: 'test'
  ...
# Subtest: a section names its heading and body families
ok 180 - a section names its heading and body families
  ---
  duration_ms: 0.351868
  type: 'test'
  ...
# Subtest: a section with code in it brings in the code family
ok 181 - a section with code in it brings in the code family
  ---
  duration_ms: 0.260985
  type: 'test'
  ...
# Subtest: only the two font properties are read off a section
ok 182 - only the two font properties are read off a section
  ---
  duration_ms: 0.149667
  type: 'test'
  ...
# Subtest: nothing joins the page until all four faces of a family are in, and then all four do
ok 183 - nothing joins the page until all four faces of a family are in, and then all four do
  ---
  duration_ms: 8.441692
  type: 'test'
  ...
# Subtest: every face is a block face of the manifest's family, weight and style
ok 184 - every face is a block face of the manifest's family, weight and style
  ---
  duration_ms: 2.87365
  type: 'test'
  ...
# Subtest: a family that misses the deadline is committed and never joins, even when it arrives
ok 185 - a family that misses the deadline is committed and never joins, even when it arrives
  ---
  duration_ms: 1.439227
  type: 'test'
  ...
# Subtest: a family whose file fails is committed by the gate: wrong but stable
ok 186 - a family whose file fails is committed by the gate: wrong but stable
  ---
  duration_ms: 1.005061
  type: 'test'
  ...
# Subtest: a person's action waits for its family and then may run, once it is in
ok 187 - a person's action waits for its family and then may run, once it is in
  ---
  duration_ms: 1.364001
  type: 'test'
  ...
# Subtest: a person's action is refused when its family fails or is late, and nothing is committed
ok 188 - a person's action is refused when its family fails or is late, and nothing is committed
  ---
  duration_ms: 2.429674
  type: 'test'
  ...
# Subtest: content from elsewhere waits for a new family, then is committed past the timeout, never held
ok 189 - content from elsewhere waits for a new family, then is committed past the timeout, never held
  ---
  duration_ms: 1.161314
  type: 'test'
  ...
# Subtest: a family on screen in its web face is never committed
ok 190 - a family on screen in its web face is never committed
  ---
  duration_ms: 1.7335
  type: 'test'
  ...
# Subtest: a composition commits a family that is not in, rather than waiting
ok 191 - a composition commits a family that is not in, rather than waiting
  ---
  duration_ms: 0.778792
  type: 'test'
  ...
# Subtest: prefetch loads the families not asked for yet, one at a time, and puts none on
ok 192 - prefetch loads the families not asked for yet, one at a time, and puts none on
  ---
  duration_ms: 1.727035
  type: 'test'
  ...
# Subtest: an unknown family is no family
ok 193 - an unknown family is no family
  ---
  duration_ms: 0.419237
  type: 'test'
  ...
# Subtest: the system session is ready for everything and loads nothing
ok 194 - the system session is ready for everything and loads nothing
  ---
  duration_ms: 0.281662
  type: 'test'
  ...
# Subtest: an uploaded face loads in its own format and weight, under its name as it is
ok 195 - an uploaded face loads in its own format and weight, under its name as it is
  ---
  duration_ms: 6.710924
  type: 'test'
  ...
# Subtest: a catalog face is woff2
ok 196 - a catalog face is woff2
  ---
  duration_ms: 0.980495
  type: 'test'
  ...
# Subtest: an uploaded family late past the deadline is committed and never joins
ok 197 - an uploaded family late past the deadline is committed and never joins
  ---
  duration_ms: 1.442234
  type: 'test'
  ...
# Subtest: the editor brings in the deck's uploaded families too
ok 198 - the editor brings in the deck's uploaded families too
  ---
  duration_ms: 3.230029
  type: 'test'
  ...
# Subtest: a family the deck takes on during the visit is learned, once
ok 199 - a family the deck takes on during the visit is learned, once
  ---
  duration_ms: 1.287848
  type: 'test'
  ...
# Subtest: uploadedFamily is the manifest's entry for one of meta.fontFiles
ok 200 - uploadedFamily is the manifest's entry for one of meta.fontFiles
  ---
  duration_ms: 0.480619
  type: 'test'
  ...
# Subtest: a rendered slide names an uploaded family by leading a stack with it
ok 201 - a rendered slide names an uploaded family by leading a stack with it
  ---
  duration_ms: 0.847784
  type: 'test'
  ...
# Subtest: a change that brings in an uploaded family this tab never knew is checked, and waits for it
ok 202 - a change that brings in an uploaded family this tab never knew is checked, and waits for it
  ---
  duration_ms: 12.858893
  type: 'test'
  ...
# Subtest: an uploaded family already on screen in its fallback is committed there when learned, never loaded
ok 203 - an uploaded family already on screen in its fallback is committed there when learned, never loaded
  ---
  duration_ms: 5.362201
  type: 'test'
  ...
# Subtest: a family whose faces change is learned again, and its new set joins in place of the old, once all have loaded
ok 204 - a family whose faces change is learned again, and its new set joins in place of the old, once all have loaded
  ---
  duration_ms: 8.368911
  type: 'test'
  ...
# Subtest: a new set late past its timeout leaves the old set on the page, never a fallback
ok 205 - a new set late past its timeout leaves the old set on the page, never a fallback
  ---
  duration_ms: 1.850875
  type: 'test'
  ...
# Subtest: the editor: picking the grown family waits for its new set; undo and redo swap sets with the change
ok 206 - the editor: picking the grown family waits for its new set; undo and redo swap sets with the change
  ---
  duration_ms: 18.25994
  type: 'test'
  ...
# Subtest: a change refused while its new set loads leaves the tab on the deck's own set
ok 207 - a change refused while its new set loads leaves the tab on the deck's own set
  ---
  duration_ms: 4.432481
  type: 'test'
  ...
# Subtest: a range carrying the mark is pressed; one without is not
ok 208 - a range carrying the mark is pressed; one without is not
  ---
  duration_ms: 2.351556
  type: 'test'
  ...
# Subtest: at a cursor, the stored marks decide
ok 209 - at a cursor, the stored marks decide
  ---
  duration_ms: 0.638594
  type: 'test'
  ...
# Subtest: focus moving to another place to type lets go; to a button keeps the view
ok 210 - focus moving to another place to type lets go; to a button keeps the view
  ---
  duration_ms: 0.275416
  type: 'test'
  ...
# Subtest: the whole card is the bar: its own fields keep the view
ok 211 - the whole card is the bar: its own fields keep the view
  ---
  duration_ms: 0.225727
  type: 'test'
  ...
# Subtest: the marks act on the box the card shows, and on no other
ok 212 - the marks act on the box the card shows, and on no other
  ---
  duration_ms: 0.306362
  type: 'test'
  ...
# Subtest: a view's box is the nearest block around it: a table cell's is the table
ok 213 - a view's box is the nearest block around it: a table cell's is the table
  ---
  duration_ms: 0.180624
  type: 'test'
  ...
# Subtest: an empty body is no frames
ok 214 - an empty body is no frames
  ---
  duration_ms: 1.375321
  type: 'test'
  ...
# Subtest: frames come back in order with their exact bytes
ok 215 - frames come back in order with their exact bytes
  ---
  duration_ms: 0.360769
  type: 'test'
  ...
# Subtest: a length prefix is big-endian
ok 216 - a length prefix is big-endian
  ---
  duration_ms: 0.294506
  type: 'test'
  ...
# Subtest: a truncated frame throws rather than returning a short update
ok 217 - a truncated frame throws rather than returning a short update
  ---
  duration_ms: 1.263039
  type: 'test'
  ...
# Subtest: Format writes the cookie the server reads, and flips the card and its toggles
ok 218 - Format writes the cookie the server reads, and flips the card and its toggles
  ---
  duration_ms: 3.873958
  type: 'test'
  ...
# Subtest: the View menu row toggles the card too, and keeps aria-pressed with the button
ok 219 - the View menu row toggles the card too, and keeps aria-pressed with the button
  ---
  duration_ms: 0.652608
  type: 'test'
  ...
# Subtest: the first paint is the server's: mounting writes nothing and changes nothing
ok 220 - the first paint is the server's: mounting writes nothing and changes nothing
  ---
  duration_ms: 0.684247
  type: 'test'
  ...
# Subtest: an old localStorage 'off' with no cookie is applied once, moved to the cookie as closed, and removed
ok 221 - an old localStorage 'off' with no cookie is applied once, moved to the cookie as closed, and removed
  ---
  duration_ms: 1.36103
  type: 'test'
  ...
# Subtest: an old localStorage 'on' with no cookie is applied once, moved to the cookie as open, and removed
ok 222 - an old localStorage 'on' with no cookie is applied once, moved to the cookie as open, and removed
  ---
  duration_ms: 0.953628
  type: 'test'
  ...
# Subtest: with a cookie already set, an old localStorage key is dropped and not applied
ok 223 - with a cookie already set, an old localStorage key is dropped and not applied
  ---
  duration_ms: 0.708019
  type: 'test'
  ...
# Subtest: with cookies blocked, Format still shows and hides the card for this page
ok 224 - with cookies blocked, Format still shows and hides the card for this page
  ---
  duration_ms: 0.614598
  type: 'test'
  ...
# Subtest: with site data blocked (localStorage throws), the toggle still works
ok 225 - with site data blocked (localStorage throws), the toggle still works
  ---
  duration_ms: 0.343565
  type: 'test'
  ...
# Subtest: showInspector(true, {focus}) focuses the card's first showing control; hiding gives focus back
ok 226 - showInspector(true, {focus}) focuses the card's first showing control; hiding gives focus back
  ---
  duration_ms: 0.843926
  type: 'test'
  ...
# Subtest: Format from the keyboard moves focus into the card; from a pointer it does not
ok 227 - Format from the keyboard moves focus into the card; from a pointer it does not
  ---
  duration_ms: 0.74725
  type: 'test'
  ...
# Subtest: asking to delete a slide shows a hidden card, with focus
ok 228 - asking to delete a slide shows a hidden card, with focus
  ---
  duration_ms: 0.28869
  type: 'test'
  ...
# Subtest: on https the cookie is Secure
ok 229 - on https the cookie is Secure
  ---
  duration_ms: 0.3484
  type: 'test'
  ...
# Subtest: opened from the View menu by keyboard, the card gives focus back to the menu's button, not its hidden row
ok 230 - opened from the View menu by keyboard, the card gives focus back to the menu's button, not its hidden row
  ---
  duration_ms: 0.483389
  type: 'test'
  ...
# Subtest: dismissed from inside the card through the View row, focus goes to the menu's button
ok 231 - dismissed from inside the card through the View row, focus goes to the menu's button
  ---
  duration_ms: 0.285746
  type: 'test'
  ...
# Subtest: a return target that can no longer take focus falls back to Format
ok 232 - a return target that can no longer take focus falls back to Format
  ---
  duration_ms: 0.314324
  type: 'test'
  ...
# Subtest: asking to delete from a strip item's menu returns focus to that menu's button
ok 233 - asking to delete from a strip item's menu returns focus to that menu's button
  ---
  duration_ms: 0.352575
  type: 'test'
  ...
# Subtest: focus into the card reaches a radio group at its checked radio
ok 234 - focus into the card reaches a radio group at its checked radio
  ---
  duration_ms: 0.229534
  type: 'test'
  ...
# Subtest: the bar's title is the one place the deck's title is edited: a change is commitTitle
ok 235 - the bar's title is the one place the deck's title is edited: a change is commitTitle
  ---
  duration_ms: 0.452396
  type: 'test'
  ...
# Subtest: a menu row's dialog opens modal, and on close focus goes to the menu's title
ok 236 - a menu row's dialog opens modal, and on close focus goes to the menu's title
  ---
  duration_ms: 0.345639
  type: 'test'
  ...
# Subtest: an Insert row adds its kind through commands.addBlock, and closes the menu
ok 237 - an Insert row adds its kind through commands.addBlock, and closes the menu
  ---
  duration_ms: 0.571649
  type: 'test'
  ...
# Subtest: View → Outline opens the Outline under the View menu's title, and leaves the card alone
ok 238 - View → Outline opens the Outline under the View menu's title, and leaves the card alone
  ---
  duration_ms: 0.357488
  type: 'test'
  ...
# Subtest: it starts on the slide, as the server rendered it
ok 239 - it starts on the slide, as the server rendered it
  ---
  duration_ms: 1.67452
  type: 'test'
  ...
# Subtest: a box selected shows the box
ok 240 - a box selected shows the box
  ---
  duration_ms: 1.684934
  type: 'test'
  ...
# Subtest: nothing selected shows the slide
ok 241 - nothing selected shows the slide
  ---
  duration_ms: 0.17749
  type: 'test'
  ...
# Subtest: the selected box gone (deleted, or its creation undone) shows the slide, never an empty box
ok 242 - the selected box gone (deleted, or its creation undone) shows the slide, never an empty box
  ---
  duration_ms: 0.160353
  type: 'test'
  ...
# Subtest: the caret in the notes shows the notes
ok 243 - the caret in the notes shows the notes
  ---
  duration_ms: 0.304587
  type: 'test'
  ...
# Subtest: with the caret in the notes, nothing selected stays on the notes; a box selected shows the box
ok 244 - with the caret in the notes, nothing selected stays on the notes; a box selected shows the box
  ---
  duration_ms: 0.156674
  type: 'test'
  ...
# Subtest: the caret back on the stage leaves the kind to the selection
ok 245 - the caret back on the stage leaves the kind to the selection
  ---
  duration_ms: 0.327217
  type: 'test'
  ...
# Subtest: reset shows the slide, from anything
ok 246 - reset shows the slide, from anything
  ---
  duration_ms: 0.263362
  type: 'test'
  ...
# Subtest: onChange hears a change of kind only, never a repeat
ok 247 - onChange hears a change of kind only, never a repeat
  ---
  duration_ms: 0.500812
  type: 'test'
  ...
# Subtest: a box, the notes, then the same box again shows the box
ok 248 - a box, the notes, then the same box again shows the box
  ---
  duration_ms: 0.598908
  type: 'test'
  ...
# Subtest: no slide left (a colleague removed the last one) shows the deck, from the notes or a box
ok 249 - no slide left (a colleague removed the last one) shows the deck, from the notes or a box
  ---
  duration_ms: 0.346565
  type: 'test'
  ...
# Subtest: a slide shown keeps the card as it was: the notes stay the notes
ok 250 - a slide shown keeps the card as it was: the notes stay the notes
  ---
  duration_ms: 0.132825
  type: 'test'
  ...
# Subtest: appearsOf: with the slide, on a press, item by item
ok 251 - appearsOf: with the slide, on a press, item by item
  ---
  duration_ms: 1.184396
  type: 'test'
  ...
# Subtest: appearsOps: On a press takes the next step after the largest
ok 252 - appearsOps: On a press takes the next step after the largest
  ---
  duration_ms: 1.294239
  type: 'test'
  ...
# Subtest: appearsOps: With the slide clears the step and the items
ok 253 - appearsOps: With the slide clears the step and the items
  ---
  duration_ms: 0.352631
  type: 'test'
  ...
# Subtest: appearsOps: Item by item is a list's, and gives it a press when it has none
ok 254 - appearsOps: Item by item is a list's, and gives it a press when it has none
  ---
  duration_ms: 0.234143
  type: 'test'
  ...
# Subtest: afterOps: the midpoint between the press and the next one, nothing renumbered
ok 255 - afterOps: the midpoint between the press and the next one, nothing renumbered
  ---
  duration_ms: 1.543872
  type: 'test'
  ...
# Subtest: afterOps: the box ends up in the press after the one chosen
ok 256 - afterOps: the box ends up in the press after the one chosen
  ---
  duration_ms: 0.284024
  type: 'test'
  ...
# Subtest: afterChoices: each press of the other boxes, by number; an item-by-item list counts its items
ok 257 - afterChoices: each press of the other boxes, by number; an item-by-item list counts its items
  ---
  duration_ms: 0.430721
  type: 'test'
  ...
# Subtest: appearsShown: Item by item is offered on a list alone
ok 258 - appearsShown: Item by item is offered on a list alone
  ---
  duration_ms: 0.404069
  type: 'test'
  ...
# Subtest: marksFor: press numbers in press order, not step values; a list item by item numbers each item
ok 259 - marksFor: press numbers in press order, not step values; a list item by item numbers each item
  ---
  duration_ms: 1.28436
  type: 'test'
  ...
# Subtest: deck controls are set_meta
ok 260 - deck controls are set_meta
  ---
  duration_ms: 16.643004
  type: 'test'
  ...
# Subtest: slide controls are set_slide, and background keeps its colour
ok 261 - slide controls are set_slide, and background keeps its colour
  ---
  duration_ms: 6.193254
  type: 'test'
  ...
# Subtest: move up and down are move_slide with the right after
ok 262 - move up and down are move_slide with the right after
  ---
  duration_ms: 2.349774
  type: 'test'
  ...
# Subtest: block props: value kinds, region, a shape label
ok 263 - block props: value kinds, region, a shape label
  ---
  duration_ms: 2.835183
  type: 'test'
  ...
# Subtest: box fields are set_block on the desktop and set_phone in the phone view
ok 264 - box fields are set_block on the desktop and set_phone in the phone view
  ---
  duration_ms: 3.065799
  type: 'test'
  ...
# Subtest: move block and the layer buttons
ok 265 - move block and the layer buttons
  ---
  duration_ms: 1.863987
  type: 'test'
  ...
# Subtest: add block: region after the selection on flow, a default box on canvas, a heading level that fits
ok 266 - add block: region after the selection on flow, a default box on canvas, a heading level that fits
  ---
  duration_ms: 8.9639
  type: 'test'
  ...
# Subtest: a block is named by its type and its first words
ok 267 - a block is named by its type and its first words
  ---
  duration_ms: 1.293572
  type: 'test'
  ...
# Subtest: blockChange: a control element to its op
ok 268 - blockChange: a control element to its op
  ---
  duration_ms: 2.094198
  type: 'test'
  ...
# Subtest: a segmented choice: setValue checks the radio for the value, and its change is the prop
ok 269 - a segmented choice: setValue checks the radio for the value, and its change is the prop
  ---
  duration_ms: 1.841644
  type: 'test'
  ...
# Subtest: corner radius shows for an image and a rectangle, not for a shape with no corners
ok 270 - corner radius shows for an image and a rectangle, not for a shape with no corners
  ---
  duration_ms: 3.271911
  type: 'test'
  ...
# Subtest: a shape's swatches show what the slide shows: no fill as none, no stroke in the ink
ok 271 - a shape's swatches show what the slide shows: no fill as none, no stroke in the ink
  ---
  duration_ms: 1.319376
  type: 'test'
  ...
# Subtest: Position and size keeps open or closed across a remount, in memory only
ok 272 - Position and size keeps open or closed across a remount, in memory only
  ---
  duration_ms: 4.396111
  type: 'test'
  ...
# Subtest: setValue leaves the focused select alone, except in a forced fill (undo, redo)
ok 273 - setValue leaves the focused select alone, except in a forced fill (undo, redo)
  ---
  duration_ms: 0.24648
  type: 'test'
  ...
# Subtest: litFor: Free placement on a canvas slide, else the template
ok 274 - litFor: Free placement on a canvas slide, else the template
  ---
  duration_ms: 1.271954
  type: 'test'
  ...
# Subtest: pickOps: the four cases, op for op
ok 275 - pickOps: the four cases, op for op
  ---
  duration_ms: 0.945139
  type: 'test'
  ...
# Subtest: the pictures are the seven templates, then Free placement
ok 276 - the pictures are the seven templates, then Free placement
  ---
  duration_ms: 0.131436
  type: 'test'
  ...
# Subtest: fill lights exactly one picture: the template, or Free placement
ok 277 - fill lights exactly one picture: the template, or Free placement
  ---
  duration_ms: 2.117012
  type: 'test'
  ...
# Subtest: a choice on a flow slide commits its op, and asks nothing
ok 278 - a choice on a flow slide commits its op, and asks nothing
  ---
  duration_ms: 0.918357
  type: 'test'
  ...
# Subtest: a template on a canvas slide asks in the card first and commits nothing
ok 279 - a template on a canvas slide asks in the card first and commits nothing
  ---
  duration_ms: 2.297235
  type: 'test'
  ...
# Subtest: its action commits both ops in one commit call
ok 280 - its action commits both ops in one commit call
  ---
  duration_ms: 0.929846
  type: 'test'
  ...
# Subtest: cancel commits nothing and lights Free placement again
ok 281 - cancel commits nothing and lights Free placement again
  ---
  duration_ms: 1.028506
  type: 'test'
  ...
# Subtest: choosing Free placement again while asked withdraws the question
ok 282 - choosing Free placement again while asked withdraws the question
  ---
  duration_ms: 1.008165
  type: 'test'
  ...
# Subtest: fill after the slide became flow elsewhere withdraws the question, and the action commits nothing
ok 283 - fill after the slide became flow elsewhere withdraws the question, and the action commits nothing
  ---
  duration_ms: 1.329958
  type: 'test'
  ...
# Subtest: fill on another slide, or none, withdraws the question
ok 284 - fill on another slide, or none, withdraws the question
  ---
  duration_ms: 1.009771
  type: 'test'
  ...
# Subtest: Escape in a row's popover closes it, focuses its row, and goes no further
ok 285 - Escape in a row's popover closes it, focuses its row, and goes no further
  ---
  duration_ms: 0.85593
  type: 'test'
  ...
# Subtest: destroy takes every listener off the form
ok 286 - destroy takes every listener off the form
  ---
  duration_ms: 0.541661
  type: 'test'
  ...
# Subtest: open resolves to the button that closed it and the trimmed field
ok 287 - open resolves to the button that closed it and the trimmed field
  ---
  duration_ms: 1.655448
  type: 'test'
  ...
# Subtest: a second open while the dialog is up joins the first
ok 288 - a second open while the dialog is up joins the first
  ---
  duration_ms: 0.22666
  type: 'test'
  ...
# Subtest: a missing dialog mounts as nothing
ok 289 - a missing dialog mounts as nothing
  ---
  duration_ms: 0.136086
  type: 'test'
  ...
# Subtest: a tab advances its own cursor only when its POST is the very next row
ok 290 - a tab advances its own cursor only when its POST is the very next row
  ---
  duration_ms: 1.347258
  type: 'test'
  ...
# Subtest: the cursor never moves backwards when a response is overtaken by this tab's own write
ok 291 - the cursor never moves backwards when a response is overtaken by this tab's own write
  ---
  duration_ms: 0.623128
  type: 'test'
  ...
# Subtest: a later response still carries the cursor forward
ok 292 - a later response still carries the cursor forward
  ---
  duration_ms: 0.354727
  type: 'test'
  ...
# Subtest: a burst of notifications collapses into one fetch at a time
ok 293 - a burst of notifications collapses into one fetch at a time
  ---
  duration_ms: 0.260768
  type: 'test'
  ...
# Subtest: an event naming a seq the tab already has fetches nothing
ok 294 - an event naming a seq the tab already has fetches nothing
  ---
  duration_ms: 0.359147
  type: 'test'
  ...
# Subtest: a stopped subscriber drops a response that arrives late
ok 295 - a stopped subscriber drops a response that arrives late
  ---
  duration_ms: 0.252349
  type: 'test'
  ...
# Subtest: stop closes the stream, and start opens exactly one
ok 296 - stop closes the stream, and start opens exactly one
  ---
  duration_ms: 0.330503
  type: 'test'
  ...
# Subtest: a hidden tab closes its stream on a shortened deadline, and activity reopens it
ok 297 - a hidden tab closes its stream on a shortened deadline, and activity reopens it
  ---
  duration_ms: 0.971423
  type: 'test'
  ...
# Subtest: switching away and back inside the grace never drops the stream, so nothing has to be caught up
ok 298 - switching away and back inside the grace never drops the stream, so nothing has to be caught up
  ---
  duration_ms: 0.87237
  type: 'test'
  ...
# Subtest: a visible tab that is only being READ closes when idle and comes back on any activity
ok 299 - a visible tab that is only being READ closes when idle and comes back on any activity
  ---
  duration_ms: 0.712685
  type: 'test'
  ...
# Subtest: activity while streaming defers the idle close rather than reopening anything
ok 300 - activity while streaming defers the idle close rather than reopening anything
  ---
  duration_ms: 1.05122
  type: 'test'
  ...
# Subtest: a stream failure is never reported as a save failure, and heals on activity
ok 301 - a stream failure is never reported as a save failure, and heals on activity
  ---
  duration_ms: 0.245819
  type: 'test'
  ...
# Subtest: an empty response advances the cursor without applying anything
ok 302 - an empty response advances the cursor without applying anything
  ---
  duration_ms: 0.152637
  type: 'test'
  ...
# Subtest: a failed fetch leaves the cursor alone so the next notification retries it
ok 303 - a failed fetch leaves the cursor alone so the next notification retries it
  ---
  duration_ms: 0.19222
  type: 'test'
  ...
# Subtest: a decode failure retries once through the raw log, then gives up
ok 304 - a decode failure retries once through the raw log, then gives up
  ---
  duration_ms: 0.225812
  type: 'test'
  ...
# Subtest: updatesURL spells the query string exactly, in particular raw as the literal raw=1
ok 305 - updatesURL spells the query string exactly, in particular raw as the literal raw=1
  ---
  duration_ms: 0.138184
  type: 'test'
  ...
# Subtest: leaving the page closes the stream at once, and coming back reopens it and catches up
ok 306 - leaving the page closes the stream at once, and coming back reopens it and catches up
  ---
  duration_ms: 0.317269
  type: 'test'
  ...
# Subtest: a page left before its subscriber starts never opens a stream
ok 307 - a page left before its subscriber starts never opens a stream
  ---
  duration_ms: 0.133135
  type: 'test'
  ...
# Subtest: moves vectors
    # Subtest: next through a slide
    ok 1 - next through a slide
      ---
      duration_ms: 1.808251
      type: 'test'
      ...
    # Subtest: next through a slide to its last press
    ok 2 - next through a slide to its last press
      ---
      duration_ms: 0.173828
      type: 'test'
      ...
    # Subtest: next across slides with no steps
    ok 3 - next across slides with no steps
      ---
      duration_ms: 0.408209
      type: 'test'
      ...
    # Subtest: next across slides skips full only and parked in core
    ok 4 - next across slides skips full only and parked in core
      ---
      duration_ms: 0.322032
      type: 'test'
      ...
    # Subtest: next across slides shows full only in full
    ok 5 - next across slides shows full only in full
      ---
      duration_ms: 0.293294
      type: 'test'
      ...
    # Subtest: next across slides skips parked in full
    ok 6 - next across slides skips parked in full
      ---
      duration_ms: 0.17859
      type: 'test'
      ...
    # Subtest: next from a step above the count leaves the slide
    ok 7 - next from a step above the count leaves the slide
      ---
      duration_ms: 0.147624
      type: 'test'
      ...
    # Subtest: next at the end of the talk stays
    ok 8 - next at the end of the talk stays
      ---
      duration_ms: 0.321189
      type: 'test'
      ...
    # Subtest: back through a slide
    ok 9 - back through a slide
      ---
      duration_ms: 0.57681
      type: 'test'
      ...
    # Subtest: back lands fully built
    ok 10 - back lands fully built
      ---
      duration_ms: 1.625252
      type: 'test'
      ...
    # Subtest: back lands fully built on a full only slide in full
    ok 11 - back lands fully built on a full only slide in full
      ---
      duration_ms: 0.248799
      type: 'test'
      ...
    # Subtest: back across a slide with no steps
    ok 12 - back across a slide with no steps
      ---
      duration_ms: 0.115139
      type: 'test'
      ...
    # Subtest: back at the start of the talk stays
    ok 13 - back at the start of the talk stays
      ---
      duration_ms: 0.072376
      type: 'test'
      ...
    # Subtest: back at the start skips a full only first slide in core
    ok 14 - back at the start skips a full only first slide in core
      ---
      duration_ms: 0.068556
      type: 'test'
      ...
    # Subtest: first
    ok 15 - first
      ---
      duration_ms: 0.063583
      type: 'test'
      ...
    # Subtest: first in core skips a full only first slide
    ok 16 - first in core skips a full only first slide
      ---
      duration_ms: 0.056805
      type: 'test'
      ...
    # Subtest: first in full
    ok 17 - first in full
      ---
      duration_ms: 0.0683
      type: 'test'
      ...
    # Subtest: last
    ok 18 - last
      ---
      duration_ms: 0.057049
      type: 'test'
      ...
    # Subtest: last skips a parked last slide
    ok 19 - last skips a parked last slide
      ---
      duration_ms: 0.052991
      type: 'test'
      ...
    # Subtest: goto lands at step 0
    ok 20 - goto lands at step 0
      ---
      duration_ms: 0.058991
      type: 'test'
      ...
    # Subtest: goto the current slide goes back to step 0
    ok 21 - goto the current slide goes back to step 0
      ---
      duration_ms: 0.058791
      type: 'test'
      ...
    # Subtest: goto a full only slide from core switches to full
    ok 22 - goto a full only slide from core switches to full
      ---
      duration_ms: 0.059805
      type: 'test'
      ...
    # Subtest: goto a parked slide changes nothing
    ok 23 - goto a parked slide changes nothing
      ---
      duration_ms: 0.051782
      type: 'test'
      ...
    # Subtest: goto a missing slide changes nothing
    ok 24 - goto a missing slide changes nothing
      ---
      duration_ms: 0.05096
      type: 'test'
      ...
    # Subtest: goto with no slide changes nothing
    ok 25 - goto with no slide changes nothing
      ---
      duration_ms: 0.066818
      type: 'test'
      ...
    # Subtest: mode flips core to full and keeps the position
    ok 26 - mode flips core to full and keeps the position
      ---
      duration_ms: 0.052751
      type: 'test'
      ...
    # Subtest: mode flips full to core on a full only slide and keeps the position
    ok 27 - mode flips full to core on a full only slide and keeps the position
      ---
      duration_ms: 0.082183
      type: 'test'
      ...
    # Subtest: mode keeps black
    ok 28 - mode keeps black
      ---
      duration_ms: 0.052156
      type: 'test'
      ...
    # Subtest: next on a full only slide in core steps through it
    ok 29 - next on a full only slide in core steps through it
      ---
      duration_ms: 0.195908
      type: 'test'
      ...
    # Subtest: next on a full only slide in core leaves by its place in the deck
    ok 30 - next on a full only slide in core leaves by its place in the deck
      ---
      duration_ms: 0.080232
      type: 'test'
      ...
    # Subtest: back on a full only slide in core leaves by its place in the deck
    ok 31 - back on a full only slide in core leaves by its place in the deck
      ---
      duration_ms: 0.07809
      type: 'test'
      ...
    # Subtest: next on a parked slide leaves by its place in the deck
    ok 32 - next on a parked slide leaves by its place in the deck
      ---
      duration_ms: 0.062681
      type: 'test'
      ...
    # Subtest: back on a parked slide leaves by its place in the deck
    ok 33 - back on a parked slide leaves by its place in the deck
      ---
      duration_ms: 0.065574
      type: 'test'
      ...
    # Subtest: next from a missing slide lands where settle would
    ok 34 - next from a missing slide lands where settle would
      ---
      duration_ms: 0.214058
      type: 'test'
      ...
    # Subtest: black turns the screen black
    ok 35 - black turns the screen black
      ---
      duration_ms: 0.080288
      type: 'test'
      ...
    # Subtest: black again lifts it
    ok 36 - black again lifts it
      ---
      duration_ms: 0.058884
      type: 'test'
      ...
    # Subtest: next lifts black
    ok 37 - next lifts black
      ---
      duration_ms: 0.068084
      type: 'test'
      ...
    # Subtest: next at the end lifts black and stays
    ok 38 - next at the end lifts black and stays
      ---
      duration_ms: 0.320316
      type: 'test'
      ...
    # Subtest: back lifts black
    ok 39 - back lifts black
      ---
      duration_ms: 0.884778
      type: 'test'
      ...
    # Subtest: back at the start lifts black and stays
    ok 40 - back at the start lifts black and stays
      ---
      duration_ms: 0.079454
      type: 'test'
      ...
    # Subtest: first lifts black
    ok 41 - first lifts black
      ---
      duration_ms: 0.079202
      type: 'test'
      ...
    # Subtest: last lifts black
    ok 42 - last lifts black
      ---
      duration_ms: 0.055549
      type: 'test'
      ...
    # Subtest: goto lifts black
    ok 43 - goto lifts black
      ---
      duration_ms: 0.059441
      type: 'test'
      ...
    # Subtest: an unknown move changes nothing
    ok 44 - an unknown move changes nothing
      ---
      duration_ms: 0.052505
      type: 'test'
      ...
    # Subtest: empty talk: next
    ok 45 - empty talk: next
      ---
      duration_ms: 0.088263
      type: 'test'
      ...
    # Subtest: empty talk: back
    ok 46 - empty talk: back
      ---
      duration_ms: 0.055071
      type: 'test'
      ...
    # Subtest: empty talk: first and last
    ok 47 - empty talk: first and last
      ---
      duration_ms: 0.048802
      type: 'test'
      ...
    # Subtest: empty talk: mode flips and nothing else
    ok 48 - empty talk: mode flips and nothing else
      ---
      duration_ms: 0.046325
      type: 'test'
      ...
    # Subtest: empty talk: goto a parked slide changes nothing
    ok 49 - empty talk: goto a parked slide changes nothing
      ---
      duration_ms: 0.048175
      type: 'test'
      ...
    # Subtest: start: the first slide of the core talk
    ok 50 - start: the first slide of the core talk
      ---
      duration_ms: 0.089327
      type: 'test'
      ...
    # Subtest: start skips a full only first slide
    ok 51 - start skips a full only first slide
      ---
      duration_ms: 0.086098
      type: 'test'
      ...
    # Subtest: start of an empty talk
    ok 52 - start of an empty talk
      ---
      duration_ms: 0.060878
      type: 'test'
      ...
    # Subtest: settle: a position in the talk stays
    ok 53 - settle: a position in the talk stays
      ---
      duration_ms: 0.074882
      type: 'test'
      ...
    # Subtest: settle: a step above the count clamps to the count
    ok 54 - settle: a step above the count clamps to the count
      ---
      duration_ms: 0.063588
      type: 'test'
      ...
    # Subtest: settle: a step below 0 clamps to 0
    ok 55 - settle: a step below 0 clamps to 0
      ---
      duration_ms: 0.059886
      type: 'test'
      ...
    # Subtest: settle: a parked slide becomes the next slide of the order after it
    ok 56 - settle: a parked slide becomes the next slide of the order after it
      ---
      duration_ms: 0.08371
      type: 'test'
      ...
    # Subtest: settle: a parked slide with nothing after it becomes the last
    ok 57 - settle: a parked slide with nothing after it becomes the last
      ---
      duration_ms: 0.085735
      type: 'test'
      ...
    # Subtest: settle: a missing slide with no place known becomes the last
    ok 58 - settle: a missing slide with no place known becomes the last
      ---
      duration_ms: 0.139799
      type: 'test'
      ...
    # Subtest: settle: a full only slide in core stays, its step clamped
    ok 59 - settle: a full only slide in core stays, its step clamped
      ---
      duration_ms: 0.08566
      type: 'test'
      ...
    # Subtest: settle: no slide yet becomes the first
    ok 60 - settle: no slide yet becomes the first
      ---
      duration_ms: 0.065911
      type: 'test'
      ...
    # Subtest: settle: an empty talk gives only the mode
    ok 61 - settle: an empty talk gives only the mode
      ---
      duration_ms: 0.126064
      type: 'test'
      ...
    # Subtest: settle near: deleting B from A-B-C-D lands on C
    ok 62 - settle near: deleting B from A-B-C-D lands on C
      ---
      duration_ms: 0.1247
      type: 'test'
      ...
    # Subtest: settle near: deleting the last slide lands on the new last
    ok 63 - settle near: deleting the last slide lands on the new last
      ---
      duration_ms: 0.071254
      type: 'test'
      ...
    # Subtest: settle near: deleting the only full-only slide while in core
    ok 64 - settle near: deleting the only full-only slide while in core
      ---
      duration_ms: 0.056518
      type: 'test'
      ...
    # Subtest: settle near: a full-only follower is skipped in core
    ok 65 - settle near: a full-only follower is skipped in core
      ---
      duration_ms: 0.0611
      type: 'test'
      ...
    # Subtest: settle near: a full-only follower is kept in full
    ok 66 - settle near: a full-only follower is kept in full
      ---
      duration_ms: 0.113684
      type: 'test'
      ...
    # Subtest: settle near: nothing in the mode after it gives the last
    ok 67 - settle near: nothing in the mode after it gives the last
      ---
      duration_ms: 0.071261
      type: 'test'
      ...
    # Subtest: settle near: deleting all but one
    ok 68 - settle near: deleting all but one
      ---
      duration_ms: 0.062386
      type: 'test'
      ...
    # Subtest: settle near: deleting all but one, from the middle
    ok 69 - settle near: deleting all but one, from the middle
      ---
      duration_ms: 0.099293
      type: 'test'
      ...
    # Subtest: settle near: -1 is no place known, the last
    ok 70 - settle near: -1 is no place known, the last
      ---
      duration_ms: 0.069577
      type: 'test'
      ...
    # Subtest: settle near: a parked slide goes by its own place, not near
    ok 71 - settle near: a parked slide goes by its own place, not near
      ---
      duration_ms: 0.065822
      type: 'test'
      ...
    # Subtest: settle near: a slide still there clamps its step as settle does
    ok 72 - settle near: a slide still there clamps its step as settle does
      ---
      duration_ms: 0.085479
      type: 'test'
      ...
    # Subtest: settle near: an empty talk gives only the mode
    ok 73 - settle near: an empty talk gives only the mode
      ---
      duration_ms: 0.063099
      type: 'test'
      ...
    1..73
ok 308 - moves vectors
  ---
  duration_ms: 19.258862
  type: 'test'
  ...
# Subtest: talkOrder leaves out parked slides, and full-only ones in core
ok 309 - talkOrder leaves out parked slides, and full-only ones in core
  ---
  duration_ms: 0.134588
  type: 'test'
  ...
# Subtest: the keys are the ones the switch used, and the new height key
ok 310 - the keys are the ones the switch used, and the new height key
  ---
  duration_ms: 1.530427
  type: 'test'
  ...
# Subtest: the cookies are the ones the server reads
ok 311 - the cookies are the ones the server reads
  ---
  duration_ms: 0.239527
  type: 'test'
  ...
# Subtest: open, close and toggle set data-state and remember open/closed in the cookie
ok 312 - open, close and toggle set data-state and remember open/closed in the cookie
  ---
  duration_ms: 1.408232
  type: 'test'
  ...
# Subtest: mounting keeps the state the server painted and writes nothing
ok 313 - mounting keeps the state the server painted and writes nothing
  ---
  duration_ms: 1.062932
  type: 'test'
  ...
# Subtest: a localStorage preference from before the cookies is honoured once, moved to the cookies and removed
ok 314 - a localStorage preference from before the cookies is honoured once, moved to the cookies and removed
  ---
  duration_ms: 1.139492
  type: 'test'
  ...
# Subtest: cookies and storage that throw leave the notes working for the visit
ok 315 - cookies and storage that throw leave the notes working for the visit
  ---
  duration_ms: 2.064826
  type: 'test'
  ...
# Subtest: the × closes and moves focus to the tab; the tab opens and moves focus into the notes
ok 316 - the × closes and moves focus to the tab; the tab opens and moves focus into the notes
  ---
  duration_ms: 0.581925
  type: 'test'
  ...
# Subtest: mounting does not take focus
ok 317 - mounting does not take focus
  ---
  duration_ms: 0.328481
  type: 'test'
  ...
# Subtest: HEAD_PX is the card less its body as editor.css draws it: a hairline (1 + 1) and 12px of padding above and below
ok 318 - HEAD_PX is the card less its body as editor.css draws it: a hairline (1 + 1) and 12px of padding above and below
  ---
  duration_ms: 0.380132
  type: 'test'
  ...
# Subtest: clampHeight: at least two lines and the head, at most half the desk
ok 319 - clampHeight: at least two lines and the head, at most half the desk
  ---
  duration_ms: 0.497264
  type: 'test'
  ...
# Subtest: the height is the remembered one, clamped, written as a CSS length and as the separator's value
ok 320 - the height is the remembered one, clamped, written as a CSS length and as the separator's value
  ---
  duration_ms: 0.51955
  type: 'test'
  ...
# Subtest: ArrowUp and ArrowDown move the height by 16px, Home and End go to the limits, each remembered
ok 321 - ArrowUp and ArrowDown move the height by 16px, Home and End go to the limits, each remembered
  ---
  duration_ms: 0.404827
  type: 'test'
  ...
# Subtest: dragging the top edge up makes the notes taller, within the limits, and remembers on release
ok 322 - dragging the top edge up makes the notes taller, within the limits, and remembers on release
  ---
  duration_ms: 0.338728
  type: 'test'
  ...
# Subtest: a stored height clamped on mount: ArrowDown moves from what is shown, and that is remembered
ok 323 - a stored height clamped on mount: ArrowDown moves from what is shown, and that is remembered
  ---
  duration_ms: 0.218237
  type: 'test'
  ...
# Subtest: a desk that shrinks after mount: the next key starts from the height now shown
ok 324 - a desk that shrinks after mount: the next key starts from the height now shown
  ---
  duration_ms: 0.246332
  type: 'test'
  ...
# Subtest: a window resize narrows what is shown and keeps the preferred height for when the room comes back
ok 325 - a window resize narrows what is shown and keeps the preferred height for when the room comes back
  ---
  duration_ms: 0.260197
  type: 'test'
  ...
# Subtest: a drag after clamping moves from the shown height on its first pixel
ok 326 - a drag after clamping moves from the shown height on its first pixel
  ---
  duration_ms: 0.201814
  type: 'test'
  ...
# Subtest: refresh() writes the tab's text: the word for notes, and the count of words when there are any
ok 327 - refresh() writes the tab's text: the word for notes, and the count of words when there are any
  ---
  duration_ms: 0.261723
  type: 'test'
  ...
# Subtest: refresh() writes nothing when the tab already says it (the server's first paint)
ok 328 - refresh() writes nothing when the tab already says it (the server's first paint)
  ---
  duration_ms: 0.226833
  type: 'test'
  ...
# Subtest: countWords: what the server counts (strings.Fields of the plain text), through paragraphs and runs
ok 329 - countWords: what the server counts (strings.Fields of the plain text), through paragraphs and runs
  ---
  duration_ms: 0.632275
  type: 'test'
  ...
# Subtest: empty_doc_views_as_defaults
ok 330 - empty_doc_views_as_defaults
  ---
  duration_ms: 3.88539
  type: 'test'
  ...
# Subtest: set_meta
ok 331 - set_meta
  ---
  duration_ms: 3.088723
  type: 'test'
  ...
# Subtest: slides: add, move, remove, set_slide, set_notes
ok 332 - slides: add, move, remove, set_slide, set_notes
  ---
  duration_ms: 6.874897
  type: 'test'
  ...
# Subtest: duplicate_slide
ok 333 - duplicate_slide
  ---
  duration_ms: 3.874375
  type: 'test'
  ...
# Subtest: blocks: add, move, remove, set_block
ok 334 - blocks: add, move, remove, set_block
  ---
  duration_ms: 4.661809
  type: 'test'
  ...
# Subtest: set_phone
ok 335 - set_phone
  ---
  duration_ms: 1.301885
  type: 'test'
  ...
# Subtest: table cells follow rows and cols
ok 336 - table cells follow rows and cols
  ---
  duration_ms: 1.316766
  type: 'test'
  ...
# Subtest: canvas blocks: box defaults from the region, z from the index
ok 337 - canvas blocks: box defaults from the region, z from the index
  ---
  duration_ms: 0.92021
  type: 'test'
  ...
# Subtest: assets: register and remove
ok 338 - assets: register and remove
  ---
  duration_ms: 1.378348
  type: 'test'
  ...
# Subtest: markdown: every mark, code blocks are plain lines
ok 339 - markdown: every mark, code blocks are plain lines
  ---
  duration_ms: 1.837081
  type: 'test'
  ...
# Subtest: batch_is_atomic
ok 340 - batch_is_atomic
  ---
  duration_ms: 2.199015
  type: 'test'
  ...
# Subtest: a batch applies in one transaction with the given origin
ok 341 - a batch applies in one transaction with the given origin
  ---
  duration_ms: 0.640387
  type: 'test'
  ...
# Subtest: columns_children_validated
ok 342 - columns_children_validated
  ---
  duration_ms: 1.461252
  type: 'test'
  ...
# Subtest: layout_switch_round_trip
ok 343 - layout_switch_round_trip
  ---
  duration_ms: 1.748732
  type: 'test'
  ...
# Subtest: view_matches_snapshot_fixtures
ok 344 - view_matches_snapshot_fixtures
  ---
  duration_ms: 18.977049
  type: 'test'
  ...
# Subtest: columns children have one parent and no cycles (codex 7)
ok 345 - columns children have one parent and no cycles (codex 7)
  ---
  duration_ms: 1.607364
  type: 'test'
  ...
# Subtest: canvas-to-flow keeps a concurrent text edit (codex 4)
ok 346 - canvas-to-flow keeps a concurrent text edit (codex 4)
  ---
  duration_ms: 4.865728
  type: 'test'
  ...
# Subtest: move_block keeps a concurrent text edit, and later inserts land where after says (codex 4)
ok 347 - move_block keeps a concurrent text edit, and later inserts land where after says (codex 4)
  ---
  duration_ms: 2.561273
  type: 'test'
  ...
# Subtest: move_slide keeps a concurrent text edit, and later inserts land where after says (codex 4 at slide level)
ok 348 - move_slide keeps a concurrent text edit, and later inserts land where after says (codex 4 at slide level)
  ---
  duration_ms: 2.207401
  type: 'test'
  ...
# Subtest: set_block step round-trips, fractions included, survives a duplicate and clears
ok 349 - set_block step round-trips, fractions included, survives a duplicate and clears
  ---
  duration_ms: 0.975067
  type: 'test'
  ...
# Subtest: set_block refuses a step of zero, below zero, or not finite
ok 350 - set_block refuses a step of zero, below zero, or not finite
  ---
  duration_ms: 0.88943
  type: 'test'
  ...
# Subtest: set_block refuses items on a non-list; on a list it round-trips and clears
ok 351 - set_block refuses items on a non-list; on a list it round-trips and clears
  ---
  duration_ms: 1.595738
  type: 'test'
  ...
# Subtest: set_slide talk round-trips, survives a duplicate and clears; an unknown one is refused
ok 352 - set_slide talk round-trips, survives a duplicate and clears; an unknown one is refused
  ---
  duration_ms: 1.009764
  type: 'test'
  ...
# Subtest: set_meta arrive round-trips and clears; an unknown one is refused
ok 353 - set_meta arrive round-trips and clears; an unknown one is refused
  ---
  duration_ms: 0.708647
  type: 'test'
  ...
# Subtest: a deck without the fields has no such keys in its view
ok 354 - a deck without the fields has no such keys in its view
  ---
  duration_ms: 0.47311
  type: 'test'
  ...
# Subtest: meta.fontFiles: round trip, absent key, clear
ok 355 - meta.fontFiles: round trip, absent key, clear
  ---
  duration_ms: 1.488882
  type: 'test'
  ...
# Subtest: meta.fontFiles: refusals apply nothing
ok 356 - meta.fontFiles: refusals apply nothing
  ---
  duration_ms: 2.089251
  type: 'test'
  ...
# Subtest: a qr block takes a follow link as its url, or none, and refuses anything else
ok 357 - a qr block takes a follow link as its url, or none, and refuses anything else
  ---
  duration_ms: 1.898161
  type: 'test'
  ...
# Subtest: the Outline's list reconciles by id and keeps its rows
ok 358 - the Outline's list reconciles by id and keeps its rows
  ---
  duration_ms: 2.994937
  type: 'test'
  ...
# Subtest: open fills the list by kind and first words, and focuses the selected box's row
ok 359 - open fills the list by kind and first words, and focuses the selected box's row
  ---
  duration_ms: 1.150538
  type: 'test'
  ...
# Subtest: with no box on the slide it says so, and focus goes to the popover
ok 360 - with no box on the slide it says so, and focus goes to the popover
  ---
  duration_ms: 0.603674
  type: 'test'
  ...
# Subtest: a row selects its box and closes, leaving focus to the box
ok 361 - a row selects its box and closes, leaving focus to the box
  ---
  duration_ms: 0.579121
  type: 'test'
  ...
# Subtest: Escape closes it, gives focus back, and goes no further
ok 362 - Escape closes it, gives focus back, and goes no further
  ---
  duration_ms: 0.393796
  type: 'test'
  ...
# Subtest: closed by the browser (a click outside), it fills no more; destroy takes its listeners off
ok 363 - closed by the browser (a click outside), it fills no more; destroy takes its listeners off
  ---
  duration_ms: 0.390811
  type: 'test'
  ...
# Subtest: a row from the template takes its words in its label, and keeps its check
ok 364 - a row from the template takes its words in its label, and keeps its check
  ---
  duration_ms: 0.272059
  type: 'test'
  ...
# Subtest: open keeps the panel inside the window: moved back from the end edge, no taller than the room under its title
ok 365 - open keeps the panel inside the window: moved back from the end edge, no taller than the room under its title
  ---
  duration_ms: 0.811839
  type: 'test'
  ...
# Subtest: the scale is the room over the phone height, never above 1
ok 366 - the scale is the room over the phone height, never above 1
  ---
  duration_ms: 0.942724
  type: 'test'
  ...
# Subtest: the scale fits the width as well: the smaller of the two
ok 367 - the scale fits the width as well: the smaller of the two
  ---
  duration_ms: 0.16822
  type: 'test'
  ...
# Subtest: the scale never rounds up past the room it was given
ok 368 - the scale never rounds up past the room it was given
  ---
  duration_ms: 0.345666
  type: 'test'
  ...
# Subtest: mountPhoneFrame writes the scale on every frame, and again when the stages resize
ok 369 - mountPhoneFrame writes the scale on every frame, and again when the stages resize
  ---
  duration_ms: 2.217545
  type: 'test'
  ...
# Subtest: update() measures again when the room changes and the stages do not resize
ok 370 - update() measures again when the room changes and the stages do not resize
  ---
  duration_ms: 0.448467
  type: 'test'
  ...
# Subtest: waitingAt is everything whose press comes after the one given
ok 371 - waitingAt is everything whose press comes after the one given
  ---
  duration_ms: 2.754423
  type: 'test'
  ...
# Subtest: pressesWords: the count at rest, the press while playing
ok 372 - pressesWords: the count at rest, the press while playing
  ---
  duration_ms: 0.280246
  type: 'test'
  ...
# Subtest: a click plays press 1, each click the next, and one after the last shows the finished slide
ok 373 - a click plays press 1, each click the next, and one after the last shows the finished slide
  ---
  duration_ms: 3.326497
  type: 'test'
  ...
# Subtest: Esc while not playing is left alone
ok 374 - Esc while not playing is left alone
  ---
  duration_ms: 0.797649
  type: 'test'
  ...
# Subtest: reads a cookie by its exact name; absent is null
ok 375 - reads a cookie by its exact name; absent is null
  ---
  duration_ms: 0.96375
  type: 'test'
  ...
# Subtest: a cookie jar that throws reads as absent and writes nothing
ok 376 - a cookie jar that throws reads as absent and writes nothing
  ---
  duration_ms: 0.427451
  type: 'test'
  ...
# Subtest: written for a year, site-wide, Lax, and Secure on https only
ok 377 - written for a year, site-wide, Lax, and Secure on https only
  ---
  duration_ms: 0.170065
  type: 'test'
  ...
# Subtest: format: {name} and {n} interpolate; an unknown key is left as text
ok 378 - format: {name} and {n} interpolate; an unknown key is left as text
  ---
  duration_ms: 0.837437
  type: 'test'
  ...
# Subtest: a beat on connect, then one every twenty seconds
ok 379 - a beat on connect, then one every twenty seconds
  ---
  duration_ms: 1.857061
  type: 'test'
  ...
# Subtest: a move posts once, 200ms after the last of a burst, and re-arms the beat
ok 380 - a move posts once, 200ms after the last of a burst, and re-arms the beat
  ---
  duration_ms: 1.110989
  type: 'test'
  ...
# Subtest: a hidden tab stops beating; coming back posts at once
ok 381 - a hidden tab stops beating; coming back posts at once
  ---
  duration_ms: 0.413695
  type: 'test'
  ...
# Subtest: applySet leaves this tab out and answers what changed
ok 382 - applySet leaves this tab out and answers what changed
  ---
  duration_ms: 0.915014
  type: 'test'
  ...
# Subtest: a set with rubbish in it is read for what it does carry
ok 383 - a set with rubbish in it is read for what it does carry
  ---
  duration_ms: 0.260827
  type: 'test'
  ...
# Subtest: initials, and a client id per tab
ok 384 - initials, and a client id per tab
  ---
  duration_ms: 2.616394
  type: 'test'
  ...
# Subtest: the cookie's panels read and write back the same
ok 385 - the cookie's panels read and write back the same
  ---
  duration_ms: 3.157161
  type: 'test'
  ...
# Subtest: a panel moves by whole cells into free room
ok 386 - a panel moves by whole cells into free room
  ---
  duration_ms: 0.928637
  type: 'test'
  ...
# Subtest: a move stops at the edge of the grid
ok 387 - a move stops at the edge of the grid
  ---
  duration_ms: 0.461205
  type: 'test'
  ...
# Subtest: a move goes round a panel in its way when it can
ok 388 - a move goes round a panel in its way when it can
  ---
  duration_ms: 0.36005
  type: 'test'
  ...
# Subtest: a move stops at the panel in its way, never over it
ok 389 - a move stops at the panel in its way, never over it
  ---
  duration_ms: 0.696379
  type: 'test'
  ...
# Subtest: a resize keeps at least 2×2, inside the grid, clear of the others
ok 390 - a resize keeps at least 2×2, inside the grid, clear of the others
  ---
  duration_ms: 0.263313
  type: 'test'
  ...
# Subtest: every change from every arrangement stays a valid window
ok 391 - every change from every arrangement stays a valid window
  ---
  duration_ms: 12.934752
  type: 'test'
  ...
# Subtest: arrow keys move a panel a cell; with Shift they resize it
ok 392 - arrow keys move a panel a cell; with Shift they resize it
  ---
  duration_ms: 0.318109
  type: 'test'
  ...
# Subtest: the stylesheet places the panels as the server does
ok 393 - the stylesheet places the panels as the server does
  ---
  duration_ms: 0.778218
  type: 'test'
  ...
# Subtest: each of the eight buttons is one cell of one change
ok 394 - each of the eight buttons is one cell of one change
  ---
  duration_ms: 0.667227
  type: 'test'
  ...
# Subtest: a button is offered only where its change can be made
ok 395 - a button is offered only where its change can be made
  ---
  duration_ms: 0.444749
  type: 'test'
  ...
# Subtest: the live region says the panel's size and place, counted from one
ok 396 - the live region says the panel's size and place, counted from one
  ---
  duration_ms: 0.270657
  type: 'test'
  ...
# Subtest: right to left, moves are mirrored and the buttons' sizes keep their meaning
ok 397 - right to left, moves are mirrored and the buttons' sizes keep their meaning
  ---
  duration_ms: 0.510316
  type: 'test'
  ...
# Subtest: the table: each key does its one thing
ok 398 - the table: each key does its one thing
  ---
  duration_ms: 2.425137
  type: 'test'
  ...
# Subtest: a held key is not a second press
ok 399 - a held key is not a second press
  ---
  duration_ms: 0.313902
  type: 'test'
  ...
# Subtest: a clicker works from inside a field, and nothing else does
ok 400 - a clicker works from inside a field, and nothing else does
  ---
  duration_ms: 1.047049
  type: 'test'
  ...
# Subtest: a number then Enter jumps
ok 401 - a number then Enter jumps
  ---
  duration_ms: 0.327168
  type: 'test'
  ...
# Subtest: modifier keys are the browser's
ok 402 - modifier keys are the browser's
  ---
  duration_ms: 0.310836
  type: 'test'
  ...
# Subtest: keys kept before the script are pressed once it mounts, in order, and only once
ok 403 - keys kept before the script are pressed once it mounts, in order, and only once
  ---
  duration_ms: 0.307935
  type: 'test'
  ...
# Subtest: brightPart is the step, or the last part when there are fewer parts than presses
ok 404 - brightPart is the step, or the last part when there are fewer parts than presses
  ---
  duration_ms: 1.352814
  type: 'test'
  ...
# Subtest: fitSize steps down a pixel to the floor and stops there
ok 405 - fitSize steps down a pixel to the floor and stops there
  ---
  duration_ms: 0.321934
  type: 'test'
  ...
# Subtest: smaller and larger step 2px between 16 and 48
ok 406 - smaller and larger step 2px between 16 and 48
  ---
  duration_ms: 0.16354
  type: 'test'
  ...
# Subtest: the cookie is percent-encoded and keeps the panels
ok 407 - the cookie is percent-encoded and keeps the panels
  ---
  duration_ms: 2.035349
  type: 'test'
  ...
# Subtest: writePrefs sets path /p, a year, SameSite=Lax, and readPrefs reads it back
ok 408 - writePrefs sets path /p, a year, SameSite=Lax, and readPrefs reads it back
  ---
  duration_ms: 0.597556
  type: 'test'
  ...
# Subtest: the fade is on the sides with more
ok 409 - the fade is on the sides with more
  ---
  duration_ms: 0.157759
  type: 'test'
  ...
# Subtest: a part already in view is left; otherwise its top is brought up
ok 410 - a part already in view is left; otherwise its top is brought up
  ---
  duration_ms: 0.305207
  type: 'test'
  ...
# Subtest: no query finds every slide, in talk order
ok 411 - no query finds every slide, in talk order
  ---
  duration_ms: 1.757704
  type: 'test'
  ...
# Subtest: a number finds that slide first, then the slides whose number starts with it
ok 412 - a number finds that slide first, then the slides whose number starts with it
  ---
  duration_ms: 0.996478
  type: 'test'
  ...
# Subtest: words find titles whatever their case, every word needed
ok 413 - words find titles whatever their case, every word needed
  ---
  duration_ms: 0.657522
  type: 'test'
  ...
# Subtest: a slide with no title is found by its number alone
ok 414 - a slide with no title is found by its number alone
  ---
  duration_ms: 0.198963
  type: 'test'
  ...
# Subtest: gridStep moves by one across a row and by a row up and down, and stops at the ends
ok 415 - gridStep moves by one across a row and by a row up and down, and stops at the ends
  ---
  duration_ms: 0.349562
  type: 'test'
  ...
# Subtest: presses vectors
    # Subtest: no steps: everything arrives with the slide
    ok 1 - no steps: everything arrives with the slide
      ---
      duration_ms: 1.222471
      type: 'test'
      ...
    # Subtest: ties: equal values arrive on one press, in block order
    ok 2 - ties: equal values arrive on one press, in block order
      ---
      duration_ms: 0.667275
      type: 'test'
      ...
    # Subtest: 1, 1.5, 2: a midpoint is a press between its neighbours
    ok 3 - 1, 1.5, 2: a midpoint is a press between its neighbours
      ---
      duration_ms: 0.359884
      type: 'test'
      ...
    # Subtest: values compare exactly as stored
    ok 4 - values compare exactly as stored
      ---
      duration_ms: 0.311007
      type: 'test'
      ...
    # Subtest: each: one press per item, the rest of its value with the first
    ok 5 - each: one press per item, the rest of its value with the first
      ---
      duration_ms: 0.280904
      type: 'test'
      ...
    # Subtest: each with blank items: they take no press and keep their index
    ok 6 - each with blank items: they take no press and keep their index
      ---
      duration_ms: 0.262706
      type: 'test'
      ...
    # Subtest: an empty list makes no press, with or without each
    ok 7 - an empty list makes no press, with or without each
      ---
      duration_ms: 0.142242
      type: 'test'
      ...
    # Subtest: a list without each arrives whole
    ok 8 - a list without each arrives whole
      ---
      duration_ms: 0.539423
      type: 'test'
      ...
    # Subtest: two each lists tied pair up by index, the next value after the longest
    ok 9 - two each lists tied pair up by index, the next value after the longest
      ---
      duration_ms: 0.524466
      type: 'test'
      ...
    # Subtest: each with no step arrives with the slide
    ok 10 - each with no step arrives with the slide
      ---
      duration_ms: 0.296115
      type: 'test'
      ...
    # Subtest: a blank text box makes no press; an image always shows
    ok 11 - a blank text box makes no press; an image always shows
      ---
      duration_ms: 0.122104
      type: 'test'
      ...
    # Subtest: child later than container: the child keeps its own value
    ok 12 - child later than container: the child keeps its own value
      ---
      duration_ms: 0.246648
      type: 'test'
      ...
    # Subtest: child earlier than container: the child waits, and its own press goes
    ok 13 - child earlier than container: the child waits, and its own press goes
      ---
      duration_ms: 0.118854
      type: 'test'
      ...
    # Subtest: a box two containers deep takes the latest of the three
    ok 14 - a box two containers deep takes the latest of the three
      ---
      duration_ms: 0.255724
      type: 'test'
      ...
    # Subtest: an each list in a later container starts at the container's value
    ok 15 - an each list in a later container starts at the container's value
      ---
      duration_ms: 0.864432
      type: 'test'
      ...
    # Subtest: empty columns make no press
    ok 16 - empty columns make no press
      ---
      duration_ms: 0.090255
      type: 'test'
      ...
    # Subtest: columns naming each other still settle
    ok 17 - columns naming each other still settle
      ---
      duration_ms: 0.083382
      type: 'test'
      ...
    # Subtest: columns whose children all come later arrive with the first of them
    ok 18 - columns whose children all come later arrive with the first of them
      ---
      duration_ms: 0.099111
      type: 'test'
      ...
    # Subtest: a blank child does not hold a columns box at its own value
    ok 19 - a blank child does not hold a columns box at its own value
      ---
      duration_ms: 0.072653
      type: 'test'
      ...
    # Subtest: an outer columns box waits through an inner one for its first child
    ok 20 - an outer columns box waits through an inner one for its first child
      ---
      duration_ms: 0.071308
      type: 'test'
      ...
    1..20
ok 416 - presses vectors
  ---
  duration_ms: 11.506978
  type: 'test'
  ...
# Subtest: a slide with no blocks key has no presses
ok 417 - a slide with no blocks key has no presses
  ---
  duration_ms: 0.100088
  type: 'test'
  ...
# Subtest: a resync that fails is retried with backoff until it succeeds, without ever running twice at once
ok 418 - a resync that fails is retried with backoff until it succeeds, without ever running twice at once
  ---
  duration_ms: 1.916489
  type: 'test'
  ...
# Subtest: the browser's online event retries immediately, not just on the next backoff tick
ok 419 - the browser's online event retries immediately, not just on the next backoff tick
  ---
  duration_ms: 0.306865
  type: 'test'
  ...
# Subtest: reportDivergence before any failure runs the first attempt without a caller ever calling online
ok 420 - reportDivergence before any failure runs the first attempt without a caller ever calling online
  ---
  duration_ms: 1.333654
  type: 'test'
  ...
# Subtest: a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit
ok 421 - a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit
  ---
  duration_ms: 73.751664
  type: 'test'
  ...
# Subtest: a network failure or a 5xx is retried, not dropped
ok 422 - a network failure or a 5xx is retried, not dropped
  ---
  duration_ms: 41.686006
  type: 'test'
  ...
# Subtest: a 500 is retried the same way a network failure is, never dropped
ok 423 - a 500 is retried the same way a network failure is, never dropped
  ---
  duration_ms: 40.368341
  type: 'test'
  ...
# Subtest: flush with nothing queued waits for the save already on the wire
ok 424 - flush with nothing queued waits for the save already on the wire
  ---
  duration_ms: 0.892567
  type: 'test'
  ...
# Subtest: an edit made while a save is on the wire waits for it, and both stay owed until answered
ok 425 - an edit made while a save is on the wire waits for it, and both stay owed until answered
  ---
  duration_ms: 2.09809
  type: 'test'
  ...
# Subtest: a flush resolves only once every earlier update is answered, whichever save answers last
ok 426 - a flush resolves only once every earlier update is answered, whichever save answers last
  ---
  duration_ms: 21.024068
  type: 'test'
  ...
# Subtest: a flush through a retry waits for the retry, and a successful retry is a save
ok 427 - a flush through a retry waits for the retry, and a successful retry is a save
  ---
  duration_ms: 1.786834
  type: 'test'
  ...
# Subtest: a network failure is retried the same way
ok 428 - a network failure is retried the same way
  ---
  duration_ms: 0.733974
  type: 'test'
  ...
# Subtest: a refusal resolves the flush false and is final; later edits still save
ok 429 - a refusal resolves the flush false and is final; later edits still save
  ---
  duration_ms: 1.343218
  type: 'test'
  ...
# Subtest: edits made during a flush are not what that flush waits for
ok 430 - edits made during a flush are not what that flush waits for
  ---
  duration_ms: 1.091482
  type: 'test'
  ...
# Subtest: the queue says saving, not ok, while an answered save leaves another to send
ok 431 - the queue says saving, not ok, while an answered save leaves another to send
  ---
  duration_ms: 0.75372
  type: 'test'
  ...
# Subtest: a save is sent keepalive, and given up if it is never answered
ok 432 - a save is sent keepalive, and given up if it is never answered
  ---
  duration_ms: 21.294399
  type: 'test'
  ...
# Subtest: a batch carries at most maxBatchBytes, and the rest follow in order once it is answered
ok 433 - a batch carries at most maxBatchBytes, and the rest follow in order once it is answered
  ---
  duration_ms: 1.503107
  type: 'test'
  ...
# Subtest: an update bigger than maxBatchBytes still goes, on its own
ok 434 - an update bigger than maxBatchBytes still goes, on its own
  ---
  duration_ms: 0.691401
  type: 'test'
  ...
# Subtest: a save never answered is given up, retried with a real request, and its late answer ignored
ok 435 - a save never answered is given up, retried with a real request, and its late answer ignored
  ---
  duration_ms: 0.871802
  type: 'test'
  ...
# Subtest: resume sends again at once what was on the wire as the page left, without saying it failed
ok 436 - resume sends again at once what was on the wire as the page left, without saying it failed
  ---
  duration_ms: 0.932288
  type: 'test'
  ...
# Subtest: a keepalive save on the wire is left out of what the unload beacons; a plain one is kept
ok 437 - a keepalive save on the wire is left out of what the unload beacons; a plain one is kept
  ---
  duration_ms: 0.740323
  type: 'test'
  ...
# Subtest: a save refused with no answer says retrying only if the server cannot be reached either
ok 438 - a save refused with no answer says retrying only if the server cannot be reached either
  ---
  duration_ms: 2.126077
  type: 'test'
  ...
# Subtest: retries the browser refuses while the server answers back off, and reset once one is answered
ok 439 - retries the browser refuses while the server answers back off, and reset once one is answered
  ---
  duration_ms: 1.366516
  type: 'test'
  ...
# Subtest: reachable tries a keepalive request, then an ordinary one
ok 440 - reachable tries a keepalive request, then an ordinary one
  ---
  duration_ms: 0.431941
  type: 'test'
  ...
# Subtest: a large save is gzipped, and goes keepalive if what is sent fits
ok 441 - a large save is gzipped, and goes keepalive if what is sent fits
  ---
  duration_ms: 2.757693
  type: 'test'
  ...
# Subtest: a gzipped save a server refuses is sent again uncompressed, and later saves skip gzip
ok 442 - a gzipped save a server refuses is sent again uncompressed, and later saves skip gzip
  ---
  duration_ms: 76.335917
  type: 'test'
  ...
# Subtest: a refused save that was not gzipped is not sent again
ok 443 - a refused save that was not gzipped is not sent again
  ---
  duration_ms: 1.951629
  type: 'test'
  ...
# Subtest: the core-written structure reads as ProseMirror marks
ok 444 - the core-written structure reads as ProseMirror marks
  ---
  duration_ms: 6.663663
  type: 'test'
  ...
# Subtest: a y-prosemirror round trip preserves bold and the link
ok 445 - a y-prosemirror round trip preserves bold and the link
  ---
  duration_ms: 2.772755
  type: 'test'
  ...
# Subtest: y-prosemirror writes href as the one-key map and marks as {}
ok 446 - y-prosemirror writes href as the one-key map and marks as {}
  ---
  duration_ms: 1.075793
  type: 'test'
  ...
# Subtest: a plain-string href, written before the map shape, still reads
ok 447 - a plain-string href, written before the map shape, still reads
  ---
  duration_ms: 0.96891
  type: 'test'
  ...
# Subtest: textFragment writes the same shape as writeText
ok 448 - textFragment writes the same shape as writeText
  ---
  duration_ms: 0.658261
  type: 'test'
  ...
# Subtest: safeHref is the server allowlist, and a disallowed href never draws an anchor
ok 449 - safeHref is the server allowlist, and a disallowed href never draws an anchor
  ---
  duration_ms: 0.514763
  type: 'test'
  ...
# Subtest: parseHash splits the slide and the block, and survives a stray %
ok 450 - parseHash splits the slide and the block, and survives a stray %
  ---
  duration_ms: 1.547571
  type: 'test'
  ...
# Subtest: destroy takes the listeners off, and a second mount leaves one of each
ok 451 - destroy takes the listeners off, and a second mount leaves one of each
  ---
  duration_ms: 1.864861
  type: 'test'
  ...
# Subtest: formatHash is the inverse
ok 452 - formatHash is the inverse
  ---
  duration_ms: 0.331024
  type: 'test'
  ...
# Subtest: selecting the selected block again is heard; a new one is too
ok 453 - selecting the selected block again is heard; a new one is too
  ---
  duration_ms: 0.789163
  type: 'test'
  ...
# Subtest: each layout makes its template and its empty blocks, and passes the gate
ok 454 - each layout makes its template and its empty blocks, and passes the gate
  ---
  duration_ms: 14.773041
  type: 'test'
  ...
# Subtest: a layout goes after the slide it is asked to follow
ok 455 - a layout goes after the slide it is asked to follow
  ---
  duration_ms: 1.491173
  type: 'test'
  ...
# Subtest: an unknown layout still makes a slide, and plain New slide follows the one before
ok 456 - an unknown layout still makes a slide, and plain New slide follows the one before
  ---
  duration_ms: 0.17429
  type: 'test'
  ...
# Subtest: refresh makes each box with no text a named group in the tab order, and leaves text to its editor
ok 457 - refresh makes each box with no text a named group in the tab order, and leaves text to its editor
  ---
  duration_ms: 4.593515
  type: 'test'
  ...
# Subtest: focus on a box with no text selects it; focus in text is the text editor's to say
ok 458 - focus on a box with no text selects it; focus in text is the text editor's to say
  ---
  duration_ms: 1.353252
  type: 'test'
  ...
# Subtest: on a canvas slide focus on a box goes on to the overlay
ok 459 - on a canvas slide focus on a box goes on to the overlay
  ---
  duration_ms: 1.765817
  type: 'test'
  ...
# Subtest: Tab and Shift+Tab on the overlay walk the boxes in the slide's order
ok 460 - Tab and Shift+Tab on the overlay walk the boxes in the slide's order
  ---
  duration_ms: 1.357548
  type: 'test'
  ...
# Subtest: Tab and Shift+Tab on the overlay pass a box that is not drawn
ok 461 - Tab and Shift+Tab on the overlay pass a box that is not drawn
  ---
  duration_ms: 1.553798
  type: 'test'
  ...
# Subtest: focus(id) puts focus on the box: its text, the box itself, or on a canvas slide the overlay
ok 462 - focus(id) puts focus on the box: its text, the box itself, or on a canvas slide the overlay
  ---
  duration_ms: 0.814891
  type: 'test'
  ...
# Subtest: destroy takes every listener off the stage
ok 463 - destroy takes every listener off the stage
  ---
  duration_ms: 0.390088
  type: 'test'
  ...
# Subtest: held and restore keep focus on a box across a load
ok 464 - held and restore keep focus on a box across a load
  ---
  duration_ms: 1.025771
  type: 'test'
  ...
# Subtest: held on a canvas slide is the selected box, from its overlay
ok 465 - held on a canvas slide is the selected box, from its overlay
  ---
  duration_ms: 0.650642
  type: 'test'
  ...
# Subtest: after Delete, focus goes to the next box, else the previous, else the slide
ok 466 - after Delete, focus goes to the next box, else the previous, else the slide
  ---
  duration_ms: 1.917773
  type: 'test'
  ...
# Subtest: after a move, focus in the box's text is held across the load too
ok 467 - after a move, focus in the box's text is held across the load too
  ---
  duration_ms: 0.576991
  type: 'test'
  ...
# Subtest: textBlocks finds the text-bearing blocks and skips the rest
ok 468 - textBlocks finds the text-bearing blocks and skips the rest
  ---
  duration_ms: 1.962763
  type: 'test'
  ...
# Subtest: mountTarget is the element whose children are the paragraphs
ok 469 - mountTarget is the element whose children are the paragraphs
  ---
  duration_ms: 0.279728
  type: 'test'
  ...
# Subtest: paragraphTag keeps the renderer's own markup per type
ok 470 - paragraphTag keeps the renderer's own markup per type
  ---
  duration_ms: 0.269274
  type: 'test'
  ...
# Subtest: blockFragment finds a block's text by slide and block id
ok 471 - blockFragment finds a block's text by slide and block id
  ---
  duration_ms: 7.938874
  type: 'test'
  ...
# Subtest: notesFragment finds the slide's notes
ok 472 - notesFragment finds the slide's notes
  ---
  duration_ms: 1.464748
  type: 'test'
  ...
# Subtest: blockIDs and slideIDs are the orders on the stage and the strip
ok 473 - blockIDs and slideIDs are the orders on the stage and the strip
  ---
  duration_ms: 1.665386
  type: 'test'
  ...
# Subtest: cellFragments are a table's cells, row-major
ok 474 - cellFragments are a table's cells, row-major
  ---
  duration_ms: 2.500944
  type: 'test'
  ...
# Subtest: a load that fails leaves the stage on the slide it was showing and says so
ok 475 - a load that fails leaves the stage on the slide it was showing and says so
  ---
  duration_ms: 2.342418
  type: 'test'
  ...
# Subtest: slideAfter is the slide to show once one is gone
ok 476 - slideAfter is the slide to show once one is gone
  ---
  duration_ms: 0.656031
  type: 'test'
  ...
# Subtest: the queue words map to savestatus states, failed staying failed
ok 477 - the queue words map to savestatus states, failed staying failed
  ---
  duration_ms: 0.92067
  type: 'test'
  ...
# Subtest: a dropped batch outranks the queue, for the rest of the session
ok 478 - a dropped batch outranks the queue, for the rest of the session
  ---
  duration_ms: 0.201078
  type: 'test'
  ...
# Subtest: the editor status: the save line and the load error are two lines
ok 479 - the editor status: the save line and the load error are two lines
  ---
  duration_ms: 0.345977
  type: 'test'
  ...
# Subtest: mountSaveStatus loads estilo's module and mounts it on the line
ok 480 - mountSaveStatus loads estilo's module and mounts it on the line
  ---
  duration_ms: 1.951901
  type: 'test'
  ...
# Subtest: a save-status module that will not load says so and refuses to mount
ok 481 - a save-status module that will not load says so and refuses to mount
  ---
  duration_ms: 0.503263
  type: 'test'
  ...
# Subtest: dropTarget: before puts it ahead of the item, after behind it, null means first
ok 482 - dropTarget: before puts it ahead of the item, after behind it, null means first
  ---
  duration_ms: 1.002735
  type: 'test'
  ...
# Subtest: a drop that leaves the order as it is is no move
ok 483 - a drop that leaves the order as it is is no move
  ---
  duration_ms: 0.241633
  type: 'test'
  ...
# Subtest: dropOp is the move_slide
ok 484 - dropOp is the move_slide
  ---
  duration_ms: 0.739891
  type: 'test'
  ...
# Subtest: labelFor is the slide's first heading, else the numbered fallback
ok 485 - labelFor is the slide's first heading, else the numbered fallback
  ---
  duration_ms: 6.756486
  type: 'test'
  ...
# Subtest: flush re-points every dirty thumbnail and relabels it
ok 486 - flush re-points every dirty thumbnail and relabels it
  ---
  duration_ms: 4.198515
  type: 'test'
  ...
# Subtest: destroy takes the item-menu listener off; a second mount leaves one
ok 487 - destroy takes the item-menu listener off; a second mount leaves one
  ---
  duration_ms: 0.575814
  type: 'test'
  ...
# Subtest: plan says what to add, drop and where each item goes
ok 488 - plan says what to add, drop and where each item goes
  ---
  duration_ms: 1.105298
  type: 'test'
  ...
# Subtest: sync moves only the items out of place and keeps focus
ok 489 - sync moves only the items out of place and keeps focus
  ---
  duration_ms: 3.043958
  type: 'test'
  ...
# Subtest: sync keeps the New slide row last
ok 490 - sync keeps the New slide row last
  ---
  duration_ms: 2.692581
  type: 'test'
  ...
# Subtest: relabel keeps the link's title the label
ok 491 - relabel keeps the link's title the label
  ---
  duration_ms: 1.586439
  type: 'test'
  ...
# Subtest: a contextmenu on an item opens its menu
ok 492 - a contextmenu on an item opens its menu
  ---
  duration_ms: 0.570179
  type: 'test'
  ...
# Subtest: sync renumbers both numbers after an add, a remove and a reorder
ok 493 - sync renumbers both numbers after an add, a remove and a reorder
  ---
  duration_ms: 2.793734
  type: 'test'
  ...
# Subtest: desktop view: box and size are the block; hidden and order are always the phone map
ok 494 - desktop view: box and size are the block; hidden and order are always the phone map
  ---
  duration_ms: 1.725439
  type: 'test'
  ...
# Subtest: phone view: everything goes to set_phone, carrying the rest of the map
ok 495 - phone view: everything goes to set_phone, carrying the rest of the map
  ---
  duration_ms: 0.519333
  type: 'test'
  ...
# Subtest: the ops it makes are ones the document takes
ok 496 - the ops it makes are ones the document takes
  ---
  duration_ms: 9.316934
  type: 'test'
  ...
# Subtest: phoneMap reads only the four keys, and only well-typed
ok 497 - phoneMap reads only the four keys, and only well-typed
  ---
  duration_ms: 0.213499
  type: 'test'
  ...
# Subtest: the stored view is read defensively
ok 498 - the stored view is read defensively
  ---
  duration_ms: 0.429758
  type: 'test'
  ...
# Subtest: a ready slide is put up at once, the end at once
ok 499 - a ready slide is put up at once, the end at once
  ---
  duration_ms: 1.928206
  type: 'test'
  ...
# Subtest: a preview waiting across a newer deck never puts up the new version unready
ok 500 - a preview waiting across a newer deck never puts up the new version unready
  ---
  duration_ms: 6.488262
  type: 'test'
  ...
# Subtest: a later press supersedes a preview still waiting
ok 501 - a later press supersedes a preview still waiting
  ---
  duration_ms: 1.772085
  type: 'test'
  ...
# Subtest: a press is sent once and in order
ok 502 - a press is sent once and in order
  ---
  duration_ms: 12.168612
  type: 'test'
  ...
# Subtest: a late answer does not move a window with presses waiting
ok 503 - a late answer does not move a window with presses waiting
  ---
  duration_ms: 1.62283
  type: 'test'
  ...
# Subtest: offline presses end in one resume
ok 504 - offline presses end in one resume
  ---
  duration_ms: 1.279944
  type: 'test'
  ...
# Subtest: a failed send is offline at once
ok 505 - a failed send is offline at once
  ---
  duration_ms: 0.833796
  type: 'test'
  ...
# Subtest: a stream that comes back by itself is not a split
ok 506 - a stream that comes back by itself is not a split
  ---
  duration_ms: 0.63864
  type: 'test'
  ...
# Subtest: a window that pressed nothing takes the server's position
ok 507 - a window that pressed nothing takes the server's position
  ---
  duration_ms: 0.815951
  type: 'test'
  ...
# Subtest: a press id is 22 characters of the allowed alphabet
ok 508 - a press id is 22 characters of the allowed alphabet
  ---
  duration_ms: 2.262895
  type: 'test'
  ...
# Subtest: a press given up on is numbered below the resume that replaces it
ok 509 - a press given up on is numbered below the resume that replaces it
  ---
  duration_ms: 1.412451
  type: 'test'
  ...
# Subtest: every command carries the link and a rising number
ok 510 - every command carries the link and a rising number
  ---
  duration_ms: 1.310176
  type: 'test'
  ...
# Subtest: the black screen pressed offline goes with the resume, either way
ok 511 - the black screen pressed offline goes with the resume, either way
  ---
  duration_ms: 1.627116
  type: 'test'
  ...
# Subtest: the timer is taken from the server even where the position is the same
ok 512 - the timer is taken from the server even where the position is the same
  ---
  duration_ms: 0.396261
  type: 'test'
  ...
# Subtest: a stale timer never undoes a press still waiting for its answer
ok 513 - a stale timer never undoes a press still waiting for its answer
  ---
  duration_ms: 0.859341
  type: 'test'
  ...
# Subtest: linkAt reads the link under the cursor and nothing elsewhere
ok 514 - linkAt reads the link under the cursor and nothing elsewhere
  ---
  duration_ms: 2.635675
  type: 'test'
  ...
# Subtest: setLink marks the selection
ok 515 - setLink marks the selection
  ---
  duration_ms: 2.378279
  type: 'test'
  ...
# Subtest: setLink on a collapsed cursor inside a link replaces that link
ok 516 - setLink on a collapsed cursor inside a link replaces that link
  ---
  duration_ms: 0.942244
  type: 'test'
  ...
# Subtest: setLink with nothing selected and no link does nothing
ok 517 - setLink with nothing selected and no link does nothing
  ---
  duration_ms: 0.356238
  type: 'test'
  ...
# Subtest: removeLink clears the link under the cursor
ok 518 - removeLink clears the link under the cursor
  ---
  duration_ms: 0.743908
  type: 'test'
  ...
# Subtest: the keymap binds every documented shortcut
ok 519 - the keymap binds every documented shortcut
  ---
  duration_ms: 0.238893
  type: 'test'
  ...
# Subtest: Mod-b toggles bold through the keymap
ok 520 - Mod-b toggles bold through the keymap
  ---
  duration_ms: 0.823872
  type: 'test'
  ...
# Subtest: setLink refuses an address outside the allowlist and writes nothing
ok 521 - setLink refuses an address outside the allowlist and writes nothing
  ---
  duration_ms: 1.674365
  type: 'test'
  ...
# Subtest: the state machine runs choose → sign → put → register → op
ok 522 - the state machine runs choose → sign → put → register → op
  ---
  duration_ms: 3.029699
  type: 'test'
  ...
# Subtest: a file the deck will not take never reaches the network
ok 523 - a file the deck will not take never reaches the network
  ---
  duration_ms: 0.64831
  type: 'test'
  ...
# Subtest: alt text is required before the bytes move, unless the image is decorative
ok 524 - alt text is required before the bytes move, unless the image is decorative
  ---
  duration_ms: 0.461818
  type: 'test'
  ...
# Subtest: a step that fails stops the ones after it and reports its own code
ok 525 - a step that fails stops the ones after it and reports its own code
  ---
  duration_ms: 0.544833
  type: 'test'
  ...
# Subtest: a failure that is not ours still becomes an UploadError
ok 526 - a failure that is not ours still becomes an UploadError
  ---
  duration_ms: 0.518679
  type: 'test'
  ...
# Subtest: a second pick while one is in flight is refused, not raced
ok 527 - a second pick while one is in flight is refused, not raced
  ---
  duration_ms: 0.437516
  type: 'test'
  ...
# Subtest: an unreadable size is zero rather than a failure
ok 528 - an unreadable size is zero rather than a failure
  ---
  duration_ms: 0.446864
  type: 'test'
  ...
# Subtest: a per-call applyOp wins, so an upload lands on the block it was chosen for
ok 529 - a per-call applyOp wins, so an upload lands on the block it was chosen for
  ---
  duration_ms: 0.267895
  type: 'test'
  ...
# Subtest: checkFile takes exactly the four types
ok 530 - checkFile takes exactly the four types
  ---
  duration_ms: 0.909979
  type: 'test'
  ...
# Subtest: sha256Hex is the hex digest of the bytes
ok 531 - sha256Hex is the hex digest of the bytes
  ---
  duration_ms: 10.842181
  type: 'test'
  ...
# Subtest: refusal reads this app's JSON error shape, and survives one that is not
ok 532 - refusal reads this app's JSON error shape, and survives one that is not
  ---
  duration_ms: 0.460255
  type: 'test'
  ...
# Subtest: malformed fonts are null
ok 533 - malformed fonts are null
  ---
  duration_ms: 3.993181
  type: 'test'
  ...
# Subtest: a malformed fontFiles list is absent; a good one is rebuilt from known fields
ok 534 - a malformed fontFiles list is absent; a good one is rebuilt from known fields
  ---
  duration_ms: 2.547341
  type: 'test'
  ...
# Subtest: a malformed background is the theme default
ok 535 - a malformed background is the theme default
  ---
  duration_ms: 1.690402
  type: 'test'
  ...
# Subtest: a malformed box is null
ok 536 - a malformed box is null
  ---
  duration_ms: 0.963497
  type: 'test'
  ...
# Subtest: the phone layer keeps only its typed fields, order as a whole number
ok 537 - the phone layer keeps only its typed fields, order as a whole number
  ---
  duration_ms: 0.963267
  type: 'test'
  ...
# Subtest: assets are typed or skipped
ok 538 - assets are typed or skipped
  ---
  duration_ms: 0.640804
  type: 'test'
  ...
# Subtest: every poison update is deterministic bytes that apply to any deck
ok 539 - every poison update is deterministic bytes that apply to any deck
  ---
  duration_ms: 8.8783
  type: 'test'
  ...
# Subtest: step, items, talk and arrive outside their vocabularies are absent
ok 540 - step, items, talk and arrive outside their vocabularies are absent
  ---
  duration_ms: 0.997103
  type: 'test'
  ...
1..540
# tests 633
# suites 0
# pass 633
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 8192.365959
=== the vectors must match a fresh generation
canvas: 28 ops, 4373 bytes
columns: 23 ops, 3134 bytes
every-block: 36 ops, 3180 bytes
qr: 10 ops, 1096 bytes
table: 14 ops, 1509 bytes
title-only: 6 ops, 1136 bytes
=== the editor bundle must match a fresh build
wrote internal/slides/static/editor.b72e98e4387a6bd3.js (446423 bytes)
wrote internal/slides/static/fontsgate.3e08aa5807012613.js (13232 bytes)
wrote internal/slides/static/fontshold.876f3d8d396da42f.js (314 bytes)
wrote internal/slides/static/presenter.2f6958aa6804100e.js (38307 bytes)
=== go: vet, gofmt, test, migration check
go vet ./...
go vet -tags browser ./internal/slidestest/
go test ./...
ok  	amadan.net/oficina/slides/cmd/slides	1.946s
?   	amadan.net/oficina/slides/cmd/slides-contract	[no test files]
?   	amadan.net/oficina/slides/gen	[no test files]
ok  	amadan.net/oficina/slides/gen/locales	0.003s
ok  	amadan.net/oficina/slides/internal/slides	91.963s
ok  	amadan.net/oficina/slides/internal/slides/assist	0.014s
ok  	amadan.net/oficina/slides/internal/slides/core	3.434s
ok  	amadan.net/oficina/slides/internal/slides/deck	0.006s
ok  	amadan.net/oficina/slides/internal/slides/fonts	0.048s
?   	amadan.net/oficina/slides/internal/slides/fonts/fontstest	[no test files]
?   	amadan.net/oficina/slides/internal/slides/icons	[no test files]
?   	amadan.net/oficina/slides/internal/slides/keymailtest	[no test files]
ok  	amadan.net/oficina/slides/internal/slides/layout	0.043s
ok  	amadan.net/oficina/slides/internal/slides/live	0.004s
ok  	amadan.net/oficina/slides/internal/slides/pdfcore	5.225s
ok  	amadan.net/oficina/slides/internal/slides/present	0.006s
?   	amadan.net/oficina/slides/internal/slides/qr	[no test files]
ok  	amadan.net/oficina/slides/internal/slides/render	0.029s
ok  	amadan.net/oficina/slides/internal/slides/svg	0.014s
?   	amadan.net/oficina/slides/internal/slides/teamstate	[no test files]
ok  	amadan.net/oficina/slides/internal/slidestest	104.720s
?   	amadan.net/oficina/slides/scripts/writeestilo	[no test files]
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo migration check
rastrillo migration check: models and migrations agree
go tool fiesta spacing \
	-skip tokens.css -skip shell.css -skip theme.css -skip busy.css -skip brand/brand.css \
	internal/slides/static
python3 scripts/credits.py --check
credits: checked
gate: ok
diff --git a/AGENTS.md b/AGENTS.md
index 96abf32..0be4979 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -135,9 +135,14 @@ seeded on first sign-in — and comes back out as a PDF.
`Audience` on `ShareLink` and named so on the share page, and
answers the address; the editor writes it into the box through
`commit()`. render and layout draw the same modules (`qr.Modules`;
- layout's are crisp rects), with the short address under the code. No
- `url` is an empty frame on the editor's stage and nothing for
- readers; a revoked link still draws.
+ layout's are crisp rects), with the short address under the code,
+ but only what `followCodes` vouches for (`render.Options.QR`,
+ `layout.Options.QR`, nil draws none): this origin's address whose
+ token is a live share link of this deck. On `/s/` surfaces the code
+ is the reader's own link, never the stored one. Anything else is an
+ empty frame on the editor's stage and nothing for readers. Slide
+ caches carry `linksStamp`, so a revoke changes their tags. Insert's
+ row and the card's button are for sharers only (`InsertTypes`).
- **Presenting** (`presentation.go`, `present/hub.go`): a server-side
session with a pairing code, the fullscreen surface, the presenter view
with notes and a clock, the phone remote, and audience follow from a
diff --git a/docs/api.md b/docs/api.md
index f16cdf6..6d6fe0e 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -398,12 +398,17 @@ fractions of the 16:9 stage. Text arrives as Markdown and is converted
server-side. A block's `step` and `items`, a slide's `talk` and the
deck's `arrive` appear in the deck's JSON only when they are set.
-A `qr` block is a follow-along code: `props.url` is the follow address
-of one of the deck's share links, `https://<host>/s/<token>?follow=1`,
-and anything else there is refused. The API can't mint a share link;
-the editor makes one for the code (`POST /d/{sqid}/qr-link`, signed in),
-and the share page lists it as Audience. A `qr` block with no `url`
-draws nothing for readers.
+A `qr` block is a follow-along code. Its `props.url` must have the
+shape of a follow address, `https://<host>/s/<token>?follow=1`, and
+anything else is refused. The shape is all the API checks. A code is
+drawn only when the address is this instance's own and its token is a
+live share link of the same deck; otherwise readers see nothing and the
+editor shows an empty frame. Revoking the link turns the code off.
+People who open the deck through a share link see a code for their own
+link, never the one stored. The API can't mint a share link: the deck's
+owner makes one from the editor (`POST /d/{sqid}/qr-link`), and the
+share page lists it as Audience. The `url` holds that link's token, so
+anyone who can read the deck through the API can read the token.
Each example below is one batch, so you can paste any of them straight
into the `ops` body above. `$D` is the deck sqid, `$S` a slide id and
diff --git a/internal/slides/api.go b/internal/slides/api.go
index bd7a3e9..ee0ad86 100644
--- a/internal/slides/api.go
+++ b/internal/slides/api.go
@@ -792,7 +792,7 @@ func (a *app) apiSlide(w http.ResponseWriter, r *http.Request) {
// session would be inventing a fourth capability for a caller that
// already has a bearer token for the deck.
section, err := slidehtml.SlideWith(view, index, vp,
- slidehtml.Options{AssetBase: assetBaseFor("/d/" + d.Sqid), QRAlt: qrAlt(r)})
+ slidehtml.Options{AssetBase: assetBaseFor("/d/" + d.Sqid), QRAlt: qrAlt(r), QR: a.followCodes(r.Context(), d, view, "/d/"+d.Sqid)})
if err != nil {
a.logger.Error("slides: render a slide for the API", "deck", d.Sqid, "slide", slideID, "err", err)
apiFail(w, http.StatusInternalServerError, errInternal)
diff --git a/internal/slides/editor.go b/internal/slides/editor.go
index d8ccdf4..fe8511d 100644
--- a/internal/slides/editor.go
+++ b/internal/slides/editor.go
@@ -413,12 +413,30 @@ func editorPlaceholders(r *http.Request) map[string]string {
return out
}
-// blockTypes is §2.4's vocabulary in the order the add menu lists it.
+// blockTypes is §2.4's vocabulary in the order the add menu lists it
+// (InsertTypes says who is offered which).
var blockTypes = []string{"heading", "text", "list", "quote", "image", "columns", "code", "shape", "table", "divider", "spacer", "qr"}
-// BlockTypes is the Insert menu's list, for the template's range.
+// BlockTypes is every kind, for the type labels the bundle reads (a
+// box somebody else added is still named).
func (p editorPage) BlockTypes() []string { return blockTypes }
+// InsertTypes is the Insert menu's list: every kind, less a
+// follow-along code for somebody who may not share the deck, since
+// its link is a share link (qrlink.go) and they could not make one.
+func (p editorPage) InsertTypes() []string {
+ if p.QRLinkAction != "" {
+ return blockTypes
+ }
+ out := make([]string, 0, len(blockTypes))
+ for _, t := range blockTypes {
+ if t != "qr" {
+ out = append(out, t)
+ }
+ }
+ return out
+}
+
// --- GET /d/{sqid}/edit ---
// deckEditor serves the editor page to deckFor's audience — the owner
@@ -581,7 +599,7 @@ func (a *app) deckEditor(w http.ResponseWriter, r *http.Request) {
}
// Drawn as the editor will draw it (render/editing.go): when the
// editor binds late, to a slide already shown, nothing moves.
- opt := slidehtml.Options{AssetBase: assetBaseFor(base), Editing: true, Placeholders: editorPlaceholders(r), QRAlt: qrAlt(r)}
+ opt := slidehtml.Options{AssetBase: assetBaseFor(base), Editing: true, Placeholders: editorPlaceholders(r), QRAlt: qrAlt(r), QR: a.followCodes(r.Context(), d, view, base)}
stage, err := slidehtml.SlideWith(view, 0, slidehtml.Desktop, opt)
if err != nil {
a.fail(w, r, "render the stage", err)
@@ -669,7 +687,9 @@ func (a *app) deckSlide(w http.ResponseWriter, r *http.Request) {
// representation — the 304 here and the 200 below — and never on
// the 404: a tag on "there is no such slide" invites a cache to
// treat the absence as the thing.
- etag := strconv.Quote(strconv.FormatInt(d.Seq, 10) + "-" + slideID + "-" + vp.String())
+ // And the share links, which decide which follow-along codes are
+ // drawn (followCodes): revoking one changes no seq.
+ etag := strconv.Quote(strconv.FormatInt(d.Seq, 10) + a.linksStamp(r.Context(), d) + "-" + slideID + "-" + vp.String())
if matchesETag(r.Header.Get("If-None-Match"), etag) {
w.Header().Set("ETag", etag)
w.WriteHeader(http.StatusNotModified)
@@ -699,7 +719,8 @@ func (a *app) deckSlide(w http.ResponseWriter, r *http.Request) {
// the editor will draw it (render/editing.go): the views it binds to
// it replace that markup with their own and nothing moves.
section, err := slidehtml.SlideWith(view, index, vp,
- slidehtml.Options{AssetBase: assetBaseFor("/d/" + d.Sqid), Editing: true, Placeholders: editorPlaceholders(r), QRAlt: qrAlt(r)})
+ slidehtml.Options{AssetBase: assetBaseFor("/d/" + d.Sqid), Editing: true, Placeholders: editorPlaceholders(r), QRAlt: qrAlt(r),
+ QR: a.followCodes(r.Context(), d, view, "/d/"+d.Sqid)})
if err != nil {
a.fail(w, r, "render a slide for the editor", err)
return
diff --git a/internal/slides/export.go b/internal/slides/export.go
index 3998f6f..e97b48d 100644
--- a/internal/slides/export.go
+++ b/internal/slides/export.go
@@ -125,6 +125,11 @@ type ExportOptions struct {
// reads none: every uploaded family falls back to the rest of its
// stack, in the pages and the PDF alike (layout.Options.Fonts).
Fonts func(ref string) ([]byte, error)
+
+ // QR is the follow-along codes the pages may draw
+ // (layout.Options.QR): the app's followCodes for a member. Nil draws
+ // none.
+ QR map[string]string
}
// Export renders d as a PDF. The warnings are everything worth telling
@@ -150,7 +155,7 @@ func Export(ctx context.Context, d *deck.Deck, o ExportOptions) ([]byte, []layou
x := &exporter{deck: d, opts: o}
// One render for every page: each uploaded face is read and parsed
// once for the whole export, and dropped with it.
- lay := layout.New(d, layout.Options{Fonts: o.Fonts})
+ lay := layout.New(d, layout.Options{Fonts: o.Fonts, QR: o.QR})
var pages [][]byte
for i := range d.Slides {
if err := ctx.Err(); err != nil {
diff --git a/internal/slides/export_qr_test.go b/internal/slides/export_qr_test.go
index a0d439d..262dc91 100644
--- a/internal/slides/export_qr_test.go
+++ b/internal/slides/export_qr_test.go
@@ -30,7 +30,8 @@ func TestAFollowAlongCodeIsInTheThumbnailAndThePDF(t *testing.T) {
}},
}
- p, _, err := layout.Layout(d, 0)
+ codes := map[string]string{url: url}
+ p, _, err := layout.New(d, layout.Options{QR: codes}).Layout(0)
if err != nil {
t.Fatal(err)
}
@@ -46,7 +47,7 @@ func TestAFollowAlongCodeIsInTheThumbnailAndThePDF(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()
- pdf, warnings, err := Export(ctx, d, exportOpts(t, ExportOptions{}))
+ pdf, warnings, err := Export(ctx, d, exportOpts(t, ExportOptions{QR: codes}))
if err != nil {
t.Fatalf("Export: %v", err)
}
diff --git a/internal/slides/exports.go b/internal/slides/exports.go
index ab54f63..c4682d1 100644
--- a/internal/slides/exports.go
+++ b/internal/slides/exports.go
@@ -542,6 +542,7 @@ func (a *app) exportJob(id <-chan string, d Deck, actor string, withNotes bool,
Runtime: rt,
Assets: a.assetBytes(ctx, d, view),
Fonts: a.fontLoader(ctx, d.ID),
+ QR: a.followCodes(ctx, d, view, "/d/"+d.Sqid),
Progress: func(slide, of int) {
progress(fillWords(words.progress, "n", slide, "total", of))
},
diff --git a/internal/slides/layout/blocks.go b/internal/slides/layout/blocks.go
index 1d1b902..8a4e070 100644
--- a/internal/slides/layout/blocks.go
+++ b/internal/slides/layout/blocks.go
@@ -475,11 +475,15 @@ func (e *engine) planDivider(s slot) plan {
// it is as large as the box leaves once the address is under it, and
// centred in that space, which is what an SVG's default
// `preserveAspectRatio` does with the space the stylesheet gives it.
-// No follow link draws nothing: the editor's empty frame is the
-// editor's, and an export has nobody to show it to.
+// What is drawn is Options.QR's address for the stored url (render.go's
+// qrBlock says why); a url not there draws nothing: the editor's empty
+// frame is the editor's, and an export has nobody to show it to.
func (e *engine) planQR(b deck.Block, s slot) plan {
- url := stringProp(b.Props, "url")
- address, ok := deck.FollowAddress(url)
+ url, ok := e.render.opts.QR[stringProp(b.Props, "url")]
+ address := ""
+ if ok {
+ address, ok = deck.FollowAddress(url)
+ }
if !ok {
return plan{}
}
diff --git a/internal/slides/layout/layout.go b/internal/slides/layout/layout.go
index aec3725..93ab94a 100644
--- a/internal/slides/layout/layout.go
+++ b/internal/slides/layout/layout.go
@@ -34,6 +34,10 @@ type Options struct {
// way the text is set in the next family of its stack, as it would
// be in a browser that never got the file.
Fonts func(ref string) ([]byte, error)
+ // QR is the follow-along codes this picture may draw, as
+ // render.Options.QR: a qr block's stored url to the address drawn.
+ // Nil draws none.
+ QR map[string]string
}
// Renderer lays out one deck's slides for one render — a thumbnail, or
diff --git a/internal/slides/layout/qr_test.go b/internal/slides/layout/qr_test.go
index 71ea9c8..7c135d6 100644
--- a/internal/slides/layout/qr_test.go
+++ b/internal/slides/layout/qr_test.go
@@ -102,7 +102,10 @@ func TestAFollowAlongCodeIsInThePictureAndThePDF(t *testing.T) {
"canvas": qrSlide("canvas", deck.Block{ID: "q1", Type: "qr", Box: box, Props: map[string]any{"url": qrURL}}),
} {
t.Run(name, func(t *testing.T) {
- p, warnings := paintOf(t, d, 0)
+ p, warnings, err := layout.New(d, layout.Options{QR: map[string]string{qrURL: qrURL}}).Layout(0)
+ if err != nil {
+ t.Fatal(err)
+ }
for _, w := range warnings {
t.Errorf("warning: %+v", w)
}
@@ -145,9 +148,12 @@ func TestAFollowAlongCodeIsInThePictureAndThePDF(t *testing.T) {
// TestAFollowAlongCodeWithNoLinkDrawsNothing: no follow link, nothing
// in the picture or the PDF — the editor's empty frame is the editor's.
+// A follow link the picture's maker did not vouch for (Options.QR) is
+// no link: nothing either.
func TestAFollowAlongCodeWithNoLinkDrawsNothing(t *testing.T) {
- for _, props := range []map[string]any{nil, {"url": "https://elsewhere.example/phish"}} {
- p, warnings := paintOf(t, qrSlide("canvas", deck.Block{ID: "q1", Type: "qr", Box: &deck.Box{W: 0.3, H: 0.3}, Props: props}), 0)
+ vouched := map[string]string{"https://elsewhere.example/phish": "https://elsewhere.example/phish"}
+ for _, props := range []map[string]any{nil, {"url": "https://elsewhere.example/phish"}, {"url": qrURL}} {
+ p, warnings, _ := layout.New(qrSlide("canvas", deck.Block{ID: "q1", Type: "qr", Box: &deck.Box{W: 0.3, H: 0.3}, Props: props}), layout.Options{QR: vouched}).Layout(0)
if len(p.Ops) != 0 || len(warnings) != 0 {
t.Errorf("%v: drew %d ops and %d warnings, want none", props, len(p.Ops), len(warnings))
}
diff --git a/internal/slides/models.go b/internal/slides/models.go
index bd3ea5a..054e445 100644
--- a/internal/slides/models.go
+++ b/internal/slides/models.go
@@ -291,7 +291,11 @@ type ShareLink struct {
ID int64
DeckID int64 `gorm:"index"`
// TokenHash is the SHA-256 hex of the token (share.go's
- // hashShareToken). The token itself is never written anywhere.
+ // hashShareToken). This table never holds the token itself, and a
+ // link made from the share page is not written anywhere else. An
+ // Audience link is: its follow address, token included, is the
+ // props.url of the follow-along code it was made for, in the deck's
+ // document, where members can read it (qrlink.go).
TokenHash string `gorm:"uniqueIndex"`
// Actor is who minted it, in DeckUpdate.Actor's form.
Actor string
diff --git a/internal/slides/presentation.go b/internal/slides/presentation.go
index bb164f4..6d3fc98 100644
--- a/internal/slides/presentation.go
+++ b/internal/slides/presentation.go
@@ -786,7 +786,8 @@ func (a *app) renderSurface(w http.ResponseWriter, r *http.Request, d Deck, p Pr
// (assets.go): the presentation's for a projector, the share
// link's for a follower.
html, err := slidehtml.SlideWith(view, index, slidehtml.Desktop,
- slidehtml.Options{AssetBase: assetBaseFor(opt.base), Reveal: reveal, QRAlt: qrAlt(r)})
+ slidehtml.Options{AssetBase: assetBaseFor(opt.base), Reveal: reveal, QRAlt: qrAlt(r),
+ QR: a.followCodes(r.Context(), d, view, opt.base)})
if err != nil {
a.fail(w, r, "render slide", err)
return
diff --git a/internal/slides/presenter_window.go b/internal/slides/presenter_window.go
index f04beb6..b65d7c4 100644
--- a/internal/slides/presenter_window.go
+++ b/internal/slides/presenter_window.go
@@ -522,8 +522,9 @@ func (a *app) presenterWindow(w http.ResponseWriter, r *http.Request, p Presenta
page.BackLabel, page.ForwardLabel = pressLabels(r, p)
base := assetBaseFor("/p/" + p.Sqid)
+ codes := a.followCodes(r.Context(), d, view, "/p/"+p.Sqid)
draw := func(i, k int) (template.HTML, error) {
- return slidehtml.SlideWith(view, i, slidehtml.Desktop, slidehtml.Options{AssetBase: base, Reveal: &k, QRAlt: qrAlt(r)})
+ return slidehtml.SlideWith(view, i, slidehtml.Desktop, slidehtml.Options{AssetBase: base, Reveal: &k, QRAlt: qrAlt(r), QR: codes})
}
if page.Now, err = draw(index, step); err != nil {
a.fail(w, r, "render the slide on screen", err)
diff --git a/internal/slides/presenting_talk.go b/internal/slides/presenting_talk.go
index 7dfb5a4..0d74109 100644
--- a/internal/slides/presenting_talk.go
+++ b/internal/slides/presenting_talk.go
@@ -55,9 +55,12 @@ func (a *app) presentTalk(w http.ResponseWriter, r *http.Request) {
// The tag is the deck's seq, and says whether notes are in the body:
// a body without them must not satisfy a request that may have them.
- etag := strconv.Quote(strconv.FormatInt(d.Seq, 10))
+ // And the deck's share links, which decide the follow-along
+ // codes drawn (followCodes): revoking one changes no seq.
+ links := a.linksStamp(r.Context(), d)
+ etag := strconv.Quote(strconv.FormatInt(d.Seq, 10) + links)
if withNotes {
- etag = strconv.Quote(strconv.FormatInt(d.Seq, 10) + "-n")
+ etag = strconv.Quote(strconv.FormatInt(d.Seq, 10) + links + "-n")
}
w.Header().Set("Cache-Control", "no-store")
w.Header().Set("ETag", etag)
@@ -75,6 +78,7 @@ func (a *app) presentTalk(w http.ResponseWriter, r *http.Request) {
view = view.ForReaders()
base := "/p/" + p.Sqid
+ codes := a.followCodes(r.Context(), d, view, base)
zero := 0
arrive := view.Meta.Arrive
if arrive == "" {
@@ -85,7 +89,7 @@ func (a *app) presentTalk(w http.ResponseWriter, r *http.Request) {
for n, i := range deck.TalkOrder(view, deck.ModeFull) {
s := view.Slides[i]
html, err := slidehtml.SlideWith(view, i, slidehtml.Desktop,
- slidehtml.Options{AssetBase: base + "/assets", Reveal: &zero, QRAlt: qrAlt(r)})
+ slidehtml.Options{AssetBase: base + "/assets", Reveal: &zero, QRAlt: qrAlt(r), QR: codes})
if err != nil {
a.fail(w, r, "render a slide for the talk", err)
return
diff --git a/internal/slides/qrlink.go b/internal/slides/qrlink.go
index 03d4c31..20f0844 100644
--- a/internal/slides/qrlink.go
+++ b/internal/slides/qrlink.go
@@ -12,15 +12,21 @@
//
// Making a new link leaves the old one working. The share page lists
// both, the code's named Audience, and revoking one there is how a code
-// already printed or projected is turned off; a code whose link is
-// revoked still draws (the document still holds it), and opens a 404.
+// is turned off: what is drawn is decided at render (followCodes), and
+// a revoked link draws no code anywhere.
package slides
import (
+ "context"
"encoding/json"
"net/http"
+ "strconv"
+ "strings"
+ "time"
"amadan.net/rastrillo/rastrillo"
+
+ "amadan.net/oficina/slides/internal/slides/deck"
)
// qrLink serves POST /d/{sqid}/qr-link. The share page's audience, the
@@ -57,3 +63,82 @@ func (a *app) followURL(token string) string {
// language, {address} left for the renderer to fill
// (render.Options.QRAlt). Every surface that draws a slide passes it.
func qrAlt(r *http.Request) string { return rastrillo.T(r, "slides.qr.alt") }
+
+// followCodes is which follow-along codes a surface of d may draw, and
+// with which address (render.Options.QR, layout.Options.QR): each qr
+// block's stored url to the follow address its code is drawn for.
+//
+// The document takes any follow-shaped address (core can't know a
+// deck's links), so this is the authority. A url is drawn only when it
+// is this instance's own origin and its token is a live (unrevoked)
+// share link of this very deck; anything else is left out, and draws
+// no code for a reader and an empty frame in the editor.
+//
+// base is the surface. On a share link's surfaces ("/s/{token}": the
+// page, its follow view and fragments, its thumbnails) the code is
+// drawn with the reader's own link: the audience link it holds is a
+// capability the reader was never given, and one that would outlive
+// the revoking of theirs. Members ("/d/…": the editor, the viewer, the
+// API, the PDF) and the presenting surfaces ("/p/…") get the stored
+// address.
+//
+// A database error draws no codes: failing closed on a capability.
+func (a *app) followCodes(ctx context.Context, d Deck, view *deck.Deck, base string) map[string]string {
+ if view == nil {
+ return nil
+ }
+ prefix := a.cfg.Origin + "/s/"
+ byHash := map[string]string{}
+ for _, s := range view.Slides {
+ for _, b := range s.Blocks {
+ if b.Type != "qr" {
+ continue
+ }
+ url, _ := b.Props["url"].(string)
+ if _, ok := deck.FollowAddress(url); !ok || !strings.HasPrefix(url, prefix) {
+ continue
+ }
+ token := strings.TrimSuffix(strings.TrimPrefix(url, prefix), "?follow=1")
+ byHash[hashShareToken(token)] = url
+ }
+ }
+ if len(byHash) == 0 {
+ return nil
+ }
+ hashes := make([]string, 0, len(byHash))
+ for h := range byHash {
+ hashes = append(hashes, h)
+ }
+ var live []string
+ if err := a.db.G.WithContext(ctx).Model(&ShareLink{}).
+ Where("deck_id = ? AND revoked_at IS NULL AND token_hash IN ?", d.ID, hashes).
+ Pluck("token_hash", &live).Error; err != nil {
+ a.logger.Error("slides: resolve follow-along codes", "deck", d.Sqid, "err", err)
+ return nil
+ }
+ own, reader := strings.CutPrefix(base, "/s/")
+ out := make(map[string]string, len(live))
+ for _, h := range live {
+ url := byHash[h]
+ if reader {
+ url = a.followURL(own)
+ }
+ out[byHash[h]] = url
+ }
+ return out
+}
+
+// linksStamp is the part of a cached slide's tag that moves when one
+// of d's share links is made or revoked: followCodes reads them, and
+// neither changes the deck's seq. Rows are never deleted while the
+// deck lives, so the two counts only grow. An error is a stamp that
+// matches nothing cached.
+func (a *app) linksStamp(ctx context.Context, d Deck) string {
+ var row struct{ Total, Revoked int64 }
+ if err := a.db.G.WithContext(ctx).Model(&ShareLink{}).
+ Select("COUNT(*) AS total, COUNT(revoked_at) AS revoked").
+ Where("deck_id = ?", d.ID).Scan(&row).Error; err != nil {
+ return "-L?" + strconv.FormatInt(time.Now().UnixNano(), 36)
+ }
+ return "-L" + strconv.FormatInt(row.Total, 10) + "." + strconv.FormatInt(row.Revoked, 10)
+}
diff --git a/internal/slides/render/qr_test.go b/internal/slides/render/qr_test.go
index f455bd9..05d08d8 100644
--- a/internal/slides/render/qr_test.go
+++ b/internal/slides/render/qr_test.go
@@ -77,7 +77,7 @@ func modulesOf(t *testing.T, html string) [][]bool {
// code uses — with the short address printed under it and the alt text
// the surface handed in, its {address} filled.
func TestAFollowAlongCodeEncodesItsURL(t *testing.T) {
- got, err := render.SlideWith(qrDeck(map[string]any{"url": followURL}), 0, render.Desktop, render.Options{QRAlt: qrAlt})
+ got, err := render.SlideWith(qrDeck(map[string]any{"url": followURL}), 0, render.Desktop, render.Options{QRAlt: qrAlt, QR: map[string]string{followURL: followURL}})
if err != nil {
t.Fatal(err)
}
@@ -113,24 +113,26 @@ func TestAFollowAlongCodeEncodesItsURL(t *testing.T) {
}
// TestAFollowAlongCodeWithNoLinkIsAFrameInTheEditorOnly: a box with no
-// url yet (or one that is not a follow link, which only a peer's bytes
-// could put there) is an empty frame on the editor's stage and nothing
-// at all for a reader.
+// url yet, one that is not a follow link, or a follow-shaped one the
+// surface did not vouch for (Options.QR: not this deck's live link) is
+// an empty frame on the editor's stage and nothing at all for a reader.
func TestAFollowAlongCodeWithNoLinkIsAFrameInTheEditorOnly(t *testing.T) {
+ vouched := map[string]string{"https://elsewhere.example/phish": "https://elsewhere.example/phish"}
for _, props := range []map[string]any{
nil,
{"url": "https://elsewhere.example/phish"},
{"url": 7},
+ {"url": followURL},
} {
d := qrDeck(props)
- reader, err := render.SlideWith(d, 0, render.Desktop, render.Options{QRAlt: qrAlt})
+ reader, err := render.SlideWith(d, 0, render.Desktop, render.Options{QRAlt: qrAlt, QR: vouched})
if err != nil {
t.Fatal(err)
}
if strings.Contains(string(reader), `data-block="qr"`) || strings.Contains(string(reader), "<svg") {
t.Errorf("%v: a reader is shown a code with no link:\n%s", props, reader)
}
- editing, err := render.SlideWith(d, 0, render.Desktop, render.Options{QRAlt: qrAlt, Editing: true})
+ editing, err := render.SlideWith(d, 0, render.Desktop, render.Options{QRAlt: qrAlt, Editing: true, QR: vouched})
if err != nil {
t.Fatal(err)
}
@@ -142,3 +144,30 @@ func TestAFollowAlongCodeWithNoLinkIsAFrameInTheEditorOnly(t *testing.T) {
}
}
}
+
+// TestAFollowAlongCodeDrawsTheAddressTheSurfaceGives: on a share link's
+// surfaces the app maps the stored link to the reader's own, and the
+// code, its address and its alt text are that link's alone.
+func TestAFollowAlongCodeDrawsTheAddressTheSurfaceGives(t *testing.T) {
+ const own = "https://slides.example/s/OwnOwnOwnOwnOwnOwnOwnOwnOwnOwnOwnOwnOwnOwnO?follow=1"
+ got, err := render.SlideWith(qrDeck(map[string]any{"url": followURL}), 0, render.Desktop, render.Options{QRAlt: qrAlt, QR: map[string]string{followURL: own}})
+ if err != nil {
+ t.Fatal(err)
+ }
+ html := string(got)
+ if strings.Contains(html, "AbCdEf") {
+ t.Errorf("the stored link shows:\n%s", html)
+ }
+ want, _ := qrcode.New(own, qrcode.Medium)
+ grid := modulesOf(t, html)
+ for y, row := range want.Bitmap() {
+ for x, dark := range row {
+ if grid[y][x] != dark {
+ t.Fatalf("module (%d, %d): the code is not the reader's link", x, y)
+ }
+ }
+ }
+ if !strings.Contains(html, "<figcaption>slides.example/s/OwnOwnOwnOwnOwnOwnOwnOwnOwnOwnOwnOwnOwnOwnO</figcaption>") {
+ t.Errorf("the caption is not the reader's link:\n%s", html)
+ }
+}
diff --git a/internal/slides/render/render.go b/internal/slides/render/render.go
index 0033599..97a223d 100644
--- a/internal/slides/render/render.go
+++ b/internal/slides/render/render.go
@@ -129,6 +129,14 @@ type Options struct {
// handed in for the reason Placeholders is. Empty (a test, a
// fixture) names the code by its address alone.
QRAlt string
+ // QR is the follow-along codes this surface may draw: a qr block's
+ // stored url to the follow address its code is drawn for. The app
+ // fills it (qrlink.go's followCodes): only this instance's own
+ // links that are live share links of this deck, and on a share
+ // link's surfaces the reader's own link in place of the stored one.
+ // A url not in it — or no map at all — draws no code: nothing for
+ // a reader, an empty frame in the editor.
+ QR map[string]string
}
// DefaultAssetBase is what a caller that passed no Options gets. It is
@@ -171,7 +179,7 @@ func SlideWith(d *deck.Deck, index int, vp Viewport, opt Options) (template.HTML
if base == "" {
base = DefaultAssetBase
}
- c := &renderer{deck: d, canvas: layout == "canvas", phone: vp == Phone, assetBase: base, late: map[string]bool{}, editing: opt.Editing, placeholders: opt.Placeholders, reveal: newReveal(s, opt), qrAlt: opt.QRAlt}
+ c := &renderer{deck: d, canvas: layout == "canvas", phone: vp == Phone, assetBase: base, late: map[string]bool{}, editing: opt.Editing, placeholders: opt.Placeholders, reveal: newReveal(s, opt), qrAlt: opt.QRAlt, qr: opt.QR}
attrs := []attr{
{name: "slides-slide", bare: true},
@@ -290,6 +298,8 @@ type renderer struct {
reveal *reveal
// qrAlt is Options.QRAlt.
qrAlt string
+ // qr is Options.QR.
+ qr map[string]string
}
// assetRef resolves an asset id — a block's props.asset, a slide
@@ -1012,13 +1022,19 @@ func (c *renderer) shapeBlock(b deck.Block) template.HTML {
// code with its quiet zone, so the picture scales to whatever the box
// gives it.
//
-// A box with no follow link yet — or with something that is not one,
-// which only a peer's bytes could have put there — is an empty frame
-// on the editor's stage, waiting for its link, and nothing at all for a
-// reader: a code that goes nowhere is worse than no code.
+// What is drawn is Options.QR's address for the stored one, never the
+// stored one as it stands: the document takes any follow-shaped
+// address, and only the app knows which are this deck's live links
+// and which link this reader holds. A box with no link yet, or one the
+// app did not vouch for, is an empty frame on the editor's stage,
+// waiting for its link, and nothing at all for a reader: a code that
+// goes nowhere, or somewhere else, is worse than no code.
func (c *renderer) qrBlock(b deck.Block) template.HTML {
- url := stringProp(b.Props, "url")
- address, ok := deck.FollowAddress(url)
+ url, ok := c.qr[stringProp(b.Props, "url")]
+ address := ""
+ if ok {
+ address, ok = deck.FollowAddress(url)
+ }
var modules [][]bool
if ok {
var err error
diff --git a/internal/slides/templates/editor.html b/internal/slides/templates/editor.html
index 1048288..91cfff5 100644
--- a/internal/slides/templates/editor.html
+++ b/internal/slides/templates/editor.html
@@ -155,7 +155,7 @@
{{end}}
<hr>
<p slides-menu-heading>{{.L "insert.block"}}</p>
- {{range .BlockTypes}}<button estilo-menu-item type="button" data-insert-block="{{.}}" data-needs-slide{{if not $.HasSlides}} disabled{{end}}><span estilo-menu-label>{{$.L (printf "type.%s" .)}}</span></button>
+ {{range .InsertTypes}}<button estilo-menu-item type="button" data-insert-block="{{.}}" data-needs-slide{{if not $.HasSlides}} disabled{{end}}><span estilo-menu-label>{{$.L (printf "type.%s" .)}}</span></button>
{{end}}
</div>
</details>
diff --git a/internal/slides/thumbs.go b/internal/slides/thumbs.go
index 522172c..f237478 100644
--- a/internal/slides/thumbs.go
+++ b/internal/slides/thumbs.go
@@ -117,12 +117,14 @@ func (a *app) serveThumb(w http.ResponseWriter, r *http.Request, d Deck, base st
}
width := thumbWidth(r.URL.Query().Get("w"))
- // Seq, slide and width: the three things that change these bytes.
+ // Seq, slide and width: the three things that change these bytes,
+ // with the share links, which decide the follow-along codes drawn
+ // (followCodes) and change no seq when one is revoked.
// The tag goes on the two responses that ARE this representation
// and never on the 404 — a tag on "there is no such slide" invites
// a cache to treat the absence as the thing (editor.go says the
// same about the HTML twin).
- etag := strconv.Quote(strconv.FormatInt(d.Seq, 10) + "-" + slideID + "-" + width)
+ etag := strconv.Quote(strconv.FormatInt(d.Seq, 10) + a.linksStamp(r.Context(), d) + "-" + slideID + "-" + width)
// A reader's route answers 304 only after the slide is known to be
// one it may see (a wildcard tag matches everything, parked slides
// included), so it pays a deck open; the editor and the API, which
@@ -186,7 +188,10 @@ func (a *app) serveThumb(w http.ResponseWriter, r *http.Request, d Deck, base st
// shows it carries the same words in its alt, because an alt is what a
// browser reads and it never opens the file to find a title.
func (a *app) thumbnail(r *http.Request, d Deck, view *deck.Deck, index int, base string) ([]byte, error) {
- paint, warnings, err := layout.New(view, layout.Options{Fonts: a.fontLoader(r.Context(), d.ID)}).Layout(index)
+ paint, warnings, err := layout.New(view, layout.Options{
+ Fonts: a.fontLoader(r.Context(), d.ID),
+ QR: a.followCodes(r.Context(), d, view, base),
+ }).Layout(index)
if err != nil {
return nil, err
}
diff --git a/internal/slides/viewer.go b/internal/slides/viewer.go
index 033f359..28771d4 100644
--- a/internal/slides/viewer.go
+++ b/internal/slides/viewer.go
@@ -268,7 +268,7 @@ func (a *app) renderViewer(w http.ResponseWriter, r *http.Request, d Deck, mode,
// reader looking at the page is the reader whose request has to
// fetch them (assets.go).
html, err := slidehtml.SlideWith(view, index, viewport(vp),
- slidehtml.Options{AssetBase: assetBaseFor(base), QRAlt: qrAlt(r)})
+ slidehtml.Options{AssetBase: assetBaseFor(base), QRAlt: qrAlt(r), QR: a.followCodes(r.Context(), d, view, base)})
if err != nil {
a.fail(w, r, "render slide", err)
return
diff --git a/internal/slidestest/qrlink_test.go b/internal/slidestest/qrlink_test.go
index 11174ff..127e7aa 100644
--- a/internal/slidestest/qrlink_test.go
+++ b/internal/slidestest/qrlink_test.go
@@ -121,3 +121,151 @@ func TestTheQRLinkRouteMintsAnAudienceLink(t *testing.T) {
t.Errorf("audience links stored: %d (%v), want the owner's 2", stored, err)
}
}
+
+// codeDeck makes a deck whose first slide holds a follow-along code
+// pointed at url (written over the API, which checks only its shape),
+// and returns the deck's path, its sqid and the slide's id.
+func codeDeck(t *testing.T, a *testApp, cookies []*http.Cookie, title, url string) (path, sqid, slide string) {
+ t.Helper()
+ return codeDeckOn(t, a, cookies, createDeck(t, a, cookies, title), url)
+}
+
+// TestAShareReaderIsShownTheirOwnLinkInTheCode: somebody reading over
+// share link A never learns the audience link B the code holds — on
+// every /s/ response (the page, its phone view, the follow page with a
+// talk live and its fragment, the thumbnail) the code and its address
+// are A's — so revoking A leaves them nothing.
+func TestAShareReaderIsShownTheirOwnLinkInTheCode(t *testing.T) {
+ a := newApp(t)
+ mine := signedIn(t, a, allowedAddress)
+ path := createDeck(t, a, mine, "Talk")
+ _, b := qrLink(t, a, path, mine)
+ bToken := followURLPattern.FindStringSubmatch(b)[1]
+ _, _, slide := codeDeckOn(t, a, mine, path, b)
+ aToken := mintShareLink(t, a, path, mine)
+ aAddress := strings.TrimPrefix(testOrigin, "http://") + "/s/" + aToken
+
+ startPresenting(t, a, path, mine)
+ for _, target := range []string{
+ "/s/" + aToken,
+ "/s/" + aToken + "?vp=phone",
+ "/s/" + aToken + "?follow=1",
+ "/s/" + aToken + "?follow=1&fragment=1",
+ "/s/" + aToken + "?present=1",
+ "/s/" + aToken + "/slides/" + slide + ".svg",
+ } {
+ body := mustGet(t, a, target, http.StatusOK, nil).Body.String()
+ if strings.Contains(body, bToken) {
+ t.Errorf("%s shows the audience link's token", target)
+ }
+ if words := strings.Join(strings.Fields(regexp.MustCompile(`<[^>]*>`).ReplaceAllString(body, "")), ""); !strings.Contains(words, aAddress) {
+ t.Errorf("%s does not draw the reader's own address %s", target, aAddress)
+ }
+ }
+ // Members see the address the code was made with.
+ if page := mustGet(t, a, path+"?slide=1", http.StatusOK, mine).Body.String(); !strings.Contains(page, bToken) {
+ t.Error("the owner's viewer does not draw the code's own link")
+ }
+}
+
+// codeDeckOn is codeDeck on a deck that already exists.
+func codeDeckOn(t *testing.T, a *testApp, cookies []*http.Cookie, path, url string) (string, string, string) {
+ t.Helper()
+ sqid := strings.TrimPrefix(path, "/d/")
+ token := mintAgent(t, a, cookies, "code-on-"+sqid)
+ view := apiJSON(t, a, http.MethodGet, "/api/v1/decks/"+sqid, token, "", http.StatusOK)
+ slide, _ := view["slides"].([]any)[0].(map[string]any)["id"].(string)
+ apiJSON(t, a, http.MethodPost, "/api/v1/decks/"+sqid+"/ops", token,
+ `{"ops":[{"op":"add_block","slide":`+quote(slide)+`,"id":"qrcode000001","type":"qr","props":{"url":`+quote(url)+`}}]}`, http.StatusOK)
+ return path, sqid, slide
+}
+
+// TestAFollowAlongCodeDrawsOnlyThisDecksLiveLink: the document takes
+// any follow-shaped address, and the page is the authority on which
+// ones are this talk's. A code is drawn only for a link of this
+// instance's origin that is a live share link of this very deck;
+// anything else is no code for a reader and an empty frame in the
+// editor — and revoking the link turns a drawn code off.
+func TestAFollowAlongCodeDrawsOnlyThisDecksLiveLink(t *testing.T) {
+ a := newApp(t)
+ mine := signedIn(t, a, allowedAddress)
+ other := createDeck(t, a, mine, "Other")
+ _, theirs := qrLink(t, a, other, mine)
+ _, live := qrLink(t, a, other, mine)
+ liveToken := followURLPattern.FindStringSubmatch(live)[1]
+
+ for name, url := range map[string]string{
+ "another origin": "https://elsewhere.example/s/" + liveToken + "?follow=1",
+ "another deck's": theirs,
+ "a made-up token": testOrigin + "/s/" + strings.Repeat("a", 43) + "?follow=1",
+ } {
+ path, _, slide := codeDeck(t, a, mine, name, url)
+ viewer := mustGet(t, a, path+"?slide=1", http.StatusOK, mine).Body.String()
+ if strings.Contains(viewer, `data-block="qr"`) {
+ t.Errorf("%s: the viewer draws a code", name)
+ }
+ editor := mustGet(t, a, path+"/slides/"+slide+".html", http.StatusOK, mine).Body.String()
+ if !strings.Contains(editor, `data-missing-qr="true"`) || strings.Contains(editor, "<svg") {
+ t.Errorf("%s: the editor does not show an empty frame:\n%s", name, editor)
+ }
+ thumb := mustGet(t, a, path+"/slides/"+slide+".svg", http.StatusOK, mine).Body.String()
+ if strings.Contains(thumb, "/s/") {
+ t.Errorf("%s: the thumbnail prints an address", name)
+ }
+ }
+
+ // This deck's own live link draws; revoked, it does not, and the
+ // thumbnail's tag moves so no cache keeps the old picture.
+ path := createDeck(t, a, mine, "Mine")
+ _, own := qrLink(t, a, path, mine)
+ _, _, slide := codeDeckOn(t, a, mine, path, own)
+ if viewer := mustGet(t, a, path+"?slide=1", http.StatusOK, mine).Body.String(); !strings.Contains(viewer, `data-block="qr"`) {
+ t.Fatal("the deck's own live link is not drawn")
+ }
+ before := mustGet(t, a, path+"/slides/"+slide+".svg", http.StatusOK, mine)
+ beforeHTML := mustGet(t, a, path+"/slides/"+slide+".html", http.StatusOK, mine)
+ share := mustGet(t, a, path+"/share", http.StatusOK, mine).Body.String()
+ for _, m := range revokeAction.FindAllStringSubmatch(share, -1) {
+ post(t, a, path+"/share/"+m[1]+"/revoke", nil, mine...)
+ }
+ if viewer := mustGet(t, a, path+"?slide=1", http.StatusOK, mine).Body.String(); strings.Contains(viewer, `data-block="qr"`) {
+ t.Error("a revoked link is still drawn")
+ }
+ after := mustGet(t, a, path+"/slides/"+slide+".svg", http.StatusOK, mine)
+ if before.Header().Get("ETag") == after.Header().Get("ETag") {
+ t.Error("revoking the link leaves the thumbnail's tag as it was")
+ }
+ afterHTML := mustGet(t, a, path+"/slides/"+slide+".html", http.StatusOK, mine)
+ if beforeHTML.Header().Get("ETag") == afterHTML.Header().Get("ETag") {
+ t.Error("revoking the link leaves the stage HTML's tag as it was")
+ }
+}
+
+// TestOnlyASharerIsOfferedTheFollowAlongCode: Insert's Follow-along
+// code and the card's Make an audience link are drawn for somebody who
+// may share the deck and for nobody else; a team member still sees a
+// code somebody else added, and its address, read-only.
+func TestOnlyASharerIsOfferedTheFollowAlongCode(t *testing.T) {
+ a := newSharedApp(t)
+ mine := signedIn(t, a, allowedAddress)
+ theirs := signedIn(t, a, otherAddress)
+ path := createDeck(t, a, mine, "Talk")
+ if rec := post(t, a, path+"/settings", url.Values{"title": {"Talk"}, "theme": {"ink"}, "rung": {"team"}}, mine...); rec.Code != http.StatusSeeOther {
+ t.Fatalf("raising the rung: status %d", rec.Code)
+ }
+ owner := mustGet(t, a, path+"/edit", http.StatusOK, mine).Body.String()
+ member := mustGet(t, a, path+"/edit", http.StatusOK, theirs).Body.String()
+ for _, s := range []string{`data-insert-block="qr"`, `data-command="qr-link"`, `data-qr-link=`} {
+ if !strings.Contains(owner, s) {
+ t.Errorf("the owner's editor has no %s", s)
+ }
+ if strings.Contains(member, s) {
+ t.Errorf("a member's editor offers %s", s)
+ }
+ }
+ for _, s := range []string{`name="rst-block-qr-url"`, `data-type-qr="Follow-along code"`} {
+ if !strings.Contains(member, s) {
+ t.Errorf("a member's editor has no %s for a code somebody else added", s)
+ }
+ }
+}