From d25f11bb15cad8b24e4d0aaa041e998d0f86d3f7 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Thu, 9 Aug 2012 15:01:13 +1000 Subject: Add unit test for concatenated property name access Task-number: QTBUG-23126 Change-Id: I706d5f4ba49a554c3816146f15a87e001cde9a3f Reviewed-by: Peter Varga --- tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp') 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 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" -- cgit v1.2.3