summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-07-15 13:34:29 (GMT)
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-07-17 18:11:25 (GMT)
commit7f04bc3a46d4dd5203b9776c102b487b283a6282 (patch)
tree4e417b78ed14704d94a1c56ae38411951c27850e /tests
parent869450c0f6f5cf654211f79d97d00e0d0058b49c (diff)
downloadQt-7f04bc3a46d4dd5203b9776c102b487b283a6282.zip
Qt-7f04bc3a46d4dd5203b9776c102b487b283a6282.tar.gz
Qt-7f04bc3a46d4dd5203b9776c102b487b283a6282.tar.bz2
Fix the return value of a constructor that throws an error.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
index 2551e6c..2eff71a 100644
--- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
@@ -2593,10 +2593,8 @@ void tst_QScriptValue::construct()
QScriptValue fun = eng.evaluate("(function() { throw new Error('foo'); })");
QCOMPARE(fun.isFunction(), true);
QScriptValue ret = fun.construct();
- QEXPECT_FAIL("", "Returns null if a constructor throws an error", Continue);
QCOMPARE(ret.isError(), true);
QCOMPARE(eng.hasUncaughtException(), true);
- QEXPECT_FAIL("", "Returns null if a constructor throws an error", Continue);
QVERIFY(ret.strictlyEquals(eng.uncaughtException()));
}