From f21797769e5dc53ed3f5380a362dd975721aac71 Mon Sep 17 00:00:00 2001 From: Jedrzej Nowacki Date: Tue, 18 Aug 2009 12:58:51 +0200 Subject: 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 --- .../qscriptengineagent/tst_qscriptengineagent.cpp | 43 ++-------------------- 1 file 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 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;jcount(),supposed.count()+25);j++) { - QString deb = "j: "+QString::number(j); - if (jcount()) - deb+=" recived type:"+QString::number(spy->at(j).type); - else - deb+=" recived type: ---"; - if (jcount(), 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); -- cgit v0.12