Repository navigation
test(outliner): move up/down: children, edges, several blocks, repeated moves - #13604
Closed
yuxi-liu-wired wants to merge 1 commit into
Closed
yuxi-liu-wired wants to merge 1 commit into
yuxi-liu-wired wants to merge 1 commit into
Conversation
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 6, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 6, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 8, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 8, 2026
yuxi-liu-wired
force-pushed
the
test/move-up-down-cases
branch
from
October 11, 2026 06:20
bce23d5 to
c419b62
Compare
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 11, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 11, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 13, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 13, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 16, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 16, 2026
…ed moves Mutation testing of move-blocks-up-down (12 one-line changes) found 7 that the outliner tests did not catch: the only up/down test moves 1 block up among its siblings. New cases: down among siblings, a last child into its parent's right sibling, a first child into the block above its parent, the edges where nothing moves, 2 blocks moving together and twice in a row, a block keeping its children. They catch 10 of the 12; the 2 left change no move's result (the first-block check is also made by the target lookup; the original-position check only skips a move to the same place).
yuxi-liu-wired
force-pushed
the
test/move-up-down-cases
branch
from
October 16, 2026 18:34
c419b62 to
3dbb18f
Compare
Contributor
Author
|
Combined with the other PRs that change the same files into #13783. |
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.
Tests only.
The outliner's only test of
move-blocks-up-down!moves 1 block up among its siblings. Mutation testing ofmove-blocks-up-downand the sibling lookups it uses (12 one-line changes: up and down swapped, the first block moved instead of the last, the step out to the parent's sibling removed,sibling?forced, the nearest sibling made the farthest, and so on) found 7 thatfrontend.modules.outliner.core-testdid not catch.New cases in
frontend.modules.outliner.core-test:They pass on master and catch 10 of the 12 changes. The 2 left change no move's result: the page's-first-block check in the up branch is also made by the target lookup, and the original-position check only skips a move to the place the block already is.