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 @@ -1454,6 +1454,18 @@ func testTabpage(v *Nvim) func(*testing.T) {
1454
1454
t .Fatal (err )
1455
1455
}
1456
1456
1457
+ t .Run ("TabpageWindow" , func (t * testing.T ) {
1458
+ gotWin , err := v .TabpageWindow (Tabpage (0 ))
1459
+ if err != nil {
1460
+ t .Fatal (err )
1461
+ }
1462
+
1463
+ wantWin := Window (1000 )
1464
+ if ! reflect .DeepEqual (gotWin , wantWin ) {
1465
+ t .Fatalf ("expected %v but got %v" , wantWin , gotWin )
1466
+ }
1467
+ })
1468
+
1457
1469
t .Run ("TabpageWindows" , func (t * testing.T ) {
1458
1470
gotWins , err := v .TabpageWindows (Tabpage (0 ))
1459
1471
if err != nil {
@@ -1501,6 +1513,21 @@ func testTabpage(v *Nvim) func(*testing.T) {
1501
1513
t .Fatal (err )
1502
1514
}
1503
1515
1516
+ t .Run ("TabpageWindow" , func (t * testing.T ) {
1517
+ b := v .NewBatch ()
1518
+
1519
+ var gotWin Window
1520
+ b .TabpageWindow (Tabpage (0 ), & gotWin )
1521
+ if err := b .Execute (); err != nil {
1522
+ t .Fatal (err )
1523
+ }
1524
+
1525
+ wantWin := Window (1000 )
1526
+ if gotWin != wantWin {
1527
+ t .Fatalf ("expected %v but got %v" , wantWin , gotWin )
1528
+ }
1529
+ })
1530
+
1504
1531
t .Run ("TabpageWindows" , func (t * testing.T ) {
1505
1532
b := v .NewBatch ()
1506
1533
You can’t perform that action at this time.
0 commit comments