@@ -34,6 +34,11 @@ Rectangle {
35 Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark"
35 Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark"
38+ id: clickThroughTester
38 id: launcherLoader
43 id: launcherLoader
39 anchors.fill: parent
44 anchors.fill: parent
@@ -202,6 +207,12 @@ Rectangle {
202 target: LauncherModel
207 target: LauncherModel
212+ target: clickThroughTester
213+ signalName: "clicked"
206 id: fakeDismissTimer
217 id: fakeDismissTimer
207 property bool running: false
218 property bool running: false
@@ -835,10 +846,12 @@ Rectangle {
835 function test_launcher_dismiss() {
846 function test_launcher_dismiss() {
836 dragLauncherIntoView();
847 dragLauncherIntoView();
837 verify(launcher.state == "visible");
848 verify(launcher.state == "visible");
849+ clickThroughSpy.clear();
839 mouseClick(root, root.width / 2, units.gu(1));
851 mouseClick(root, root.width / 2, units.gu(1));
840 waitUntilLauncherDisappears();
852 waitUntilLauncherDisappears();
841 verify(launcher.state == "");
853 verify(launcher.state == "");
854+ verify(clickThroughSpy.count, 1);
843 // and repeat, as a test for regression in lpbug#1531339
856 // and repeat, as a test for regression in lpbug#1531339
844 dragLauncherIntoView();
857 dragLauncherIntoView();
@@ -846,6 +859,7 @@ Rectangle {
846 mouseClick(root, root.width / 2, units.gu(1));
859 mouseClick(root, root.width / 2, units.gu(1));
847 waitUntilLauncherDisappears();
860 waitUntilLauncherDisappears();
848 verify(launcher.state == "");
861 verify(launcher.state == "");
862+ verify(clickThroughSpy.count, 2);
851 function test_quicklist_positioning_data() {
865 function test_quicklist_positioning_data() {