diff options
author | Chris Adams <christopher.adams@nokia.com> | 2012-08-09 15:01:13 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-09 11:50:58 +0200 |
commit | d25f11bb15cad8b24e4d0aaa041e998d0f86d3f7 (patch) | |
tree | ad85ce30e3614dff4a9321450c271a6c6e81e235 /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | |
parent | 0e0f46c01cf6a183996d36c31987ca4a46b50bd9 (diff) |
Add unit test for concatenated property name access
Task-number: QTBUG-23126
Change-Id: I706d5f4ba49a554c3816146f15a87e001cde9a3f
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 55b76f1d20..963bec91bf 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -281,6 +281,7 @@ private slots: void overrideDataAssert(); void fallbackBindings_data(); void fallbackBindings(); + void concatenatedStringPropertyAccess(); private: static void propertyVarWeakRefCallback(v8::Persistent<v8::Value> object, void* parameter); @@ -7280,6 +7281,15 @@ void tst_qqmlecmascript::sequenceSort() delete object; } +void tst_qqmlecmascript::concatenatedStringPropertyAccess() +{ + QQmlComponent component(&engine, testFileUrl("concatenatedStringPropertyAccess.qml")); + QObject *object = component.create(); + QVERIFY(object); + QVERIFY(object->property("success").toBool()); + delete object; +} + QTEST_MAIN(tst_qqmlecmascript) #include "tst_qqmlecmascript.moc" |