| 24 | } |
| 25 | |
| 26 | void createTestUI() |
| 27 | { |
| 28 | _window = std::make_shared<bdn::ui::Window>(); |
| 29 | _window->geometry = {0, 0, 300, 400}; |
| 30 | _window->setLayout(std::make_shared<bdn::ui::yoga::Layout>()); |
| 31 | _window->stylesheet = FlexJsonStringify({"justifyContent" : "Center", "alignItems" : "Center"}); |
| 32 | |
| 33 | _progressLabel = std::make_shared<bdn::ui::Label>(); |
| 34 | _testNameLabel = std::make_shared<bdn::ui::Label>(); |
| 35 | |
| 36 | auto container = std::make_shared<bdn::ui::ContainerView>(); |
| 37 | container->stylesheet = FlexJsonStringify({"justifyContent" : "Center", "alignItems" : "Center"}); |
| 38 | |
| 39 | container->addChildView(_progressLabel); |
| 40 | container->addChildView(_testNameLabel); |
| 41 | |
| 42 | _window->contentView = container; |
| 43 | |
| 44 | updateProgressLabel(); |
| 45 | |
| 46 | _window->visible = true; |
| 47 | } |
| 48 | |
| 49 | void updateProgressLabel() |
| 50 | { |
nothing calls this directly
no test coverage detected