summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptcontextinfo
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-14 12:33:33 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-14 14:44:25 (GMT)
commiteaeaad09383871d40002d9e1ded1d56390839e4b (patch)
tree57954ae472a87b539b86439fccd6f680206c768d /tests/auto/qscriptcontextinfo
parente21e9b5a400115291c883b9b85055a8355f3a30b (diff)
downloadQt-eaeaad09383871d40002d9e1ded1d56390839e4b.zip
Qt-eaeaad09383871d40002d9e1ded1d56390839e4b.tar.gz
Qt-eaeaad09383871d40002d9e1ded1d56390839e4b.tar.bz2
Polish the QScriptContext::backtrace()
- in QScriptContextInfo, get the filename of specials context - in QScriptContextInfo, get the right information for the global context (from the skipped fake frame) - addapt the test to the current backtrace layout.
Diffstat (limited to 'tests/auto/qscriptcontextinfo')
-rw-r--r--tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp b/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
index 7ca6728..91cd2cb 100644
--- a/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
+++ b/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
@@ -149,10 +149,10 @@ void tst_QScriptContextInfo::nativeFunction()
QScriptContextInfo info = lst.at(1);
QVERIFY(!info.isNull());
QCOMPARE(info.functionType(), QScriptContextInfo::NativeFunction);
- QEXPECT_FAIL("", "Script ID isn't valid for evaluate() call", Abort);
QVERIFY(info.scriptId() != -1);
QCOMPARE(info.fileName(), fileName);
QCOMPARE(info.lineNumber(), lineNumber);
+ QEXPECT_FAIL("", "columnNumber doesn't work", Continue);
QCOMPARE(info.columnNumber(), 1);
QCOMPARE(info.functionName(), QString());
QCOMPARE(info.functionEndLineNumber(), -1);
@@ -200,10 +200,10 @@ void tst_QScriptContextInfo::scriptFunction()
// evaluate()
QScriptContextInfo info = lst.at(2);
QCOMPARE(info.functionType(), QScriptContextInfo::NativeFunction);
- QEXPECT_FAIL("", "Script ID is invalid for evaluate() call", Abort);
QVERIFY(info.scriptId() != -1);
QCOMPARE(info.fileName(), fileName);
QCOMPARE(info.lineNumber(), lineNumber + 3);
+ QEXPECT_FAIL("", "columnNumber doesn't work", Continue);
QCOMPARE(info.columnNumber(), 1);
QCOMPARE(info.functionName(), QString());
QCOMPARE(info.functionEndLineNumber(), -1);