diff options
Diffstat (limited to 'tests/auto/qscriptvalue/tst_qscriptvalue.h')
-rw-r--r-- | tests/auto/qscriptvalue/tst_qscriptvalue.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.h b/tests/auto/qscriptvalue/tst_qscriptvalue.h index d196ea5..7eb4f04 100644 --- a/tests/auto/qscriptvalue/tst_qscriptvalue.h +++ b/tests/auto/qscriptvalue/tst_qscriptvalue.h @@ -109,8 +109,8 @@ private slots: void getSetProperty(); void arrayElementGetterSetter(); void getSetData(); - void getSetScriptClass_nonObjects_data(); - void getSetScriptClass_nonObjects(); + void getSetScriptClass_emptyClass_data(); + void getSetScriptClass_emptyClass(); void getSetScriptClass_JSObjectFromCpp(); void getSetScriptClass_JSObjectFromJS(); void getSetScriptClass_QVariant(); @@ -128,6 +128,12 @@ private slots: void nestedObjectToVariant(); private: + void newEngine() + { + if (engine) + delete engine; + engine = new QScriptEngine(); + } QScriptEngine *engine; }; |