Skip to content

Commit 4b0df9e

Browse files
committed
Add test for overriden checkbox.style
1 parent 38b5cb0 commit 4b0df9e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/test_xwidgets.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,20 @@ namespace xw
7777
REQUIRE_EQ(true, c.indent());
7878
}
7979

80+
TEST_CASE("checkbox.style")
81+
{
82+
checkbox c;
83+
c.style = checkbox_style::initialize() //
84+
.background("black")
85+
.description_width("3")
86+
.finalize();
87+
REQUIRE_EQ("black", c.style().background());
88+
REQUIRE_EQ("3", c.style().description_width());
89+
90+
c.style().description_width = "50";
91+
REQUIRE_EQ("50", c.style().description_width());
92+
}
93+
8094
TEST_CASE("html")
8195
{
8296
html h;

0 commit comments

Comments
 (0)