12#include <QtTest/QtTest>
23TestGuidelines::Result::Result (
bool pass,
30bool TestGuidelines::Result::pass ()
const
35QString TestGuidelines::Result::problem ()
const
47void TestGuidelines::cleanupTestCase ()
54 Guidelines &guidelines = m_mainWindow->guidelines();
58 GuidelineContainerPrivate::const_iterator
itr;
101 str <<
"Expected/got=";
124 return Result (
false,
141void TestGuidelines::initTestCase ()
177 m_mainWindow->show ();
179 test00StartupWithoutTransformationPrepare ();
184 qApp->processEvents ();
197 test01AfterAddingTransformationPrepare ();
200void TestGuidelines::test00StartupWithoutTransformationPrepare ()
209 m_showTimer.setSingleShot (
true);
213void TestGuidelines::test00StartupWithoutTransformationReport ()
216 const Result &
result = m_results.front ();
221 bool pass =
result.pass ();
222 m_results.pop_front ();
236 test02AfterRemovingTransformationPrepare ();
239void TestGuidelines::test01AfterAddingTransformationPrepare ()
280void TestGuidelines::test01AfterAddingTransformationReport ()
283 const Result &
result = m_results.front ();
288 bool pass =
result.pass ();
289 m_results.pop_front ();
306void TestGuidelines::test02AfterRemovingTransformationPrepare ()
328void TestGuidelines::test02AfterRemovingTransformationReport ()
331 const Result &
result = m_results.front ();
336 bool pass =
result.pass ();
337 m_results.pop_front ();
342void TestGuidelines::turnOffChecklist ()
const int INNER_RADIUS_MIN
QString guidelineStateAsString(GuidelineState state)
GuidelineState
Set of possible Guideline states. See class Guideline for more information.
@ GUIDELINE_STATE_DISCARDED
QList< GuidelineAbstract * > GuidelineContainerPrivate
void initializeLogging(const QString &name, const QString &filename, bool isDebug)
const QString SETTINGS_ENGAUGE
const QString SETTINGS_CHECKLIST_GUIDE_WIZARD
const QString SETTINGS_GROUP_MAIN_WINDOW
const QString SETTINGS_DIGITIZER
const bool NO_EXPORT_ONLY
const QStringList NO_COMMAND_LINE
const QString NO_ERROR_REPORT_LOG_FILE
const bool NO_GNUPLOT_LOG_FILES
const QString NO_REGRESSION_OPEN_FILE
const bool NO_REGRESSION_IMPORT
const bool NO_DROP_REGRESSION
Command for adding one axis point.
Command for deleting all selected Points.
Command for sending a satisfying signal to the unit test framework to indicate completion of queued c...
This class is a special case of the standard QGraphicsLineItem for guidelines, and serves as the base...
QString stateName() const
Current state name for debugging and unit test only.
This class contains all Guideline objects.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
CmdMediator * cmdMediator()
Accessor for commands to process the Document.
void test02AfterRemovingTransformation()
void test01AfterAddingTransformation()
void test00StartupWithoutTransformation()
TestGuidelines(QObject *parent=0)
Single constructor.