summaryrefslogtreecommitdiff
path: root/redo/zz_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/zz_test.go')
-rw-r--r--redo/zz_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go
index b3d44e7..2552642 100644
--- a/redo/zz_test.go
+++ b/redo/zz_test.go
@@ -28,6 +28,8 @@ var ddata = []dtype{
type testwin struct {
t Tab
w Window
+ spw *Stack
+ sph *Stack
s *Stack // TODO make Stack
l Label
table Table
@@ -49,6 +51,22 @@ func (tw *testwin) make(done chan struct{}) {
done <- struct{}{}
return true
})
+ tw.spw = NewHorizontalStack(
+ NewButton("hello"),
+ NewCheckbox("hello"),
+ NewTextField(),
+ NewPasswordField(),
+ NewTable(reflect.TypeOf(struct{A,B,C int}{})),
+ NewStandaloneLabel("hello"))
+ tw.t.Append("Pref Width", tw.spw)
+ tw.sph = NewVerticalStack(
+ NewButton("hello"),
+ NewCheckbox("hello"),
+ NewTextField(),
+ NewPasswordField(),
+ NewTable(reflect.TypeOf(struct{A,B,C int}{})),
+ NewStandaloneLabel("hello"))
+ tw.t.Append("Pref Height", tw.sph)
stack1 := NewHorizontalStack(NewLabel("Test"), NewTextField())
stack1.SetStretchy(1)
stack2 := NewHorizontalStack(NewLabel("Test 2"),