QDeclarative tests: Introduce base class for data tests.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Wed, 21 Dec 2011 08:06:26 +0000 (09:06 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Dec 2011 14:35:22 +0000 (15:35 +0100)
commit8249c72213bc7d212c05aa086b3145a5742706a3
tree4a34b97b0d57a05707c65b7328d5ab1bf4254920
parent3c211558f6b571555558bd1fc59774e36a6da710
QDeclarative tests: Introduce base class for data tests.

In tests/auto/shared/util.* replace macros/find functions by
a base class QDeclarativeDataTest with accessors for the
data directory helper functions to create URLs from it.

The class relies on QFINDTESTDATA, which is the standard
way of locating test data. Using the class should reduce
the number of calls to QFileInfo.exists(), etc significantly.

In addition, provide utility functions for messages.

Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Change-Id: Id2beacb157922ee9412f9e45cf9695cec1f8379a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
122 files changed:
tests/auto/declarative/debugger/qdeclarativedebugjs/qdeclarativedebugjs.pro
tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp
tests/auto/declarative/debugger/qdeclarativedebugtrace/qdeclarativedebugtrace.pro
tests/auto/declarative/debugger/qdeclarativedebugtrace/tst_qdeclarativedebugtrace.cpp
tests/auto/declarative/debugger/qv8profilerservice/qv8profilerservice.pro
tests/auto/declarative/debugger/qv8profilerservice/tst_qv8profilerservice.cpp
tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro
tests/auto/declarative/qdeclarativebinding/tst_qdeclarativebinding.cpp
tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro
tests/auto/declarative/qdeclarativeconnection/tst_qdeclarativeconnection.cpp
tests/auto/declarative/qdeclarativeconsole/qdeclarativeconsole.pro
tests/auto/declarative/qdeclarativeconsole/tst_qdeclarativeconsole.cpp
tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro
tests/auto/declarative/qdeclarativecontext/tst_qdeclarativecontext.cpp
tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro
tests/auto/declarative/qdeclarativeerror/tst_qdeclarativeerror.cpp
tests/auto/declarative/qdeclarativeexpression/qdeclarativeexpression.pro
tests/auto/declarative/qdeclarativeexpression/tst_qdeclarativeexpression.cpp
tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro
tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp
tests/auto/declarative/qdeclarativeincubator/qdeclarativeincubator.pro
tests/auto/declarative/qdeclarativeincubator/tst_qdeclarativeincubator.cpp
tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro
tests/auto/declarative/qdeclarativeinfo/tst_qdeclarativeinfo.cpp
tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro
tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp
tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro
tests/auto/declarative/qdeclarativelistreference/tst_qdeclarativelistreference.cpp
tests/auto/declarative/qdeclarativelocale/qdeclarativelocale.pro
tests/auto/declarative/qdeclarativelocale/tst_qdeclarativelocale.cpp
tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp
tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.pro
tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro
tests/auto/declarative/qdeclarativeproperty/tst_qdeclarativeproperty.cpp
tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro
tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp
tests/auto/declarative/qdeclarativesqldatabase/qdeclarativesqldatabase.pro
tests/auto/declarative/qdeclarativesqldatabase/tst_qdeclarativesqldatabase.cpp
tests/auto/declarative/qdeclarativetranslation/qdeclarativetranslation.pro
tests/auto/declarative/qdeclarativetranslation/tst_qdeclarativetranslation.cpp
tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro
tests/auto/declarative/qdeclarativevaluetypes/tst_qdeclarativevaluetypes.cpp
tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp
tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro
tests/auto/declarative/qdeclarativexmlhttprequest/tst_qdeclarativexmlhttprequest.cpp
tests/auto/declarative/v4/tst_v4.cpp
tests/auto/declarative/v4/v4.pro
tests/auto/qtquick2/qdeclarativeanimations/qdeclarativeanimations.pro
tests/auto/qtquick2/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
tests/auto/qtquick2/qdeclarativebehaviors/qdeclarativebehaviors.pro
tests/auto/qtquick2/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
tests/auto/qtquick2/qdeclarativefontloader/qdeclarativefontloader.pro
tests/auto/qtquick2/qdeclarativefontloader/tst_qdeclarativefontloader.cpp
tests/auto/qtquick2/qdeclarativepath/qdeclarativepath.pro
tests/auto/qtquick2/qdeclarativepath/tst_qdeclarativepath.cpp
tests/auto/qtquick2/qdeclarativepixmapcache/qdeclarativepixmapcache.pro
tests/auto/qtquick2/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
tests/auto/qtquick2/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro
tests/auto/qtquick2/qdeclarativesmoothedanimation/tst_qdeclarativesmoothedanimation.cpp
tests/auto/qtquick2/qdeclarativespringanimation/qdeclarativespringanimation.pro
tests/auto/qtquick2/qdeclarativespringanimation/tst_qdeclarativespringanimation.cpp
tests/auto/qtquick2/qdeclarativestates/qdeclarativestates.pro
tests/auto/qtquick2/qdeclarativestates/tst_qdeclarativestates.cpp
tests/auto/qtquick2/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro
tests/auto/qtquick2/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
tests/auto/qtquick2/qquickanchors/qquickanchors.pro
tests/auto/qtquick2/qquickanchors/tst_qquickanchors.cpp
tests/auto/qtquick2/qquickanimatedimage/qquickanimatedimage.pro
tests/auto/qtquick2/qquickanimatedimage/tst_qquickanimatedimage.cpp
tests/auto/qtquick2/qquickborderimage/qquickborderimage.pro
tests/auto/qtquick2/qquickborderimage/tst_qquickborderimage.cpp
tests/auto/qtquick2/qquickcanvas/qquickcanvas.pro
tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp
tests/auto/qtquick2/qquickflickable/qquickflickable.pro
tests/auto/qtquick2/qquickflickable/tst_qquickflickable.cpp
tests/auto/qtquick2/qquickflipable/qquickflipable.pro
tests/auto/qtquick2/qquickflipable/tst_qquickflipable.cpp
tests/auto/qtquick2/qquickfocusscope/qquickfocusscope.pro
tests/auto/qtquick2/qquickfocusscope/tst_qquickfocusscope.cpp
tests/auto/qtquick2/qquickgridview/qquickgridview.pro
tests/auto/qtquick2/qquickgridview/tst_qquickgridview.cpp
tests/auto/qtquick2/qquickimage/qquickimage.pro
tests/auto/qtquick2/qquickimage/tst_qquickimage.cpp
tests/auto/qtquick2/qquickitem/qquickitem.pro
tests/auto/qtquick2/qquickitem/tst_qquickitem.cpp
tests/auto/qtquick2/qquickitem2/qquickitem2.pro
tests/auto/qtquick2/qquickitem2/tst_qquickitem.cpp
tests/auto/qtquick2/qquicklistview/qquicklistview.pro
tests/auto/qtquick2/qquicklistview/tst_qquicklistview.cpp
tests/auto/qtquick2/qquickloader/qquickloader.pro
tests/auto/qtquick2/qquickloader/tst_qquickloader.cpp
tests/auto/qtquick2/qquickmousearea/qquickmousearea.pro
tests/auto/qtquick2/qquickmousearea/tst_qquickmousearea.cpp
tests/auto/qtquick2/qquickpathview/qquickpathview.pro
tests/auto/qtquick2/qquickpathview/tst_qquickpathview.cpp
tests/auto/qtquick2/qquickpincharea/qquickpincharea.pro
tests/auto/qtquick2/qquickpincharea/tst_qquickpincharea.cpp
tests/auto/qtquick2/qquickpositioners/qquickpositioners.pro
tests/auto/qtquick2/qquickpositioners/tst_qquickpositioners.cpp
tests/auto/qtquick2/qquickrepeater/qquickrepeater.pro
tests/auto/qtquick2/qquickrepeater/tst_qquickrepeater.cpp
tests/auto/qtquick2/qquickscreen/qquickscreen.pro
tests/auto/qtquick2/qquickscreen/tst_qquickscreen.cpp
tests/auto/qtquick2/qquickspriteimage/qquickspriteimage.pro
tests/auto/qtquick2/qquickspriteimage/tst_qquickspriteimage.cpp
tests/auto/qtquick2/qquicktext/qquicktext.pro
tests/auto/qtquick2/qquicktext/tst_qquicktext.cpp
tests/auto/qtquick2/qquicktextedit/qquicktextedit.pro
tests/auto/qtquick2/qquicktextedit/tst_qquicktextedit.cpp
tests/auto/qtquick2/qquicktextinput/qquicktextinput.pro
tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp
tests/auto/qtquick2/qquickview/qquickview.pro
tests/auto/qtquick2/qquickview/tst_qquickview.cpp
tests/auto/qtquick2/qquickvisualdatamodel/qquickvisualdatamodel.pro
tests/auto/qtquick2/qquickvisualdatamodel/tst_qquickvisualdatamodel.cpp
tests/auto/shared/util.cpp [new file with mode: 0644]
tests/auto/shared/util.h