Added nested Box stress tests.

This commit is contained in:
Pietro Gagliardi 2015-08-09 01:59:06 -04:00
parent 4de4fdafdf
commit 0268028ccb
1 changed files with 18 additions and 0 deletions

View File

@ -67,6 +67,24 @@ func appLaunched() {
hbox.Add(Label(), false) hbox.Add(Label(), false)
box.Add(hbox, false) box.Add(hbox, false)
hbox = mkhbox()
var vbox = Box(vertical: firstvert, padded: spaced)
vbox.Add(Button("Button"), true)
hbox.Add(vbox, false)
vbox = Box(vertical: firstvert, padded: spaced)
vbox.Add(Button("Button 2"), true)
hbox.Add(vbox, true)
box.Add(hbox, false)
hbox = Box(vertical: firstvert, padded: spaced)
vbox = mkhbox()
vbox.Add(Button("Button"), true)
hbox.Add(vbox, false)
vbox = mkhbox()
vbox.Add(Button("Button 2"), true)
hbox.Add(vbox, true)
box.Add(hbox, false)
mainwin.Show() mainwin.Show()
keepAliveMainwin = mainwin keepAliveMainwin = mainwin