From d47ea38c927d488b83708564f2e79b09cd631b9f Mon Sep 17 00:00:00 2001 From: Jedrzej Nowacki Date: Wed, 8 Jul 2009 14:53:26 +0200 Subject: Autotest engineDetected check status of unbind QScriptValues added. --- tests/auto/qscriptvalue/tst_qscriptvalue.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp index c8762c3..6393e7d 100644 --- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp +++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp @@ -3207,6 +3207,8 @@ void tst_QScriptValue::engineDeleted() QVERIFY(v3.isObject()); QScriptValue v4 = eng->newQObject(this); QVERIFY(v4.isQObject()); + QScriptValue v5 = "Hello"; + QVERIFY(v2.isString()); delete eng; @@ -3218,6 +3220,8 @@ void tst_QScriptValue::engineDeleted() QVERIFY(v3.engine() == 0); QVERIFY(!v4.isValid()); QVERIFY(v4.engine() == 0); + QVERIFY(v5.isValid()); + QVERIFY(v5.engine() == 0); } void tst_QScriptValue::valueOfWithClosure() -- cgit v0.12