File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -1453,6 +1453,18 @@ func testTabpage(v *Nvim) func(*testing.T) {
1453
1453
if err := v .SetCurrentTabpage (page ); err != nil {
1454
1454
t .Fatal (err )
1455
1455
}
1456
+
1457
+ t .Run ("TabpageWindows" , func (t * testing.T ) {
1458
+ gotWins , err := v .TabpageWindows (Tabpage (0 ))
1459
+ if err != nil {
1460
+ t .Fatal (err )
1461
+ }
1462
+
1463
+ wantWins := []Window {Window (1000 )}
1464
+ if ! reflect .DeepEqual (gotWins , wantWins ) {
1465
+ t .Fatalf ("expected %v but got %v" , wantWins , gotWins )
1466
+ }
1467
+ })
1456
1468
})
1457
1469
1458
1470
t .Run ("Batch" , func (t * testing.T ) {
@@ -1488,6 +1500,21 @@ func testTabpage(v *Nvim) func(*testing.T) {
1488
1500
if err := b .Execute (); err != nil {
1489
1501
t .Fatal (err )
1490
1502
}
1503
+
1504
+ t .Run ("TabpageWindows" , func (t * testing.T ) {
1505
+ b := v .NewBatch ()
1506
+
1507
+ var gotWins []Window
1508
+ b .TabpageWindows (Tabpage (0 ), & gotWins )
1509
+ if err := b .Execute (); err != nil {
1510
+ t .Fatal (err )
1511
+ }
1512
+
1513
+ wantWins := []Window {Window (1000 )}
1514
+ if ! reflect .DeepEqual (gotWins , wantWins ) {
1515
+ t .Fatalf ("expected %v but got %v" , wantWins , gotWins )
1516
+ }
1517
+ })
1491
1518
})
1492
1519
}
1493
1520
}
You can’t perform that action at this time.
0 commit comments