Debian Codegraph @

tests/xdg-email/t.21-email_uri_multi_address

raw
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 test_email_uri_multi_address() {
9 test_start "$FUNCNAME: verify uri email compose"
10
11 ADDR="[email protected]"
12 test_init
13
14 require_notroot
15 ## Require a running X server
16 assert_display
17
18 test_procedure
19
20 assert_exit 0 xdg-email "mailto:$ADDR?to=t2-$ADDR&subject=Test%20Subject&cc=cc-$ADDR&cc=cc2-$ADDR&body=Test%20Body"
21
22 assert_nostdout
23 assert_nostderr
24
25 assert_interactive "Did an email open to both '$ADDR' and 't2-$ADDR'?" y
26 assert_interactive "Are both 'cc-$ADDR' and 'cc2-$ADDR' CC'd?" y
27 assert_interactive "Is the subject 'Test Subject'?" y
28 assert_interactive "Is the body 'Test Body'?" y
29
30 assert_interactive "Please close any email windows opened by the test." C
31
32
33 test_result
34 }
35
36 run_test test_email_uri_multi_address