summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-24 11:18:47 -0500
committerPietro Gagliardi <[email protected]>2014-02-24 11:18:47 -0500
commit8bf2b5cc76cf4904e844f6d10ff1bafd65e762db (patch)
tree9727a9861960083845cd5e3ba44a825a3b13d471
parentb71653086383b49630eb4664b67254e0cac9a77e (diff)
Adjusted main_test.go to make use of SetStretchy(). IT WORKS! :D
-rw-r--r--main_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main_test.go b/main_test.go
index bc17535..3917fef 100644
--- a/main_test.go
+++ b/main_test.go
@@ -19,6 +19,8 @@ func TestMain(t *testing.T) {
l := NewLabel("This is a label")
b3 := NewButton("List Info")
s3 := NewStack(Horizontal, l, b3)
+ s3.SetStretchy(0)
+// s3.SetStretchy(1)
s0 := NewStack(Vertical, s2, c, cb1, cb2, e, s3)
lb1 := NewListbox(true, "Select One", "Or More", "To Continue")
lb2 := NewListbox(false, "Select", "Only", "One", "Please")
@@ -32,7 +34,11 @@ func TestMain(t *testing.T) {
}
doAdjustments()
s1 := NewStack(Vertical, lb2, lb1)
+ s1.SetStretchy(0)
+ s1.SetStretchy(1)
s := NewStack(Horizontal, s1, s0)
+ s.SetStretchy(0)
+ s.SetStretchy(1)
err := w.Open(s)
if err != nil {
panic(err)