summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptengine/tst_qscriptengine.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>2009-08-03 18:03:35 (GMT)
committerTor Arne Vestbø <tor.arne.vestbo@nokia.com>2009-08-03 18:18:04 (GMT)
commitf3a7266cb4793f933ea8c7d2c73c736e022b754a (patch)
tree86bad1ad184030d724af095c2479c4026008a698 /tests/auto/qscriptengine/tst_qscriptengine.cpp
parent9b5ab52a37aeb8cb2f139d76421594fa7418e729 (diff)
downloadQt-f3a7266cb4793f933ea8c7d2c73c736e022b754a.zip
Qt-f3a7266cb4793f933ea8c7d2c73c736e022b754a.tar.gz
Qt-f3a7266cb4793f933ea8c7d2c73c736e022b754a.tar.bz2
Implement QScriptEngine::setProcessEventsInterval()
We're using a wrapper around TimeoutChecker, where we re-implement didTimeout() to call processEvents().
Diffstat (limited to 'tests/auto/qscriptengine/tst_qscriptengine.cpp')
-rw-r--r--tests/auto/qscriptengine/tst_qscriptengine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qscriptengine/tst_qscriptengine.cpp b/tests/auto/qscriptengine/tst_qscriptengine.cpp
index 7b019c1..04d7d21 100644
--- a/tests/auto/qscriptengine/tst_qscriptengine.cpp
+++ b/tests/auto/qscriptengine/tst_qscriptengine.cpp
@@ -2095,7 +2095,7 @@ void tst_QScriptEngine::processEventsWhileRunning()
eng.pushContext();
QString script = QString::fromLatin1(
- "var end = Number(new Date()) + 1000;"
+ "var end = Number(new Date()) + 2000;"
"var x = 0;"
"while (Number(new Date()) < end) {"
" ++x;"
@@ -2112,7 +2112,6 @@ void tst_QScriptEngine::processEventsWhileRunning()
eng.setProcessEventsInterval(100);
eng.evaluate(script);
QVERIFY(!eng.hasUncaughtException());
- QEXPECT_FAIL("", "", Continue);
QVERIFY(receiver.received);
if (x == 0)