Skip to content

Commit 6b76f57

Browse files
committed
Add some more vertical motion tests
1 parent 7d60253 commit 6b76f57

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/webtest-commands.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ describe("commands", () => {
149149
Decoration.replace({widget: w, block: true}).range(8, 13)
150150
])))
151151
})
152+
153+
it("can escape lines with padding", () => {
154+
let attributes = {style: "padding-bottom: 30px 0"}
155+
testCmd("a\n|b\nc", "a\nb\n|c",
156+
cursorLineDown,
157+
EditorView.decorations.of(Decoration.set(Decoration.line({attributes}).range(2))))
158+
})
152159
})
153160

154161
describe("cursorLineUp", () => {
@@ -198,5 +205,12 @@ describe("commands", () => {
198205
Decoration.replace({widget: w, block: true}).range(8, 13)
199206
])))
200207
})
208+
209+
it("can escape lines with padding", () => {
210+
let attributes = {style: "padding-top: 30px 0"}
211+
testCmd("a\nb|\nc", "a|\nb\nc",
212+
cursorLineUp,
213+
EditorView.decorations.of(Decoration.set(Decoration.line({attributes}).range(2))))
214+
})
201215
})
202216
})

0 commit comments

Comments
 (0)