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

Unified Diff: third_party/xdg-utils/tests/xdg-email/t.22-email_mix_args_uri

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.22-email_mix_args_uri
===================================================================
--- third_party/xdg-utils/tests/xdg-email/t.22-email_mix_args_uri (revision 0)
+++ third_party/xdg-utils/tests/xdg-email/t.22-email_mix_args_uri (revision 0)
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+## Include utility functions.
+. "$XDG_TEST_DIR/include/testassertions.sh"
+. "$XDG_TEST_DIR/include/testcontrol.sh"
+
+## Test function
+test_email_mix_args_uri() {
+test_start "$FUNCNAME: verify an email is generated correctly when called with both a uri and not."
+
+ADDR="$XDG_TEST_SHORTID@portland.freedesktop.org"
+
+test_init
+
+require_notroot
+## Require a running X server
+assert_display
+
+test_procedure
+
+assert_exit 0 xdg-email --cc "ccarg-$ADDR" --subject "Subject arg" "mailto:$ADDR?cc=ccuri-$ADDR&body=Body%20URI" "t2-$ADDR"
+
+assert_nostdout
+assert_nostderr
+
+assert_interactive "Did an email open to both '$ADDR' and 't2-$ADDR'?" y
+assert_interactive "Are both 'ccarg-$ADDR' and 'ccuri-$ADDR' in the CC'd?" y
+assert_interactive "Is the subject 'Subject arg'?" y
+assert_interactive "Is the body 'Body URI'?" y
+
+assert_interactive "Please close any email windows opened by the test." C
+
+test_result
+}
+
+run_test test_email_mix_args_uri
Property changes on: third_party/xdg-utils/tests/xdg-email/t.22-email_mix_args_uri
___________________________________________________________________
Name: svn:executable
+ *

Powered by Google App Engine
This is Rietveld 408576698