File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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} )
You can’t perform that action at this time.
0 commit comments