File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -110,11 +110,10 @@ test({
110110 name : `open() with relative cursor` ,
111111 fn : async ( ) => {
112112 for ( let i = 0 ; i < 10 ; i ++ ) {
113- await fn . append ( denops , 0 , [
114- "0123456789" ,
115- ] ) ;
113+ await fn . append ( denops , 0 , "0123456789" ) ;
116114 }
117- await denops . cmd ( "normal! G$" ) ;
115+ await fn . cursor ( denops , [ 5 , 5 ] ) ;
116+
118117 await using popupWindow = await popup . open ( denops , {
119118 relative : "cursor" ,
120119 width : 20 ,
@@ -128,10 +127,8 @@ test({
128127 assertEquals ( await fn . winheight ( denops , popupWindow . winid ) , 20 ) ;
129128
130129 const info = ( await fn . getwininfo ( denops , popupWindow . winid ) ) [ 0 ] ;
131- assertEquals ( info . winrow , 13 ) ;
132- assertEquals ( info . wincol , 13 ) ;
133-
134- await denops . cmd ( "normal! 0G0" ) ;
130+ assertEquals ( info . winrow , 9 ) ;
131+ assertEquals ( info . wincol , 8 ) ;
135132 } ,
136133 } ) ;
137134 } ,
You can’t perform that action at this time.
0 commit comments