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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/xdg-utils/tests/xdg-open/t.05-open_abs_path_html
===================================================================
--- third_party/xdg-utils/tests/xdg-open/t.05-open_abs_path_html (revision 0)
+++ third_party/xdg-utils/tests/xdg-open/t.05-open_abs_path_html (revision 0)
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+## Include utility functions.
+. "$XDG_TEST_DIR/include/testassertions.sh"
+. "$XDG_TEST_DIR/include/testcontrol.sh"
+
+## Test function
+FILE=testfile.html
+test_open_abs_path_html() {
+test_start "$FUNCNAME: open absolute path of the form '$PRE/path/file.html'"
+
+test_init
+
+require_notroot
+
+## Require a running X server
+assert_display
+
+echo '<html><body>I am an HTML file!</body></html>' >"$FILE"
+assert_file "$FILE"
+
+test_procedure
+
+assert_exit 0 xdg-open "$PRE$XDG_TEST_TMPDIR/$FILE"
+assert_nostdout
+assert_nostderr
+
+assert_interactive "Did an HTML file open containing the text 'I am an HTML file!'?" y
+assert_interactive "Please close any windows opened by this test." C
+
+test_result
+}
+
+repeat_test test_open_abs_path_html 1 PRE '' 'file://'
Property changes on: third_party/xdg-utils/tests/xdg-open/t.05-open_abs_path_html
___________________________________________________________________
Name: svn:executable
+ *
« 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
This is Rietveld 408576698