aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest/quicktestresult_p.h
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2012-06-07 13:08:13 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-18 05:19:44 +0200
commit1ce3a17ef51e10c03627842b9cdd0bb543ee8c83 (patch)
treee1450d6230744cd51421574899fbc00bda7e6ac2 /src/qmltest/quicktestresult_p.h
parent1fb66c77d55cfdbe5df9919cbe2f42ddde34fb22 (diff)
Add fuzzyCompare() to qmltest
Change-Id: I4834f4af0839fb89424ed25f0addfb618e5374f8 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'src/qmltest/quicktestresult_p.h')
-rw-r--r--src/qmltest/quicktestresult_p.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qmltest/quicktestresult_p.h b/src/qmltest/quicktestresult_p.h
index 76761b68ed..0ef41ade29 100644
--- a/src/qmltest/quicktestresult_p.h
+++ b/src/qmltest/quicktestresult_p.h
@@ -48,6 +48,7 @@
#include <QtCore/qstringlist.h>
#include <QtCore/qscopedpointer.h>
#include <QtQuick/qquickitem.h>
+#include <QtQml/private/qv8engine_p.h>
QT_BEGIN_NAMESPACE
@@ -111,12 +112,15 @@ public Q_SLOTS:
void finishTestDataCleanup();
void finishTestFunction();
+ void stringify(QQmlV8Function *args);
+
void fail(const QString &message, const QUrl &location, int line);
bool verify(bool success, const QString &message,
const QUrl &location, int line);
bool compare(bool success, const QString &message,
- const QString &val1, const QString &val2,
+ const QVariant &val1, const QVariant &val2,
const QUrl &location, int line);
+ bool fuzzyCompare(const QVariant &actual, const QVariant &expected, qreal delta);
void skip(const QString &message, const QUrl &location, int line);
bool expectFail(const QString &tag, const QString &comment,
const QUrl &location, int line);