Skip to content

Commit b9cc3fd

Browse files
committed
Add test case about grid_line event
1 parent 7a010f0 commit b9cc3fd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

editor/screen_test.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,31 @@ func TestWindow_updateLine(t *testing.T) {
315315
Cell{hldef[6], "m", true, false, false},
316316
},
317317
},
318+
{
319+
"test_updateline() 5",
320+
fields{
321+
s: &Screen{hlAttrDef: hldef},
322+
content: content,
323+
contentMask: contentMask,
324+
grid: 6,
325+
cols: cols,
326+
rows: rows,
327+
},
328+
args{
329+
row: row,
330+
col: 0,
331+
cells: []interface{}{
332+
[]interface{}{" ", 7, 0},
333+
},
334+
},
335+
[]Cell{
336+
Cell{hldef[7], " ", true, false, false},
337+
Cell{hldef[7], " ", true, false, false},
338+
Cell{hldef[7], "J", true, false, false},
339+
Cell{hldef[6], "i", true, false, false},
340+
Cell{hldef[6], "m", true, false, false},
341+
},
342+
},
318343
}
319344

320345
// Do tests

0 commit comments

Comments
 (0)