From 0268028ccb6bc071372e9d6ff50392eac7901550 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 9 Aug 2015 01:59:06 -0400 Subject: [PATCH] Added nested Box stress tests. --- redo/osxaltest/main.swift | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/redo/osxaltest/main.swift b/redo/osxaltest/main.swift index 8ae96509..1e5caedf 100644 --- a/redo/osxaltest/main.swift +++ b/redo/osxaltest/main.swift @@ -67,6 +67,24 @@ func appLaunched() { hbox.Add(Label(), 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() keepAliveMainwin = mainwin