mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-02 03:10:42 +08:00
Added a test with a tiny bit of meaning (cribbed from wxWidgets tests).
This commit is contained in:
parent
0838fbb73d
commit
464f696f9e
@ -7,5 +7,20 @@
|
||||
|
||||
#include "testableframe.h"
|
||||
|
||||
TEST_CASE( "Dummy" ) {
|
||||
SCENARIO( "checkboxes return true when checked.", "[checkbox]" ) {
|
||||
GIVEN( "A checkbox item") {
|
||||
wxCheckBox* m_check = new wxCheckBox(wxTheApp->GetTopWindow(), wxID_ANY, "Check box");
|
||||
WHEN ( "the box is checked") {
|
||||
m_check->SetValue(true);
|
||||
THEN ( "the checkbox reads true") {
|
||||
REQUIRE(m_check->IsChecked() == true);
|
||||
}
|
||||
}
|
||||
WHEN ( "the box is not checked") {
|
||||
m_check->SetValue(false);
|
||||
THEN ( "the checkbox reads false") {
|
||||
REQUIRE(m_check->IsChecked() == false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user