Skip to content

Commit

Permalink
Add test for overriden checkbox.style
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Jan 27, 2023
1 parent e5b712a commit 1fba8fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test_xwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ namespace xw
REQUIRE_EQ(true, c.indent());
}

TEST_CASE("checkbox.style")
{
checkbox c;
c.style = checkbox_style::initialize() //
.background("black")
.description_width("3")
.finalize();
REQUIRE_EQ("black", c.style().background());
REQUIRE_EQ("3", c.style().description_width());

c.style().description_width = "50";
REQUIRE_EQ("50", c.style().description_width());
}

TEST_CASE("html")
{
html h;
Expand Down

0 comments on commit 1fba8fc

Please sign in to comment.