diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-07 23:21:27 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-06-08 22:40:56 +0200 |
commit | b425fbbd0ae9ff00f60af222bca08096719843f4 (patch) | |
tree | d304f1e09fbcbcb0a3c47c60e6ba5579368f2236 /tests | |
parent | aeb5e8319c14721a03c3ab797c893efeb29bb162 (diff) |
Fix qqmlecmascript::enums and nonNotifyable
In the v8 bindings in expressionIdentifier we used to print the url with line
number and only in the base class we printed the expression itself. With
qv8bindings.cpp gone, we can do that now in the base class, as expected by the
test.
Adjusted the test also by columns.
Change-Id: I8d532d21baf5bf2fbfcca56c2657a1d65025fe84
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 3242380092..d438fd1a86 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -972,13 +972,13 @@ void tst_qqmlecmascript::enums() { QUrl file = testFileUrl("enums.2.qml"); QString w1 = QLatin1String("QMetaProperty::read: Unable to handle unregistered datatype 'MyEnum' for property 'MyUnregisteredEnumTypeObject::enumProperty'"); - QString w2 = QLatin1String("QQmlExpression: Expression ") + testFileUrl("enums.2.qml").toString() + QLatin1String(":9 depends on non-NOTIFYable properties:"); + QString w2 = QLatin1String("QQmlExpression: Expression ") + testFileUrl("enums.2.qml").toString() + QLatin1String(":9:21 depends on non-NOTIFYable properties:"); QString w3 = QLatin1String(" MyUnregisteredEnumTypeObject::enumProperty"); - QString w4 = file.toString() + ":7: Unable to assign [undefined] to int"; - QString w5 = file.toString() + ":8: Unable to assign [undefined] to int"; - QString w6 = file.toString() + ":9: Unable to assign [undefined] to int"; - QString w7 = file.toString() + ":13: Unable to assign [undefined] to [unknown property type]"; - QString w8 = file.toString() + ":31: Unable to assign int to [unknown property type]"; + QString w4 = file.toString() + ":7:21: Unable to assign [undefined] to int"; + QString w5 = file.toString() + ":8:21: Unable to assign [undefined] to int"; + QString w6 = file.toString() + ":9:21: Unable to assign [undefined] to int"; + QString w7 = file.toString() + ":13:23: Unable to assign [undefined] to [unknown property type]"; + QString w8 = file.toString() + ":31:23: Unable to assign int to [unknown property type]"; QTest::ignoreMessage(QtWarningMsg, qPrintable(w1)); QTest::ignoreMessage(QtWarningMsg, qPrintable(w2)); QTest::ignoreMessage(QtWarningMsg, qPrintable(w3)); @@ -6444,7 +6444,7 @@ void tst_qqmlecmascript::nonNotifyable() QString expected1 = QLatin1String("QQmlExpression: Expression ") + component.url().toString() + - QLatin1String(":5 depends on non-NOTIFYable properties:"); + QLatin1String(":5:24 depends on non-NOTIFYable properties:"); QString expected2 = QLatin1String(" ") + QLatin1String(object->metaObject()->className()) + QLatin1String("::value"); |