Repository navigation
Scope margin refresh tests to Leaf-owned work - #2168
Merged
Merged
Conversation
The resize check now measures browser layout and style recalculation rather than a call count across several legitimate main-geometry readers. The mutation watch excludes Viewer.js nodes, whose own resize handler rewrites inline geometry. Both checks still cover Leaf margin rows and authored boxes. Previously failing corpus cases now pass, as does the gallery case.
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.
The margin refresh tests now measure Leaf-owned work. The cost check keeps browser layout and style recalculation bounds, while dropping a main-geometry call count that included three legitimate readers. The mutation watch excludes Viewer.js's own inline viewer nodes; it still watches Leaf's margin layer and authored boxes. This repairs the two margin failures in main CI run 37929061293.
Verification: both cases failed before this change. The cost case and the corpus and gallery mutation cases pass after it (3 focused browser tests).
The branch now includes current main, including #2171’s bounded sample loader, which repairs the shared
ERR_INSUFFICIENT_RESOURCES/ entry-module presentation failure in these older CI runs.Current-main validation: the exact affected browser cases pass locally; independent source review found no actionable issues. Fresh broad CI runs on this updated head.