diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2010-07-07 08:24:53 (GMT) |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2010-07-07 08:27:29 (GMT) |
commit | 1350f26569a4ab802ba93dc23e5dcb964a0cd3a5 (patch) | |
tree | 486c414e229c4e212bb3b4532a981060b93ddfe5 /tests/auto/qscriptvalue | |
parent | 401a6552f2601e5ca5b2e00a274baa6dcd83c96e (diff) | |
download | Qt-1350f26569a4ab802ba93dc23e5dcb964a0cd3a5.zip Qt-1350f26569a4ab802ba93dc23e5dcb964a0cd3a5.tar.gz Qt-1350f26569a4ab802ba93dc23e5dcb964a0cd3a5.tar.bz2 |
Add missing API shims
There were still a couple of functions that didn't have them. This
could cause said functions to crash if multiple script engines were
being used.
Reviewed-by: Jedrzej Nowacki
Diffstat (limited to 'tests/auto/qscriptvalue')
-rw-r--r-- | tests/auto/qscriptvalue/tst_qscriptvalue.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp index 8aa4e711..83a3388 100644 --- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp +++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp @@ -2123,6 +2123,10 @@ void tst_QScriptValue::getSetProperty() QVERIFY(object.property(foo).strictlyEquals(num)); QVERIFY(object.property("foo").strictlyEquals(num)); QVERIFY(object.propertyFlags(foo) == 0); + + // Setting index property on non-Array + object.setProperty(13, num); + QVERIFY(object.property(13).equals(num)); } void tst_QScriptValue::arrayElementGetterSetter() |