Use case StRS-MDOKFSTUDIO-TRUST-009
What the page and the host exchange is checked and never applied to another version
As a reader or writer, I rely on what the preview page asks of the extension being checked before any file or setting changes, and I never see an answer, an edit, a move or a request meant for another document or for an older version of my page land in the current document.
Use case diagram
How it is split
This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests.
path 1: The page asks the host to act path 2: The host answers the page other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: The page asks the host to act
- The page sends a message to the hostSwRS-MDOKFSTUDIO-TRUST-052 a value that is not a registered message is ignored without a visible changeSwRS-MDOKFSTUDIO-TRUST-052 · 2 tests the host hands the value to a handler only if it is a registered message type with a valid envelope
- The message is a registered oneSwRS-MDOKFSTUDIO-TRUST-065 an older render is answered as out of date, and a foreign render is droppedSwRS-MDOKFSTUDIO-TRUST-065 · 12 tests the host passes it to the handler of its type after it matches the render or document the host holds
- The message reaches the handler of its type
Path 2: The host answers the page
- The page receives a message from the hostSwRS-MDOKFSTUDIO-TRUST-059 · 6 tests the page treats it as a host message only if its type is registered and it is addressed to the page
- The page accepts a host messageSwRS-MDOKFSTUDIO-TRUST-059 a patch out of bounds is not acceptedSwRS-MDOKFSTUDIO-TRUST-059 · 6 tests a content patch within its bounds is accepted
- The content patch is accepted
This map has 61 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 3 behaviours on the map are tested one by one, with 18 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-TRUST-052Every page message has a registered type and a valid envelope before any handler runs 2 testsSwRS-MDOKFSTUDIO-TRUST-059The page accepts only registered host messages addressed to its render 6 testsSwRS-MDOKFSTUDIO-TRUST-065A page message is matched to the shown render or document by the gate of its type 12 testsSwRS-MDOKFSTUDIO-TRUST-086The warning banner close message has a bounded key not on the map1 testSwRS-MDOKFSTUDIO-TRUST-090Every page request is answered once by its id and result type, or ends with a readable error not on the map14 tests
SwRS-MDOKFSTUDIO-TRUST-055The validator of the message type must accept the payload deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TRUST-061A content patch message is applied only within its bounds superseded superseded by SwRS-MDOKFSTUDIO-TRUST-059 Markdown file
SwRS-MDOKFSTUDIO-TRUST-062A properties table message needs string markup superseded superseded by SwRS-MDOKFSTUDIO-TRUST-059 Markdown file
SwRS-MDOKFSTUDIO-TRUST-063A link targets message needs an array of the current render superseded superseded by SwRS-MDOKFSTUDIO-TRUST-059 Markdown file
SwRS-MDOKFSTUDIO-TRUST-064Flush and editor watch messages are addressed by their own id superseded superseded by SwRS-MDOKFSTUDIO-TRUST-059 Markdown file