aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmldirparser.cpp
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2012-05-17 13:40:50 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-17 12:23:48 +0200
commitc556eecc25e24d6ee4f5c9965193a588c93b95fc (patch)
tree2052f14c0ed7219309877408eca552007122817e /src/qml/qml/qqmldirparser.cpp
parent43a6cc75886c662e63db440dd191cefa1fe956f3 (diff)
Improve composite property type unit test
Previously, the test ensured that the (variant) value returned by QQmlProperty::read() was identical to that returned by QMetaProperty::read(), which isn't the case if an engine is passed to the QQmlProperty constructor. This commit expands the unit test to ensure that the actual QObject-ptr value is identical, rather than the variant value (which may have differing type information), regardless of whether an engine is passed in or not. For list properties, the individual values are (in general) not able to be accessed, and so the unit test for list properties is relaxed. Change-Id: Iec40dca147a0bb793359b28facbcae69cc49c1ad Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmldirparser.cpp')
0 files changed, 0 insertions, 0 deletions