Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/decoration_input_test.cpp
Show First 20 Lines • Show All 830 Lines • ▼ Show 20 Line(s) | 801 | { | |||
---|---|---|---|---|---|
831 | 831 | | |||
832 | // let's check that a hover motion is sent if the pointer is on deco, when touch release | 832 | // let's check that a hover motion is sent if the pointer is on deco, when touch release | ||
833 | Cursor::setPos(tapPoint); | 833 | Cursor::setPos(tapPoint); | ||
834 | QCOMPARE(hoverMoveSpy.count(), 2); | 834 | QCOMPARE(hoverMoveSpy.count(), 2); | ||
835 | kwinApp()->platform()->touchDown(0, tapPoint, timestamp++); | 835 | kwinApp()->platform()->touchDown(0, tapPoint, timestamp++); | ||
836 | QCOMPARE(hoverMoveSpy.count(), 3); | 836 | QCOMPARE(hoverMoveSpy.count(), 3); | ||
837 | QCOMPARE(hoverLeaveSpy.count(), 1); | 837 | QCOMPARE(hoverLeaveSpy.count(), 1); | ||
838 | kwinApp()->platform()->touchUp(0, timestamp++); | 838 | kwinApp()->platform()->touchUp(0, timestamp++); | ||
839 | QCOMPARE(hoverMoveSpy.count(), 4); | 839 | QCOMPARE(hoverMoveSpy.count(), 3); | ||
840 | QCOMPARE(hoverLeaveSpy.count(), 1); | 840 | QCOMPARE(hoverLeaveSpy.count(), 2); | ||
841 | } | 841 | } | ||
842 | 842 | | |||
843 | void DecorationInputTest::testTooltipDoesntEatKeyEvents_data() | 843 | void DecorationInputTest::testTooltipDoesntEatKeyEvents_data() | ||
844 | { | 844 | { | ||
845 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 845 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
846 | 846 | | |||
847 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | 847 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | ||
848 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | 848 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |