summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-07-22 16:42:35 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-07-22 16:42:35 +0200
commitd6c6ac356d2e5dc6af1b368c89124143b161fc4e (patch)
treedf3e076b4e08113bea007bc6e0b962f419668d99 /tests/auto/qscriptvalue/tst_qscriptvalue.cpp
parente65c3ea459bac468024bbe08c5b841b36c82c547 (diff)
More tests fixed (QScriptValue::toString)
Handle Exception in a toString function Reviewed-by: Kent Hansen
Diffstat (limited to 'tests/auto/qscriptvalue/tst_qscriptvalue.cpp')
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
index ddd846a05c..2ed6d6fd00 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();
}