File tree Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -2994,14 +2994,14 @@ func testFloatingWindow(v *Nvim) func(*testing.T) {
2994
2994
t .Fatal (err )
2995
2995
}
2996
2996
2997
- wantWidth := 40
2997
+ wantWidth := 50
2998
2998
wantHeight := 20
2999
2999
3000
3000
cfg := & WindowConfig {
3001
3001
Relative : "cursor" ,
3002
3002
Anchor : "NW" ,
3003
- Width : wantWidth ,
3004
- Height : wantHeight ,
3003
+ Width : 40 ,
3004
+ Height : 10 ,
3005
3005
Row : 1 ,
3006
3006
Col : 0 ,
3007
3007
Focusable : true ,
@@ -3015,6 +3015,14 @@ func testFloatingWindow(v *Nvim) func(*testing.T) {
3015
3015
t .Fatal ("same window number: floating window not focused" )
3016
3016
}
3017
3017
3018
+ if err := v .SetWindowWidth (w , wantWidth ); err != nil {
3019
+ t .Fatal (err )
3020
+ }
3021
+
3022
+ if err := v .SetWindowHeight (w , wantHeight ); err != nil {
3023
+ t .Fatal (err )
3024
+ }
3025
+
3018
3026
gotWidth , err := v .WindowWidth (w )
3019
3027
if err != nil {
3020
3028
t .Fatal (err )
@@ -3068,14 +3076,14 @@ func testFloatingWindow(v *Nvim) func(*testing.T) {
3068
3076
t .Fatal (err )
3069
3077
}
3070
3078
3071
- wantWidth := 40
3079
+ wantWidth := 50
3072
3080
wantHeight := 20
3073
3081
3074
3082
cfg := & WindowConfig {
3075
3083
Relative : "cursor" ,
3076
3084
Anchor : "NW" ,
3077
- Width : wantWidth ,
3078
- Height : wantHeight ,
3085
+ Width : 40 ,
3086
+ Height : 10 ,
3079
3087
Row : 1 ,
3080
3088
Col : 0 ,
3081
3089
Focusable : true ,
@@ -3091,6 +3099,12 @@ func testFloatingWindow(v *Nvim) func(*testing.T) {
3091
3099
t .Fatal ("same window number: floating window not focused" )
3092
3100
}
3093
3101
3102
+ b .SetWindowWidth (w , wantWidth )
3103
+ b .SetWindowHeight (w , wantHeight )
3104
+ if err := b .Execute (); err != nil {
3105
+ t .Fatal (err )
3106
+ }
3107
+
3094
3108
var gotWidth int
3095
3109
b .WindowWidth (w , & gotWidth )
3096
3110
var gotHeight int
You can’t perform that action at this time.
0 commit comments