diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-18 10:58:51 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-18 11:17:28 (GMT) |
commit | f21797769e5dc53ed3f5380a362dd975721aac71 (patch) | |
tree | 147dc79f45fc489f9a2fadc6ec89eccf7ee7ea6e /tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp | |
parent | 6ea3cdeafda53bb9dadc369b663cf03b0d9912b7 (diff) | |
download | Qt-f21797769e5dc53ed3f5380a362dd975721aac71.zip Qt-f21797769e5dc53ed3f5380a362dd975721aac71.tar.gz Qt-f21797769e5dc53ed3f5380a362dd975721aac71.tar.bz2 |
Few autotest QEXCPECT_FAIL markup.
Some test from qscriptengineagent were marked as excpected_fail.
It should be easier to find regression.
Reviewed-by: Kent Hansen
Diffstat (limited to 'tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp')
-rw-r--r-- | tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp b/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp index 8806e77..0637297 100644 --- a/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp +++ b/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp @@ -417,6 +417,7 @@ void tst_QScriptEngineAgent::scriptLoadAndUnload() code = "bar = foo(); foo = null"; eng.evaluate(code); + QEXPECT_FAIL("","ScriptUnload event occur in different places than in old backend", Abort); QCOMPARE(spy->count(), 3); QCOMPARE(spy->at(1).type, ScriptEngineEvent::ScriptLoad); @@ -449,6 +450,7 @@ void tst_QScriptEngineAgent::scriptLoadAndUnload_eval() spy->clear(); eng.evaluate("eval('function foo() { print(123); }')"); + QEXPECT_FAIL("","Eval is threaded in different way that in old backend", Abort); QCOMPARE(spy->count(), 3); QCOMPARE(spy->at(0).type, ScriptEngineEvent::ScriptLoad); @@ -1798,45 +1800,6 @@ void tst_QScriptEngineAgent::eventOrder_functions() eng.evaluate("foo('ciao')"); - -//////////////////////////////////////////////////////////////////////////////////////////// -/* QList<ScriptEngineEvent::Type> supposed; - supposed << ScriptEngineEvent::ScriptLoad; - supposed << ScriptEngineEvent::FunctionEntry; - supposed << ScriptEngineEvent::PositionChange; - supposed << ScriptEngineEvent::ContextPush; - supposed << ScriptEngineEvent::FunctionEntry; - supposed << ScriptEngineEvent::PositionChange; - supposed << ScriptEngineEvent::ContextPush; - supposed << ScriptEngineEvent::FunctionEntry; - supposed << ScriptEngineEvent::PositionChange; - supposed << ScriptEngineEvent::ContextPush; - supposed << ScriptEngineEvent::FunctionEntry; - supposed << ScriptEngineEvent::FunctionExit; - supposed << ScriptEngineEvent::ContextPop; - supposed << ScriptEngineEvent::ExceptionThrow; - supposed << ScriptEngineEvent::FunctionExit; - supposed << ScriptEngineEvent::ContextPop; - supposed << ScriptEngineEvent::FunctionExit; - supposed << ScriptEngineEvent::ContextPop; - supposed << ScriptEngineEvent::FunctionExit; - supposed << ScriptEngineEvent::ScriptUnload; - - - - for (int j=25;j<std::max(spy->count(),supposed.count()+25);j++) { - QString deb = "j: "+QString::number(j); - if (j<spy->count()) - deb+=" recived type:"+QString::number(spy->at(j).type); - else - deb+=" recived type: ---"; - if (j<supposed.count()+25) - deb+=" supposed type:"+QString::number(supposed[j-25]); - else - deb+=" supposed type: ---"; - qDebug()<<deb; - } -*//////////////////////////////////////////////////////////////////////////////////////////// //QCOMPARE(spy->count(), 45); // load @@ -1873,6 +1836,7 @@ void tst_QScriptEngineAgent::eventOrder_functions() QCOMPARE(spy->at(37).type, ScriptEngineEvent::ContextPop); // exception QCOMPARE(spy->at(38).type, ScriptEngineEvent::ExceptionThrow); + QEXPECT_FAIL("","New backend propably gives bad script id for exceptions", Abort); QCOMPARE(spy->at(38).scriptId, spy->at(21).scriptId); QVERIFY(!spy->at(38).hasExceptionHandler); // bar() exit @@ -1949,6 +1913,7 @@ void tst_QScriptEngineAgent::eventOrder_signalsHandling() emit testSignal(123); + QEXPECT_FAIL("","Signals events problem", Abort); QCOMPARE(spy->count(), 14); // new context QCOMPARE(spy->at(4).type, ScriptEngineEvent::ContextPush); |