summaryrefslogtreecommitdiff
path: root/tests/test-run.sh
diff options
context:
space:
mode:
authorWill Thompson <wjt@endlessm.com>2019-11-29 17:47:37 +0000
committerWill Thompson <will@willthompson.co.uk>2019-11-29 20:15:08 +0000
commitbabb2da71a7d35286a25c7e4d2225b6f9809e1b8 (patch)
treec46b3bb7d243a87f215f84e43dfea4d5e1248964 /tests/test-run.sh
parentad86e1ad451910be705c8ea79d954637a81ff0ec (diff)
downloadflatpak-babb2da71a7d35286a25c7e4d2225b6f9809e1b8.tar.gz
tests: test search-provider DefaultDisabled logic
2ebf67286660f5111baac379fd44a401f57b40bb introduced special handling to mark exported GNOME Shell search provider .ini files as disabled by default. This functionality was not previously tested.
Diffstat (limited to 'tests/test-run.sh')
-rw-r--r--tests/test-run.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-run.sh b/tests/test-run.sh
index 18ee1d9f..fecb756e 100644
--- a/tests/test-run.sh
+++ b/tests/test-run.sh
@@ -46,6 +46,8 @@ assert_has_dir $FL_DIR/app/org.test.Hello/$ARCH/stable/active/export
assert_has_file $FL_DIR/exports/share/applications/org.test.Hello.desktop
# Ensure Exec key is rewritten
assert_file_has_content $FL_DIR/exports/share/applications/org.test.Hello.desktop "^Exec=.*/flatpak run --branch=stable --arch=$ARCH --command=hello\.sh org\.test\.Hello$"
+assert_has_file $FL_DIR/exports/share/gnome-shell/search-providers/org.test.Hello.search-provider.ini
+assert_file_has_content $FL_DIR/exports/share/gnome-shell/search-providers/org.test.Hello.search-provider.ini "^DefaultDisabled=true$"
assert_has_file $FL_DIR/exports/share/icons/hicolor/64x64/apps/org.test.Hello.png
assert_not_has_file $FL_DIR/exports/share/icons/hicolor/64x64/apps/dont-export.png
assert_has_file $FL_DIR/exports/share/icons/HighContrast/64x64/apps/org.test.Hello.png