Added tests for TextSize and ExpandDirection in ComboBox

0.8
Bruno Van de Velde 2017-09-23 14:59:41 +02:00
parent a223933ab7
commit 635517e1c3
1 changed files with 15 additions and 0 deletions

View File

@ -221,6 +221,21 @@ TEST_CASE("[ComboBox]")
REQUIRE(comboBox->getItems()[2] == "Item 3");
}
SECTION("TextSize")
{
comboBox->setTextSize(25);
REQUIRE(comboBox->getTextSize() == 25);
}
SECTION("ExpandDirection")
{
REQUIRE(comboBox->getExpandDirection() == tgui::ComboBox::ExpandDirection::Down);
comboBox->setExpandDirection(tgui::ComboBox::ExpandDirection::Up);
REQUIRE(comboBox->getExpandDirection() == tgui::ComboBox::ExpandDirection::Up);
comboBox->setExpandDirection(tgui::ComboBox::ExpandDirection::Down);
REQUIRE(comboBox->getExpandDirection() == tgui::ComboBox::ExpandDirection::Down);
}
SECTION("Events / Signals")
{
SECTION("Widget")