Repository navigation
test: reach the fence-in-item and nested-outdent drafts with the keys #7112 gave Backspace - #7183
Merged
Merged
Conversation
…keys #7112 made Backspace on a line holding only its markers, as a new item does, take the whole line. Two cases of the Shift+Enter journey still erased a new item's marker one character at a time, so their Backspaces now also deleted the item above's words and left a draft the case never meant to test. The behavior each case protects is unchanged: - "fence in an item" opens the fence on the continued item's line, `- ```, and still checks its code and closing fence stay in the item. - "outdenting a nested item" nests with Tab rather than by deleting and retyping a marker, and still checks that Shift+Enter on an empty nested item leaves it for the outer list. Closes #7173
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_shift_enter_and_tab_keep_a_draft_in_the_containers_the_message_will_holdfailed in both engines because two of its cases used Backspace in a way #7112 changed on purpose. #7112 (field-editor.js, "Keys at the edge of a line's shown words") made Backspace take a whole line that holds nothing but its markers. The two cases still removed a new item's marker one character at a time. Under the new keys their extra presses also deleted the words of the item above:bin the nested case,ain the fence case. So the missing item in the issue came from the test's own keystrokes. The keys did what #7112 says they do. This keeps #7112's behavior and changes only how the two cases reach the state they check, the same way #7123 updated fourtests/browsertests:- a⏎```⏎x⏎```⏎more→- a\n- ```\n x\n ```\n more. The fence now opens on the continued item's line instead of after a marker was erased. The check is the same: the fence's code and closing marks stay in the item.1. a⏎b⏎⇥c⏎⏎d→1. a\n2. b\n 1. c\n3. d. The case nests the item with Tab instead of deleting and retyping a marker. The check is the same: Shift+Enter on an empty nested item takes it back out to the outer list.The other eight cases are unchanged. The journey failed locally in Chromium and Firefox with the issue's diff and passes after the change (2 passed, 4 subtests passed,
--run-nightlyselection by node id).Closes #7173 — automated triage