diff options
author | Rainer Keller <Rainer.Keller@qt.io> | 2018-07-02 11:47:58 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-07-02 13:42:14 +0000 |
commit | 22ef109ccdc64e0f9afb82b1b7b3d4c39e31a5ab (patch) | |
tree | 293c06682513c5d29602b5441a4db0c0316d4714 /tests | |
parent | 260e165993fe15a1668cfd36caee18a95b2d2f59 (diff) |
Improve error message
Change-Id: I29b9a35c080c50469ac1a3ff5f83a31349e801ad
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index acdee3a808..2e8f61ef10 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -8103,7 +8103,7 @@ void tst_qqmlecmascript::setPropertyOnInvalid() QQmlEngine engine; { QQmlComponent component(&engine, testFileUrl("setPropertyOnNull.qml")); - QString warning = component.url().toString() + ":4: TypeError: Type error"; + QString warning = component.url().toString() + ":4: TypeError: Value is null and could not be converted to an object"; QTest::ignoreMessage(QtWarningMsg, qPrintable(warning)); QObject *object = component.create(); QVERIFY(object); @@ -8112,7 +8112,7 @@ void tst_qqmlecmascript::setPropertyOnInvalid() { QQmlComponent component(&engine, testFileUrl("setPropertyOnUndefined.qml")); - QString warning = component.url().toString() + ":4: TypeError: Type error"; + QString warning = component.url().toString() + ":4: TypeError: Value is undefined and could not be converted to an object"; QTest::ignoreMessage(QtWarningMsg, qPrintable(warning)); QObject *object = component.create(); QVERIFY(object); |