summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-14 08:20:45 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-14 08:22:53 (GMT)
commit67c15753452009953d012385a17ec1e45f003721 (patch)
treec1759dee492f29daca911e6c992d10dae4108e26 /tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
parentde9a5e011de1507c5650f49b3e2c67cb75884b5f (diff)
downloadQt-67c15753452009953d012385a17ec1e45f003721.zip
Qt-67c15753452009953d012385a17ec1e45f003721.tar.gz
Qt-67c15753452009953d012385a17ec1e45f003721.tar.bz2
Skip the fake context created by Interpreter::exucute for the backtrace
Diffstat (limited to 'tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp')
-rw-r--r--tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp b/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
index 903d2b2..7ca6728 100644
--- a/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
+++ b/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
@@ -126,7 +126,6 @@ void tst_QScriptContextInfo::nativeFunction()
int lineNumber = 123;
QScriptValue ret = eng.evaluate("getContextInfoList()", fileName, lineNumber);
QList<QScriptContextInfo> lst = qscriptvalue_cast<QList<QScriptContextInfo> >(ret);
- QEXPECT_FAIL("", "getContextInfoList() returns one item too many", Continue);
QCOMPARE(lst.size(), 2);
{
@@ -173,7 +172,6 @@ void tst_QScriptContextInfo::scriptFunction()
QScriptValue ret = eng.evaluate("function bar(a, b, c) {\n return getContextInfoList();\n}\nbar()",
fileName, lineNumber);
QList<QScriptContextInfo> lst = qscriptvalue_cast<QList<QScriptContextInfo> >(ret);
- QEXPECT_FAIL("", "getContextInfoList() returns one item too many", Continue);
QCOMPARE(lst.size(), 3);
// getContextInfoList()
@@ -236,7 +234,6 @@ void tst_QScriptContextInfo::qtFunction()
}
QScriptValue ret = eng.evaluate(code);
QList<QScriptContextInfo> lst = qscriptvalue_cast<QList<QScriptContextInfo> >(ret);
- QEXPECT_FAIL("", "getContextInfoList() returns one item too many", Continue);
QCOMPARE(lst.size(), 3);
// getContextInfoList()
@@ -277,7 +274,6 @@ void tst_QScriptContextInfo::qtPropertyFunction()
QScriptValue ret = eng.evaluate("qobj.testProperty");
QList<QScriptContextInfo> lst = qscriptvalue_cast<QList<QScriptContextInfo> >(ret);
- QEXPECT_FAIL("", "getContextInfoList() returns one item too many", Continue);
QCOMPARE(lst.size(), 3);
// getContextInfoList()
@@ -544,7 +540,6 @@ void tst_QScriptContextInfo::streaming()
QScriptValue ret = eng.evaluate("function bar(a, b, c) {\n return getContextInfoList();\n}\nbar()",
fileName, lineNumber);
QList<QScriptContextInfo> lst = qscriptvalue_cast<QList<QScriptContextInfo> >(ret);
- QEXPECT_FAIL("", "getContextInfoList() returns one item too many", Continue);
QCOMPARE(lst.size(), 3);
for (int i = 0; i < lst.size(); ++i) {
const QScriptContextInfo &info = lst.at(i);
@@ -578,7 +573,6 @@ void tst_QScriptContextInfo::assignmentAndComparison()
QScriptValue ret = eng.evaluate("function bar(a, b, c) {\n return getContextInfoList();\n}\nbar()",
fileName, lineNumber);
QList<QScriptContextInfo> lst = qscriptvalue_cast<QList<QScriptContextInfo> >(ret);
- QEXPECT_FAIL("", "getContextInfoList() returns one item too many", Continue);
QCOMPARE(lst.size(), 3);
QScriptContextInfo ci = lst.at(0);
QScriptContextInfo same = ci;