diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-09-01 15:52:45 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-09-01 16:00:42 (GMT) |
commit | fc4c4071d6e5704e84a5cca4ae22548bedb7b19d (patch) | |
tree | f5896b0e51a56fbc26f298bc64f94fa1320e90d0 /tests | |
parent | 8ed29668c48dd2a4560ad7a4b0908f3809cbc0df (diff) | |
download | Qt-fc4c4071d6e5704e84a5cca4ae22548bedb7b19d.zip Qt-fc4c4071d6e5704e84a5cca4ae22548bedb7b19d.tar.gz Qt-fc4c4071d6e5704e84a5cca4ae22548bedb7b19d.tar.bz2 |
QScriptEngineAgent autotest bug fix
Default value for script id in tests should be <-1, because -1 mean that
there is no script and all numbers >0 are valid. Two test cases were
marked as expected to fail.
Reviewed-by: TrustMe
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp b/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp index 1f9476f..8fe6839 100644 --- a/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp +++ b/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp @@ -155,7 +155,7 @@ struct ScriptEngineEvent lineNumber(lineNumber) { } - ScriptEngineEvent(Type type, qint64 scriptId = -1) + ScriptEngineEvent(Type type, qint64 scriptId = -777) : type(type), scriptId(scriptId) { } @@ -2098,6 +2098,7 @@ void tst_QScriptEngineAgent::syntaxError() i = 2; QCOMPARE(spy->at(i).type, ScriptEngineEvent::ContextPush); + QEXPECT_FAIL("","The test is broken, contextPush event do not provide scriptId", Continue); QVERIFY(spy->at(i).scriptId == -1); i = 3; QCOMPARE(spy->at(i).type, ScriptEngineEvent::FunctionEntry); @@ -2107,6 +2108,7 @@ void tst_QScriptEngineAgent::syntaxError() QVERIFY(spy->at(i).scriptId == -1); i = 5; QCOMPARE(spy->at(i).type, ScriptEngineEvent::ContextPop); + QEXPECT_FAIL("","The test is broken, contextPop event do not provide scriptId", Continue); QVERIFY(spy->at(i).scriptId == -1); i = 6; QCOMPARE(spy->at(i).type, ScriptEngineEvent::ExceptionThrow); |