Chromium Code Reviews

Side by Side Diff: third_party/xdg-utils/tests/xdg-open/t.03-open_url

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.
Jump to:
View unified diff | | 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_open_url() {
9 test_start "$FUNCNAME: HTTP open test."
10 URL="http://portland.freedesktop.org/wiki/"
11
12 test_init
13
14 require_notroot
15 ## Require a running X server
16 assert_display
17
18 test_procedure
19
20 assert_exit 0 xdg-open "$URL"
21 assert_nostdout
22 assert_nostderr
23
24 assert_interactive "Did a web browser open to '$URL'" y
25 assert_interactive "Please close any windows opened by this test." C
26
27 test_result
28 }
29
30 run_test test_open_url
OLDNEW
« no previous file with comments | « third_party/xdg-utils/tests/xdg-open/t.02-open_dir ('k') | third_party/xdg-utils/tests/xdg-open/t.04-open_html » ('j') | no next file with comments »

Powered by Google App Engine