Repository navigation
test: expect the contents map to rise to its sticking line before it stands still - #7507
Merged
Merged
Conversation
…stands still #7486 dropped the contents map's fixed track, so on a spine page with no header or footer the map now opens level with the page's first line and rises 40px before it sticks, as that change said it would. The lens test still asserted the map stood still from the page's top, so it failed in every engine with the map at [96, 56, 56]. It now asserts the map stands still once stuck, between the middle and the foot. The lens's own assertion, that it follows the scroll, is unchanged and passed throughout. Closes #7501
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.
test_the_lens_follows_the_scroll_in_every_enginefailed in Chromium, Firefox and WebKit on the assertion that the map stands still in the window (AssertionError: [96, 56, 56]). The lens itself followed the scroll the whole time. That assertion passed. #7486 dropped the contents map's fixed track, and its description says a spine page with no header or footer now shows the map level with the page's first line, and the map rises 40px before it sticks. The test's map positions match that exactly: 96px at the top, then 56px once stuck. So the test's expectation is stale, and the code is behaving as the maintainer chose.The test now asserts that the map stands still once its track sticks, from the middle of the document to its foot. The lens assertion is unchanged. Run by node id with
--run-main -n0: the test fails in all three engines onmain(99fcb95a3) and passes in all three with this change. The neighbouring sticking-track and spine tests also pass.Closes #7501 — automated triage