Remove fragile assumption from var properties unit test
authorChris Adams <christopher.adams@nokia.com>
Thu, 15 Dec 2011 06:03:58 +0000 (16:03 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Dec 2011 07:00:18 +0000 (08:00 +0100)
commit32c6ba2c3802bfda11e455c8aaaee41662c237fb
treeee1218a680285fcfe9c79bc0a6c58a501372815d
parent8b8b0bac82681e822896107c6ad11e3a18082059
Remove fragile assumption from var properties unit test

Previously, the test included some hardcoded property index values
which would break if the layout of an item changed.  This commit
ensures that the index of the properties are looked up dynamically.

Change-Id: I5a499f81a0cb859d89f0972eb7cd645107336bc9
Reviewed-by: Martin Jones <martin.jones@nokia.com>
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp