on xenial help sign in
Merge lp:~unity-team/unity8/no-search-on-preview
commit17a516493a4a79145d00b3ab4ffa7b0413a6cbd5 authorMichał Sawicz <michal.sawicz@canonical.com> dateWed 12 Mar 2014, 12:07 (13 years ago) parent12689c03a4be8e
1 file changed+16
tests/qmltests/tst_Shell.qml+16
tests/qmltests/tst_Shell.qml+16
@@ -110,6 +110,9 @@ Item {
110110 swipeUntilScopeViewIsReached(dashHome);
111111
112112 hideIndicators();
113+
114+ var dashContent = findChild(shell, "dashContent");
115+ dashContent.previewOpen = false;
113116 }
114117
115118 function killApps(apps) {
@@ -549,5 +552,18 @@ Item {
549552 tryCompare(greeter, "shown", true)
550553 tryCompare(searchIndicator, "opacity", 0)
551554 }
555+
556+ function test_searchIndicatorHideOnPreviewShown() {
557+ var searchIndicator = findChild(shell, "container");
558+ var dashContent = findChild(shell, "dashContent");
559+
560+ verify(dashContent != null);
561+
562+ tryCompare(searchIndicator, "opacity", 1);
563+
564+ dashContent.previewOpen = true;
565+
566+ tryCompare(searchIndicator, "opacity", 0);
567+ }
552568 }
553569}