File: t-xdg-screensaver.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 (11 lines) | stat: -rwxr-xr-x 329 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
COMMAND_TESTED=xdg-screensaver
. ./test-lib.sh

test_that_it calls xset -dpms, xset +dpms and xset dpms force when \
             performing reset
mock xset 'if [ "$1" = -q ]; then echo "  DPMS is Enabled"; fi'
run generic xdg-screensaver reset
assert_run xset -dpms
assert_run xset +dpms
assert_run xset dpms force on