Commit db333bbc authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix KisInputManagerTest

We now process events only when the cursor is over the canvas :(
parent 47386738
......@@ -127,6 +127,7 @@ KisStrokeShortcut* createStrokeShortcut(KisAbstractInputAction *action,
void KisInputManagerTest::testKeyEvents()
{
KisShortcutMatcher m;
m.enterEvent();
TestingAction *a = new TestingAction();
......@@ -266,11 +267,14 @@ void KisInputManagerTest::testKeyEvents()
QCOMPARE(a->m_beginNonNull, false);
QCOMPARE(a->m_endNonNull, false);
a->reset();
m.leaveEvent();
}
void KisInputManagerTest::testReleaseUnnecessaryModifiers()
{
KisShortcutMatcher m;
m.enterEvent();
TestingAction *a = new TestingAction();
......@@ -311,11 +315,14 @@ void KisInputManagerTest::testReleaseUnnecessaryModifiers()
QCOMPARE(a->m_beginIndex, -1);
QCOMPARE(a->m_ended, true);
a->reset();
m.leaveEvent();
}
void KisInputManagerTest::testMouseMoves()
{
KisShortcutMatcher m;
m.enterEvent();
TestingAction *a = new TestingAction();
......@@ -366,6 +373,8 @@ void KisInputManagerTest::testMouseMoves()
QCOMPARE(a->m_beginIndex, -1);
QCOMPARE(a->m_ended, true);
a->reset();
m.leaveEvent();
}
#include "../input/wintab/kis_incremental_average.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment