Chromium Code Reviews

Side by Side Diff: third_party/xdg-utils/tests/xdg-open/t.05-open_abs_path_html

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 FILE=testfile.html
9 test_open_abs_path_html() {
10 test_start "$FUNCNAME: open absolute path of the form '$PRE/path/file.html'"
11
12 test_init
13
14 require_notroot
15
16 ## Require a running X server
17 assert_display
18
19 echo '<html><body>I am an HTML file!</body></html>' >"$FILE"
20 assert_file "$FILE"
21
22 test_procedure
23
24 assert_exit 0 xdg-open "$PRE$XDG_TEST_TMPDIR/$FILE"
25 assert_nostdout
26 assert_nostderr
27
28 assert_interactive "Did an HTML file open containing the text 'I am an HTML file !'?" y
29 assert_interactive "Please close any windows opened by this test." C
30
31 test_result
32 }
33
34 repeat_test test_open_abs_path_html 1 PRE '' 'file://'
OLDNEW
« no previous file with comments | « third_party/xdg-utils/tests/xdg-open/t.04-open_html ('k') | third_party/xdg-utils/tests/xdg-screensaver/t.00-apply_generic » ('j') | no next file with comments »

Powered by Google App Engine