20#include <boost/test/unit_test.hpp>
28#include <wx/display.h>
29#include <wx/evtloop.h>
42 wxLongLong lastTime = 0;
49 BOOST_CHECK( lastTime == 1000 );
56 wxLongLong lastTime = 0;
67 wxLongLong lastTime = 0;
80 wxLongLong lastTime = 0;
93 wxLongLong lastTime = 0;
116class YIELDING_EVENT_LOOP :
public wxEventLoop
119 bool IsYielding()
const override {
return true; }
126 CONTEXT_MENU_TEST_TOOL() :
127 TOOL_INTERACTIVE(
"test.contextMenuTool" ),
133 void Reset( RESET_REASON aReason )
override {}
135 int ArmMenu(
const TOOL_EVENT& aEvent )
148 void setTransitions()
override { Go( &CONTEXT_MENU_TEST_TOOL::ArmMenu, armMenuEvent() ); }
166 CONTEXT_MENU_TEST_TOOL* tool =
new CONTEXT_MENU_TEST_TOOL();
168 mgr.
SetEnvironment(
nullptr,
nullptr,
nullptr,
nullptr,
nullptr );
172 YIELDING_EVENT_LOOP loop;
173 wxEventLoopActivator activate( &loop );
176 BOOST_CHECK( !tool->m_menuRan );
179 BOOST_CHECK( tool->m_menuRan );
bool CanDoDisplayTests()
Some tests on some platforms require a display connection to run.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_TEST_MESSAGE("Polyline has "<< chain.PointCount()<< " points")
BOOST_CHECK_EQUAL(result, "25.4")