Fix QScriptValueIterator::hasNext and QScriptValueIterator::hasPrevious
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>
Mon, 17 Jan 2011 08:47:52 +0000 (10:47 +0200)
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>
Mon, 17 Jan 2011 10:57:29 +0000 (12:57 +0200)
commite7907b32c323400562607253ec293e814c015f7a
treef83a38714d05ae7aa2968a49f5ebc7a410f05e87
parent6c52715202ad8fd3c3f4bb94207cb7627c12f995
Fix QScriptValueIterator::hasNext and QScriptValueIterator::hasPrevious

When a script engine is about to be deleted all bound iterators should
be invalidated. Previously behavior of the class was not tested for the
case, so new test for QScriptValueIterator was added.

Reviewed-by: Olivier Goffart
src/script/api/qscriptvalueiterator.cpp
tests/auto/qscriptvalueiterator/tst_qscriptvalueiterator.cpp