aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlconsole
diff options
context:
space:
mode:
authorJani Heikkinen <jani.heikkinen@theqtcompany.com>2016-01-20 09:44:43 +0200
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>2016-01-20 11:46:18 +0000
commitcb5054ec8a783bac6c93946a0c321f8c3b093880 (patch)
tree7086d142361e62d749f9c83b3a9a533c3c892f7e /tests/auto/qml/qqmlconsole
parentaad500cafbdf184f9c5ac86cab520dc3c41f0473 (diff)
Fixed qtdeclarative tests to pass with updated license header
Change-Id: I3c826a7b3ee9ff66fac89a7a3d6f0e7057f03eed Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
Diffstat (limited to 'tests/auto/qml/qqmlconsole')
-rw-r--r--tests/auto/qml/qqmlconsole/tst_qqmlconsole.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/qml/qqmlconsole/tst_qqmlconsole.cpp b/tests/auto/qml/qqmlconsole/tst_qqmlconsole.cpp
index 98e3a53b81..9d48042ca2 100644
--- a/tests/auto/qml/qqmlconsole/tst_qqmlconsole.cpp
+++ b/tests/auto/qml/qqmlconsole/tst_qqmlconsole.cpp
@@ -97,8 +97,8 @@ void tst_qqmlconsole::tracing()
QUrl testUrl = testFileUrl("tracing.qml");
QString traceText =
- QString::fromLatin1("tracing (%1:%2)\n").arg(testUrl.toString()).arg(42) +
- QString::fromLatin1("onCompleted (%1:%2)").arg(testUrl.toString()).arg(46);
+ QString::fromLatin1("tracing (%1:%2)\n").arg(testUrl.toString()).arg(37) +
+ QString::fromLatin1("onCompleted (%1:%2)").arg(testUrl.toString()).arg(41);
QTest::ignoreMessage(QtDebugMsg, qPrintable(traceText));
@@ -128,11 +128,11 @@ void tst_qqmlconsole::testAssert()
// assert()
QString assert1 = "This will fail\n" +
- QString::fromLatin1("onCompleted (%1:%2)").arg(testUrl.toString()).arg(46);
+ QString::fromLatin1("onCompleted (%1:%2)").arg(testUrl.toString()).arg(41);
QString assert2 = "This will fail too\n" +
- QString::fromLatin1("assertFail (%1:%2)\n").arg(testUrl.toString()).arg(39) +
- QString::fromLatin1("onCompleted (%1:%2)").arg(testUrl.toString()).arg(51);
+ QString::fromLatin1("assertFail (%1:%2)\n").arg(testUrl.toString()).arg(34) +
+ QString::fromLatin1("onCompleted (%1:%2)").arg(testUrl.toString()).arg(46);
QTest::ignoreMessage(QtCriticalMsg, qPrintable(assert1));
QTest::ignoreMessage(QtCriticalMsg, qPrintable(assert2));
@@ -149,11 +149,11 @@ void tst_qqmlconsole::exception()
// exception()
QString exception1 = "Exception 1\n" +
- QString::fromLatin1("onCompleted (%1:%2)").arg(testUrl.toString()).arg(43);
+ QString::fromLatin1("onCompleted (%1:%2)").arg(testUrl.toString()).arg(38);
QString exception2 = "Exception 2\n" +
- QString::fromLatin1("exceptionFail (%1:%2)\n").arg(testUrl.toString()).arg(38) +
- QString::fromLatin1("onCompleted (%1:%2)").arg(testUrl.toString()).arg(48);
+ QString::fromLatin1("exceptionFail (%1:%2)\n").arg(testUrl.toString()).arg(33) +
+ QString::fromLatin1("onCompleted (%1:%2)").arg(testUrl.toString()).arg(43);
QTest::ignoreMessage(QtCriticalMsg, qPrintable(exception1));
QTest::ignoreMessage(QtCriticalMsg, qPrintable(exception2));