Commit afeedb5c authored by Nicholas Guriev's avatar Nicholas Guriev Committed by Rex Dieter
Browse files

Fix tests for 1f8e58d5

parent fb9ee8c6
......@@ -3,6 +3,8 @@ COMMAND_TESTED="xdg-mime query default"
. ./test-lib.sh
test_that_it reads \$XDG_CONFIG_HOME/mimeapps.list
mock mosaic # Default app should exist
mock_desktop_file mosaic
mock_default_app x-scheme-handler/http mosaic
handler=$(run generic xdg-mime query default x-scheme-handler/http)
assert_equal mosaic.desktop "$handler"
......@@ -12,12 +12,16 @@ assert_run gconftool-2 --get /desktop/gnome/applications/browser/exec
for de in gnome3 cinnamon lxde mate generic; do
test_that_it determines default browser from \
\$XDG_CONFIG_HOME/mimeapps.list in $de
mock mosaic # Default app should exist
mock_desktop_file mosaic
mock_default_app x-scheme-handler/http mosaic
assert_equal mosaic.desktop \
"$(run $de xdg-settings get default-web-browser)"
test_that_it determines default URL handler from \
\$XDG_CONFIG_HOME/mimeapps.list in $de
mock footorrent # Default app should exist
mock_desktop_file footorrent
mock_default_app x-scheme-handler/magnet footorrent
assert_equal \
footorrent.desktop \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment