Add more test cases to _examples/title.go

This commit is contained in:
Roi Martin 2016-02-06 15:21:38 +01:00
parent bb01d13a95
commit e669e2b30d
1 changed files with 26 additions and 0 deletions

View File

@ -62,6 +62,32 @@ func layout(g *gocui.Gui) error {
v.Title = "Regular title" v.Title = "Regular title"
} }
// Overlap (frame)
if v, err := g.SetView("v15", 90, 2, 110, 5); err != nil {
if err != gocui.ErrUnknownView {
return err
}
v.Title = "Regular title"
}
if v, err := g.SetView("v16", 100, 5, 120, 8); err != nil {
if err != gocui.ErrUnknownView {
return err
}
v.Title = "Regular title"
}
if v, err := g.SetView("v17", 140, 5, 160, 8); err != nil {
if err != gocui.ErrUnknownView {
return err
}
v.Title = "Regular title"
}
if v, err := g.SetView("v18", 130, 2, 150, 5); err != nil {
if err != gocui.ErrUnknownView {
return err
}
v.Title = "Regular title"
}
// Long title // Long title
if v, err := g.SetView("v5", 10, 12, 30, 16); err != nil { if v, err := g.SetView("v5", 10, 12, 30, 16); err != nil {
if err != gocui.ErrUnknownView { if err != gocui.ErrUnknownView {