aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qjsengine
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-14 13:08:13 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-06-14 13:15:05 +0200
commit0c9d347089ec3c0813b5a09eb7911ed1b1d752e2 (patch)
treec54f03a5760fcf0706863d38732f8a69f62c8bf7 /tests/auto/qml/qjsengine
parenteeee3aabd133cdae7f08b356187d6867f6dc8b4b (diff)
Implement error.fileName and error.lineNumber
Useful extensions to the error object. This also helped track down a few places in the parser where we wouldn't give correct error information. Change-Id: Id03653e096216e097c13a7a6e698ca142d92da13 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/qml/qjsengine')
-rw-r--r--tests/auto/qml/qjsengine/tst_qjsengine.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/auto/qml/qjsengine/tst_qjsengine.cpp b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
index e0e08d9027..9f4756b080 100644
--- a/tests/auto/qml/qjsengine/tst_qjsengine.cpp
+++ b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
@@ -923,7 +923,6 @@ void tst_QJSEngine::evaluate()
ret = eng.evaluate(code);
QCOMPARE(ret.isError(), expectHadError);
if (ret.isError()) {
- QEXPECT_FAIL("", "we have no more lineNumber property ", Continue);
QVERIFY(ret.property("lineNumber").strictlyEquals(eng.toScriptValue(expectErrorLineNumber)));
}
}
@@ -1605,8 +1604,6 @@ void tst_QJSEngine::errorConstructors()
QJSValue ret = eng.evaluate(code);
QVERIFY(ret.isError());
QVERIFY(ret.toString().startsWith(name));
- //QTBUG-6138: JSC doesn't assign lineNumber when errors are not thrown
- QEXPECT_FAIL("", "we have no more lineNumber property ", Continue);
QCOMPARE(ret.property("lineNumber").toInt(), i+2);
}
}