Repository navigation
Read the page's stored reading under page in the reading-position tests - #5330
Merged
Merged
Conversation
…ests #4873 nested the page's reading in the stored `lf-view` under `page`, beside `revision` and `regions`, so three tests reading `quote` and `section` from the top level hit KeyError before reaching their restoration assertions. The tests now read the page reading where the producer stores it; no behavior changes. Closes #5074
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#4873 (strict type checking for browser modules) changed the stored
lf-viewfrom the page's reading withrevisionandregionsmerged in to{page, revision, activeRegion, regions}, with the page's reading underpage(captureView). Restoration reads the new shape, but three tests intests/browser/projection/test_reading_position.pystill readquoteandsectionfrom the top level, so they failed withKeyErrorbefore reaching their restoration checks. They now read.page, where the producer stores the reading. Their assertions are unchanged, and nothing in the runtime changes.All three failed with the reported
KeyErroron currentmainand pass with this change, including their checks that the reading position comes back after the revision changes:test_revision_changes_keep_the_complete_heading_below_user_chrometest_revision_changes_follow_authored_text_into_declared_shadow_treestest_the_reading_position_restores_onto_a_section_that_draws_no_boxCloses #5074 — automated triage