Repository navigation
Correct comments and docstrings that name a gone watcher, the wrong walk key and a stale kind list - #6972
Merged
Conversation
…alk key and a stale kind list - `widget-api.js`: the comment over `dragging`, `el`, `reachedForWords` and `worksInside` called them "the one watcher of the page's readings". None of them watches readings: they are the drag and press helpers `module-input.md` documents. Dropped. - `history.py`'s header listed by hand the kinds kept out of history, and the list had drifted from `SHOWN`, which leaves out more. It now points at `SHOWN`. - Five test docstrings said the obligation walk answers `d` or `a`; the walk is `m` (`queue-walk.js`, `queue.walk`) and every test presses `m`. One named `commentOnAddressable`, which no longer exists. - `test_render_diff_controls.py` asserted that `.lf-diff-wrap`, `.lf-diff-review` and `.lf-diff-next` were absent. No code writes those classes since #2175, so the assertion passed whatever the diff drew. Removed.
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.
This fixes comments, docstrings and one test assertion that the rolling survey found describing code that no longer exists. No behavior changes.
browser/runtime/widget-api.js: the comment overdragging,el,reachedForWordsandworksInsidecalled them "the one watcher of the page's readings" and pointed tomodule-reading.md. None of them watches readings: they are the drag and press helpersmodule-input.mddocuments. A package author reading the public API file was sent to the wrong reference. The comment is dropped.src/leaf/history.py: the header listed by hand the kinds kept out of history, and the list had drifted fromSHOWN. It left outactivation,plan,render,seenand others. It now points atSHOWN.dora(four intests/browser/widgets/test_obligations.py, one intests/browser/projection/test_thread_replies.py). The walk ism(queue.walkinbrowser/runtime/queue-walk.js), and those tests pressm. One comment also namedcommentOnAddressable, which no longer exists.tests/journeys/test_render_diff_controls.py: the test asserted that.lf-diff-wrap,.lf-diff-reviewand.lf-diff-nextwere absent. No code has written those classes since Simplify diff controls and preserve compact line comments #2175, so the assertion passed whatever the diff drew (tests/AGENTS.md, "Absences"). It is removed.Ran pre-commit on the changed files and
tests/model -k history(36 passed). The journey test runs in this PR's CI because its file changed.