summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptcontext
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-14 14:57:59 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-14 14:57:59 (GMT)
commit7c1e089fd3d2560322e643c6c1c3b1e73bf04c98 (patch)
tree7486241a3bd88097f427856b4d2c8ab12576e620 /tests/auto/qscriptcontext
parentd7b24639a40706f75071640eefa11adf5902e0ed (diff)
downloadQt-7c1e089fd3d2560322e643c6c1c3b1e73bf04c98.zip
Qt-7c1e089fd3d2560322e643c6c1c3b1e73bf04c98.tar.gz
Qt-7c1e089fd3d2560322e643c6c1c3b1e73bf04c98.tar.bz2
Detect evaluation context in the backtrace
Diffstat (limited to 'tests/auto/qscriptcontext')
-rw-r--r--tests/auto/qscriptcontext/tst_qscriptcontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qscriptcontext/tst_qscriptcontext.cpp b/tests/auto/qscriptcontext/tst_qscriptcontext.cpp
index c72594c..2f96ea0 100644
--- a/tests/auto/qscriptcontext/tst_qscriptcontext.cpp
+++ b/tests/auto/qscriptcontext/tst_qscriptcontext.cpp
@@ -586,7 +586,7 @@ void tst_QScriptContext::backtrace_data()
).arg("\\n \\n bt('hey'); \\n");
expected << "<native>('hey') at -1"
- << "<native>() at 3" //### <native> should be <eval>
+ << "<eval>() at 3"
<< "foo(arg1 = 'hello', arg2 = 456) at testfile:-1" //### line number should be 2
<< "<global>() at testfile:4";
@@ -609,7 +609,7 @@ void tst_QScriptContext::backtrace_data()
QStringList expected;
expected << "<native>('m') at -1"
<< "bar(a = 'b') at eval.js:2"
- << "<native>() at eval.js:4" //### should be <eval>
+ << "<eval>() at eval.js:4"
<< QString("<native>('%1', 'eval.js') at -1").arg(eval_code.replace("\\n", "\n"))
<< "foo() at testfile:2"
<< "<global>() at testfile:4";