File: t-xdg-mime-query-default.sh

package info (click to toggle)
xdg-utils 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,508 kB
  • sloc: sh: 7,900; xml: 3,213; perl: 274; makefile: 201; awk: 41
file content (10 lines) | stat: -rwxr-xr-x 336 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
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"