Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/xdg-utils/tests/xdg-screensaver/t.01-screensave_status

Issue 151098: Patch from mdm@google.com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Name: svn:executable
+ *
OLDNEW
(Empty)
1 #!/bin/bash
2
3 ## Include utility functions.
4 . "$XDG_TEST_DIR/include/testassertions.sh"
5 . "$XDG_TEST_DIR/include/testcontrol.sh"
6
7 ## Test function
8 test_screensave_status() {
9 test_start "$FUNCNAME: verify screensaver status returns 'enabled' or 'disabled' "
10 test_purpose "The screensaver may have status 'enabled' or 'disabled'. (Not both as bug 7592.)"
11
12 test_init
13
14 require_notroot
15 ## Require a running X server
16 assert_display
17
18 test_procedure
19
20 # TODO: check for exactly one of disabled or enabled on output
21 assert_exit 0 xdg-screensaver status
22 assert_stdout
23 assert_nostderr
24
25 ## See bug 7592
26 screenstat=`cat out.stdout`
27 assert_exit 0 test "$screenstat" = 'enabled' -o "$screenstat" = 'disabled'
28
29 test_result
30 }
31
32 run_test test_screensave_status
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698