diff options
Diffstat (limited to 'tests/auto/qscriptqobject/tst_qscriptqobject.cpp')
-rw-r--r-- | tests/auto/qscriptqobject/tst_qscriptqobject.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/auto/qscriptqobject/tst_qscriptqobject.cpp b/tests/auto/qscriptqobject/tst_qscriptqobject.cpp index c456f1c..acabd4d 100644 --- a/tests/auto/qscriptqobject/tst_qscriptqobject.cpp +++ b/tests/auto/qscriptqobject/tst_qscriptqobject.cpp @@ -2839,11 +2839,8 @@ void tst_QScriptExtQObject::objectDeleted() eng.evaluate("Object"); QVERIFY(!eng.hasUncaughtException()); v.setProperty("objectName", QScriptValue(&eng, "foo")); - QEXPECT_FAIL("", "Attempt to set property of deleted QObject should throw error", Continue); QVERIFY(eng.hasUncaughtException()); - QEXPECT_FAIL("", "Attempt to set property of deleted QObject should throw error", Continue); QVERIFY(eng.uncaughtException().isError()); - QEXPECT_FAIL("", "Attempt to set property of deleted QObject should throw error", Continue); QCOMPARE(eng.uncaughtException().toString(), QLatin1String("Error: cannot access member `objectName' of deleted QObject")); } |