@@ -34,6 +34,14 @@ Rectangle {
3434
3535 Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark"
3636
37+ MouseArea {
38+ id: clickThroughTester
39+ anchors.fill: parent
40+ // SignalSpy does not seem to want to connect to the pressed signal. let's count them ourselves.
41+ property int pressCount: 0
42+ onPressed: pressCount++;
43+ }
44+
3745 Loader {
3846 id: launcherLoader
3947 anchors.fill: parent
@@ -836,16 +844,20 @@ Rectangle {
836844 dragLauncherIntoView();
837845 verify(launcher.state == "visible");
838846
847+ clickThroughTester.pressCount = 0;
839848 mouseClick(root, root.width / 2, units.gu(1));
840849 waitUntilLauncherDisappears();
841850 verify(launcher.state == "");
851+ compare(clickThroughTester.pressCount, 1);
842852
843853 // and repeat, as a test for regression in lpbug#1531339
844854 dragLauncherIntoView();
845855 verify(launcher.state == "visible");
856+ clickThroughTester.pressCount = 0;
846857 mouseClick(root, root.width / 2, units.gu(1));
847858 waitUntilLauncherDisappears();
848859 verify(launcher.state == "");
860+ compare(clickThroughTester.pressCount, 1);
849861 }
850862
851863 function test_quicklist_positioning_data() {