Fix tst_qqmlecmascript::functionAssignmentfromJS_invalid
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 18 Jun 2013 12:15:19 +0000 (14:15 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Tue, 18 Jun 2013 14:55:25 +0000 (16:55 +0200)
Remove the column number from the expected output, as we generate those
QQmlBinding objects from within a v4 callback and produce the line number
and column number from the stack trace of the engine, which currently
doesn't produce column numbers.

Change-Id: I9840f0ab571d4261570dd079436aaa9f81e27abf
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp

index 172d2b7..f910baa 100644 (file)
@@ -5710,11 +5710,11 @@ void tst_qqmlecmascript::functionAssignmentfromJS_invalid()
     QVERIFY(!o->property("a").isValid());
 
     QString url = component.url().toString();
-    QString warning = url + ":67:17: Unable to assign QString to int";
+    QString warning = url + ":67: Unable to assign QString to int";
     QTest::ignoreMessage(QtWarningMsg, warning.toLatin1().constData());
     o->setProperty("assignWrongType", true);
 
-    warning = url + ":71:29: Unable to assign QString to int";
+    warning = url + ":71: Unable to assign QString to int";
     QTest::ignoreMessage(QtWarningMsg, warning.toLatin1().constData());
     o->setProperty("assignWrongTypeToValueType", true);