diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-22 14:42:35 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-22 14:42:35 (GMT) |
commit | d6c6ac356d2e5dc6af1b368c89124143b161fc4e (patch) | |
tree | df3e076b4e08113bea007bc6e0b962f419668d99 /tests/auto/qscriptvalue | |
parent | e65c3ea459bac468024bbe08c5b841b36c82c547 (diff) | |
download | Qt-d6c6ac356d2e5dc6af1b368c89124143b161fc4e.zip Qt-d6c6ac356d2e5dc6af1b368c89124143b161fc4e.tar.gz Qt-d6c6ac356d2e5dc6af1b368c89124143b161fc4e.tar.bz2 |
More tests fixed (QScriptValue::toString)
Handle Exception in a toString function
Reviewed-by: Kent Hansen
Diffstat (limited to 'tests/auto/qscriptvalue')
-rw-r--r-- | tests/auto/qscriptvalue/tst_qscriptvalue.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp index ddd846a..2ed6d6f 100644 --- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp +++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp @@ -392,11 +392,8 @@ void tst_QScriptValue::toString() " o.toString = function() { throw new Error('toString'); };" " return o;" "})()"); - QEXPECT_FAIL("", "Should produce an error message (or should it?)", Continue); QCOMPARE(objectObject.toString(), QLatin1String("Error: toString")); - QEXPECT_FAIL("", "hasUncaughtException() should return true", Continue); QVERIFY(eng.hasUncaughtException()); - QEXPECT_FAIL("", "Should produce an error message (or should it?)", Continue); QCOMPARE(eng.uncaughtException().toString(), QLatin1String("Error: toString")); } { @@ -411,7 +408,6 @@ void tst_QScriptValue::toString() QVERIFY(objectObject.isObject()); QEXPECT_FAIL("", "Should return an error string", Continue); QCOMPARE(objectObject.toString(), QString::fromLatin1("TypeError: Function.prototype.toString called on incompatible object")); - QEXPECT_FAIL("", "hasUncaughtException() should return true", Continue); QVERIFY(eng.hasUncaughtException()); eng.clearExceptions(); } |