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

Unified Diff: third_party/xdg-utils/tests/xdg-open/t.01-open_basic

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.01-open_basic
===================================================================
--- third_party/xdg-utils/tests/xdg-open/t.01-open_basic (revision 0)
+++ third_party/xdg-utils/tests/xdg-open/t.01-open_basic (revision 0)
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+## Include utility functions.
+. "$XDG_TEST_DIR/include/testassertions.sh"
+. "$XDG_TEST_DIR/include/testcontrol.sh"
+
+## Test function
+test_open_basic() {
+test_start "$FUNCNAME: verify basic file open test."
+
+test_init
+
+require_notroot
+
+## Require a running X server
+assert_display
+
+get_unique_name TARG 'open.txt'
+echo "I am open." > $TARG
+assert_file "$TARG"
+
+
+test_procedure
+
+assert_exit 0 xdg-open $TARG
+assert_nostdout
+assert_nostderr
+
+assert_interactive "Did a text editor open a file containing the string 'I am open.'?" y
+assert_interactive "Please close any windows opened by this test." C
+
+test_result
+}
+
+run_test test_open_basic
Property changes on: third_party/xdg-utils/tests/xdg-open/t.01-open_basic
___________________________________________________________________
Name: svn:executable
+ *
« no previous file with comments | « third_party/xdg-utils/tests/xdg-open/t.00-apply_generic ('k') | third_party/xdg-utils/tests/xdg-open/t.02-open_dir » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698