[autotests] Adjust TestScreenEdges::testCallback to changes
We need to add more delay to get it trigger/pushback again.icc-effect-5.14.5
parent
acf668d798
commit
7365069ba0
|
@ -477,7 +477,7 @@ void TestScreenEdges::testCallback()
|
||||||
QCOMPARE(Cursor::pos(), QPoint(1, 101));
|
QCOMPARE(Cursor::pos(), QPoint(1, 101));
|
||||||
|
|
||||||
// now let's try to trigger again
|
// now let's try to trigger again
|
||||||
QTest::qWait(100);
|
QTest::qWait(351);
|
||||||
setPos(QPoint(0, 100));
|
setPos(QPoint(0, 100));
|
||||||
event.time = QDateTime::currentMSecsSinceEpoch();
|
event.time = QDateTime::currentMSecsSinceEpoch();
|
||||||
QVERIFY(s->isEntered(&event));
|
QVERIFY(s->isEntered(&event));
|
||||||
|
@ -507,6 +507,7 @@ void TestScreenEdges::testCallback()
|
||||||
s->setConfig(config);
|
s->setConfig(config);
|
||||||
s->reconfigure();
|
s->reconfigure();
|
||||||
// it should trigger directly
|
// it should trigger directly
|
||||||
|
QTest::qWait(350);
|
||||||
event.time = QDateTime::currentMSecsSinceEpoch();
|
event.time = QDateTime::currentMSecsSinceEpoch();
|
||||||
QVERIFY(s->isEntered(&event));
|
QVERIFY(s->isEntered(&event));
|
||||||
QCOMPARE(spy.count(), 3);
|
QCOMPARE(spy.count(), 3);
|
||||||
|
|
Loading…
Reference in New Issue