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

Side by Side Diff: third_party/xdg-utils/tests/xdg-screensaver/t.02-screensave_suspend_basic

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_suspend_basic() {
9 test_start "$FUNCNAME: verify screensaver suspend doesn't error"
10
11 test_init
12
13 require_notroot
14 ## Require a running X server
15 assert_display
16
17 assert_exit 0 test ! -z "$WINDOWID"
18
19 echo "disabled" >out.after
20
21 sleep 1
22
23 test_procedure
24
25 assert_exit 0 xdg-screensaver suspend "$WINDOWID"
26 assert_nostdout
27 assert_nostderr
28
29 sleep 1
30
31 assert_exit 0 xdg-screensaver status
32 assert_stdout out.after
33
34 # cleanup
35 xdg-screensaver resume "$WINDOWID" >/dev/null 2>&1
36
37 test_result
38 }
39
40 run_test test_screensave_suspend_basic
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698