Skip to content
Snippets Groups Projects
Commit 0032af7f authored by Bill King's avatar Bill King
Browse files

More work at getting autotests compiling.

parent ff6736fa
No related branches found
No related tags found
No related merge requests found
...@@ -2,5 +2,4 @@ TEMPLATE = lib ...@@ -2,5 +2,4 @@ TEMPLATE = lib
TARGET = CPlusPlusTestSupport TARGET = CPlusPlusTestSupport
CONFIG += static depend_includepath CONFIG += static depend_includepath
QT = core gui QT = core gui
DESTDIR = $$PWD
include($$PWD/../../../../src/libs/cplusplus/cplusplus-lib.pri) include($$PWD/../../../../src/libs/cplusplus/cplusplus-lib.pri)
QT += gui testlib QT += gui testlib
PLUGINSDIR = ../../../../src/plugins PLUGINSDIR = ../../../../src/plugins
TEXTEDITORDIR = $$PLUGINSDIR/texteditor
GENERICHIGHLIGHTERDIR = $$PLUGINSDIR/texteditor/generichighlighter GENERICHIGHLIGHTERDIR = $$PLUGINSDIR/texteditor/generichighlighter
SOURCES += tst_highlighterengine.cpp \ SOURCES += tst_highlighterengine.cpp \
highlightermock.cpp \ highlightermock.cpp \
formats.cpp \
$$TEXTEDITORDIR/syntaxhighlighter.cpp \
$$GENERICHIGHLIGHTERDIR/highlighter.cpp \ $$GENERICHIGHLIGHTERDIR/highlighter.cpp \
$$GENERICHIGHLIGHTERDIR/context.cpp \ $$GENERICHIGHLIGHTERDIR/context.cpp \
$$GENERICHIGHLIGHTERDIR/dynamicrule.cpp \ $$GENERICHIGHLIGHTERDIR/dynamicrule.cpp \
...@@ -13,15 +16,24 @@ SOURCES += tst_highlighterengine.cpp \ ...@@ -13,15 +16,24 @@ SOURCES += tst_highlighterengine.cpp \
$$GENERICHIGHLIGHTERDIR/progressdata.cpp \ $$GENERICHIGHLIGHTERDIR/progressdata.cpp \
$$GENERICHIGHLIGHTERDIR/highlightdefinition.cpp \ $$GENERICHIGHLIGHTERDIR/highlightdefinition.cpp \
$$GENERICHIGHLIGHTERDIR/keywordlist.cpp \ $$GENERICHIGHLIGHTERDIR/keywordlist.cpp \
$$GENERICHIGHLIGHTERDIR/itemdata.cpp \ $$GENERICHIGHLIGHTERDIR/itemdata.cpp
formats.cpp
HEADERS += \ HEADERS += \
highlightermock.h \ highlightermock.h \
basetextdocumentlayout.h \ basetextdocumentlayout.h \
formats.h \ formats.h \
tabsettings.h tabsettings.h \
$$TEXTEDITORDIR/syntaxhighlighter.h \
$$GENERICHIGHLIGHTERDIR/highlighter.h \
$$GENERICHIGHLIGHTERDIR/context.h \
$$GENERICHIGHLIGHTERDIR/dynamicrule.h \
$$GENERICHIGHLIGHTERDIR/rule.h \
$$GENERICHIGHLIGHTERDIR/specificrules.h \
$$GENERICHIGHLIGHTERDIR/progressdata.h \
$$GENERICHIGHLIGHTERDIR/highlightdefinition.h \
$$GENERICHIGHLIGHTERDIR/keywordlist.h \
$$GENERICHIGHLIGHTERDIR/itemdata.h
INCLUDEPATH += $$GENERICHIGHLIGHTERDIR $$PLUGINSDIR INCLUDEPATH += $$GENERICHIGHLIGHTERDIR $$PLUGINSDIR $$TEXTEDITORDIR
TARGET=tst_$$TARGET TARGET=tst_$$TARGET
...@@ -49,9 +49,9 @@ using namespace Internal; ...@@ -49,9 +49,9 @@ using namespace Internal;
HighlighterMock::HighlighterMock(QTextDocument *parent) : HighlighterMock::HighlighterMock(QTextDocument *parent) :
Highlighter(parent), Highlighter(parent),
m_debugDetails(false),
m_statesCounter(0), m_statesCounter(0),
m_formatsCounter(0), m_formatsCounter(0),
m_debugDetails(false),
m_noTestCall(false), m_noTestCall(false),
m_considerEmptyLines(false) m_considerEmptyLines(false)
{} {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment