drop the repeat, not needed as "running" is a binding
adjust the test to prove that
commit1ded465033e981a72a6f05fa4d90afc20bcd1eda
authorLukáš Tinkl <lukas.tinkl@canonical.com>
dateThu 29 Sep 2016, 16:27 (10 years ago)
parent5f95b40
qml/Shell.qml−1
@@ -812,7 +812,6 @@ StyledItem {
812812 id: cursorHidingTimer
813813 interval: 3000
814814 running: panel.focusedSurfaceIsFullscreen && cursor.opacity > 0
815− repeat: true
816815 onTriggered: cursor.opacity = 0;
817816 }
818817
tests/qmltests/tst_Shell.qml+4
@@ -2737,6 +2737,10 @@ Rectangle {
27372737 // simulate moving the mouse, check the cursor is visible again
27382738 cursor.mouseMoved();
27392739 tryCompare(cursor, "opacity", 1);
2740+
2741+ // let the timer kick in again and verify the cursor got hidden
2742+ wait(3000);
2743+ tryCompare(cursor, "opacity", 0);
27402744 }
27412745 }
27422746}