summaryrefslogtreecommitdiff
path: root/tests/auto/qscriptengineagent
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-18 12:58:51 +0200
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-18 13:17:28 +0200
commitf21797769e5dc53ed3f5380a362dd975721aac71 (patch)
tree147dc79f45fc489f9a2fadc6ec89eccf7ee7ea6e /tests/auto/qscriptengineagent
parent6ea3cdeafda53bb9dadc369b663cf03b0d9912b7 (diff)
downloadqt4-tools-f21797769e5dc53ed3f5380a362dd975721aac71.tar.gz
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')
-rw-r--r--tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp43
1 files changed, 4 insertions, 39 deletions
diff --git a/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp b/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp
index 8806e77007..0637297a88 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);