diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-07-08 12:53:26 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-07-08 14:48:20 (GMT) |
commit | d47ea38c927d488b83708564f2e79b09cd631b9f (patch) | |
tree | c9956f2b1ca89b7110023a419925a564b8712c38 /tests/auto/qscriptvalue | |
parent | 09303c005c1a41e0fb6bbf8375cdd72d46346a34 (diff) | |
download | Qt-d47ea38c927d488b83708564f2e79b09cd631b9f.zip Qt-d47ea38c927d488b83708564f2e79b09cd631b9f.tar.gz Qt-d47ea38c927d488b83708564f2e79b09cd631b9f.tar.bz2 |
Autotest engineDetected check status of unbind
QScriptValues added.
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 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() |