summaryrefslogtreecommitdiff
path: root/redo/zz_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-08 22:28:58 -0400
committerPietro Gagliardi <[email protected]>2014-08-08 22:28:58 -0400
commit0cf86eeb03a53bd7f81c7de977cea1a2b1c3459c (patch)
treeb227dd9fc844781c711eaee2264c2a08ea86be53 /redo/zz_test.go
parent8ee7b2b8097ee7d67bb38d0180e81f53c6d05326 (diff)
Added nested and empty tabs to the test program, and fixed up relevant documentation.
Diffstat (limited to 'redo/zz_test.go')
-rw-r--r--redo/zz_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go
index 22ab0bc..61a7ca2 100644
--- a/redo/zz_test.go
+++ b/redo/zz_test.go
@@ -31,6 +31,7 @@ var ddata = []dtype{
type testwin struct {
t Tab
w Window
+ nt Tab
a Area
spw *Stack
sph *Stack
@@ -64,6 +65,11 @@ func (tw *testwin) make(done chan struct{}) {
done <- struct{}{}
return true
})
+ tw.t.Append("Blank Tab", NewTab())
+ tw.nt = NewTab()
+ tw.nt.Append("Tab 1", Space())
+ tw.nt.Append("Tab 2", Space())
+ tw.t.Append("Tab", tw.nt)
tw.t.Append("Space", Space())
tw.a = NewArea(200, 200, &areaHandler{})
tw.t.Append("Area", tw.a)