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

Unified Diff: third_party/xdg-utils/tests/xdg-email/t.12-email_cc_args

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-email/t.12-email_cc_args
===================================================================
--- third_party/xdg-utils/tests/xdg-email/t.12-email_cc_args (revision 0)
+++ third_party/xdg-utils/tests/xdg-email/t.12-email_cc_args (revision 0)
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+## Include utility functions.
+. "$XDG_TEST_DIR/include/testassertions.sh"
+. "$XDG_TEST_DIR/include/testcontrol.sh"
+
+## Test function
+test_cc_args() {
+test_start "$FUNCNAME: verify cc/bcc/subject/body/attach arguments work"
+
+
+addr="$XDG_TEST_SHORTID@portland.freedesktop.org"
+ADDR_TO="to_$addr"
+ADDR_CC="cc_$addr"
+ADDR_BCC="bcc_$addr"
+SUBJ="I am a subject about $XDG_TEST_SHORTID"
+BODY="I am the body. $XDG_TEST_SHORTID is short for $XDG_TEST_ID"
+
+test_init
+
+require_notroot
+## Require a running X server
+assert_display
+
+test_procedure
+
+assert_exit 0 xdg-email --cc "$ADDR_CC" --bcc "$ADDR_BCC" \
+ --subject "$SUBJ" --body "$BODY" "$ADDR_TO"
+
+assert_nostdout
+assert_nostderr
+
+assert_interactive "Did a new email open to '$ADDR_TO'?" y
+assert_interactive "Is the cc: line '$ADDR_CC'?" y
+assert_interactive "Is the bcc: line '$ADDR_BCC'?" y
+assert_interactive "Is the subject: line '$SUBJ'?" y
+assert_interactive "Is the body '$BODY'?" y
+assert_interactive "Please close any email windows opened by the test." C
+
+test_result
+}
+
+run_test test_cc_args
Property changes on: third_party/xdg-utils/tests/xdg-email/t.12-email_cc_args
___________________________________________________________________
Name: svn:executable
+ *
« no previous file with comments | « third_party/xdg-utils/tests/xdg-email/t.10-email_basic ('k') | third_party/xdg-utils/tests/xdg-email/t.13-email_multi_address » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698