Don't allow tst_QJSEngine or tst_QJSValue instance to be collected
authorChris Adams <christopher.adams@nokia.com>
Thu, 15 Mar 2012 00:20:26 +0000 (10:20 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Mar 2012 01:44:40 +0000 (02:44 +0100)
commit147247a31a9d6c1edadb0c7c78cf10b894dfab25
tree9a4a25f6552c96efd9861f8c05ad23618ea06846
parent5ae8caba10a79c2298939aff777a0201959a94af
Don't allow tst_QJSEngine or tst_QJSValue instance to be collected

Both of those unit tests currently change the ownership of the test
instance object, which could result in it being collected by the JS
GC and deleted if events were processed.

Change-Id: I5a9821fb56e19af1d52fea46e54755875dfbb29a
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
tests/auto/qml/qjsengine/tst_qjsengine.cpp
tests/auto/qml/qjsvalue/tst_qjsvalue.cpp