Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-REVIEW-219

An orphaned thread whose quote returns is placed again

When the document text changes while a review thread is orphaned and its quote is found again under the re-anchoring rules, the extension SHALL post the thread on the found lines with orphaned false, without writing the comments file.

Part of StRS-MDOKFSTUDIO-REVIEW-008, outside the paths drawn on its map.

Step 1 of path 2 in StRS-MDOKFSTUDIO-REVIEW-001: from “A thread is listed in the Orphaned comments box” to “The quoted text is highlighted”.

Scenarios 4

The situations the tests check; open one to read it.

nominalA deleted row is restored by an undo
Givena thread quoting "beta" on a table row, the row deleted so that the thread is orphaned, and the comments file unchanged
Whenthe delete is undone
Thenthe thread is posted on the line of the restored row with orphaned false, so the page shows its mark
the comments file on disk is unchanged
nominalA quote retyped in a document with unsaved changes
Givenan orphaned thread in a document with unsaved changes
Whenthe text gains its quote again (a paste, a retyped word)
Thenthe thread is posted on the lines where the quote is found with orphaned false
refusalA short quote outside the window stays orphaned
Givenan orphaned thread whose quote has fewer than 12 characters and a document where that word reappears more than 50 lines from the stored line
Whenthe document text changes
Thenthe thread stays orphaned and keeps its stored lines
boundaryNo orphaned thread
Giventhreads that are all anchored
Whenthe document text changes
Thenthe threads only follow the edits and the document is not checked again

Implemented in 1

Tested by 3