Skip to content

Commit abb72cc

Browse files
committed
nvim: add CloseWindow testcase
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent 19a1d6d commit abb72cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nvim/api_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3287,6 +3287,10 @@ func testFloatingWindow(v *Nvim) func(*testing.T) {
32873287
if numberOpt || relativenumberOpt || cursorlineOpt || cursorcolumnOpt || spellOpt || listOpt || signcolumnOpt != "auto" || colorcolumnOpt != "" {
32883288
t.Fatal("expected minimal style")
32893289
}
3290+
3291+
if err := v.CloseWindow(w, true); err != nil {
3292+
t.Fatal(err)
3293+
}
32903294
})
32913295

32923296
t.Run("Batch", func(t *testing.T) {
@@ -3367,6 +3371,11 @@ func testFloatingWindow(v *Nvim) func(*testing.T) {
33673371
if numberOpt || relativenumberOpt || cursorlineOpt || cursorcolumnOpt || spellOpt || listOpt || signcolumnOpt != "auto" || colorcolumnOpt != "" {
33683372
t.Fatal("expected minimal style")
33693373
}
3374+
3375+
b.CloseWindow(w, true)
3376+
if err := b.Execute(); err != nil {
3377+
t.Fatal(err)
3378+
}
33703379
})
33713380
}
33723381
}

0 commit comments

Comments
 (0)