Lines Matching refs:to

10  * Unless required by applicable law or agreed to in writing, software
126 * Test the cases where: The user's reply-to is one of their custom from's
127 * and they are replying all to a message where their custom from was a
157 String[] to = activity.getToAddresses();
160 String toAsString = TextUtils.join(",", to);
161 assertEquals(3, to.length);
170 * Test the cases where: The user sent a message to one of
171 * their custom froms and just replied to that message
194 String[] to = activity.getToAddresses();
197 String toAsString = TextUtils.join(",", to);
198 assertEquals(1, to.length);
207 * Test the cases where: The user sent a message to one of
208 * their custom froms and just replied to that message
235 String[] to = activity.getToAddresses();
238 String toAsString = TextUtils.join(",", to);
239 assertEquals(1, to.length);
257 String[] to = activity.getToAddresses();
260 assertTrue(to.length == 1);
262 Rfc822Tokenizer.tokenize(to[0])[0].getAddress());
280 String[] to = activity.getToAddresses();
283 assertTrue(to.length == 1);
285 Rfc822Tokenizer.tokenize(to[0])[0].getAddress());
293 * Reply to a message you sent yourself to some recipients in the to field.
305 String[] to = activity.getToAddresses();
308 assertTrue(to.length == 1);
309 String toAsString = TextUtils.join(",", to);
318 * Reply-all to a message you sent.
330 String[] to = activity.getToAddresses();
333 assertEquals(to.length, 2);
334 String toAsString = TextUtils.join(",", to);
344 * Reply-all to a message you sent with some to and some CC recips.
357 String[] to = activity.getToAddresses();
360 assertEquals(to.length, 2);
361 String toAsString = TextUtils.join(",", to);
383 String[] to = activity.getToAddresses();
386 assertTrue(to.length == 1);
388 Rfc822Tokenizer.tokenize(to[0])[0].getAddress());
407 String[] to = activity.getToAddresses();
410 assertTrue(to.length == 1);
411 assertEquals(refReplyToAccount, Rfc822Tokenizer.tokenize(to[0])[0].getAddress());
453 String[] to = activity.getToAddresses();
456 assertTrue(to.length == 1);
458 Rfc822Tokenizer.tokenize(to[0])[0].getAddress());
484 String[] to = activity.getToAddresses();
487 assertEquals(to.length, 0);
503 String[] to = activity.getToAddresses();
506 assertEquals(to.length, 0);
514 * Test the cases where: The user is replying to a message they sent
527 String[] to = activity.getToAddresses();
530 assertEquals(to.length, 1);
531 assertTrue(to[0].contains(refMessage.getTo()));
540 * The user is replying to a message sent from one of their custom froms
567 String[] to = activity.getToAddresses();
570 assertEquals(to.length, 1);
571 assertTrue(to[0].contains(refMessage.getTo()));
580 * The user is replying to a message sent from one of their custom froms
610 String[] to = activity.getToAddresses();
613 String toAsString = TextUtils.join(",", to);
616 assertEquals(to.length, 1);
626 * The user is replying to a message sent from one of their custom froms
656 String[] to = activity.getToAddresses();
659 String toAsString = TextUtils.join(",", to);
663 assertEquals(to.length, 3);
671 // Test replying to a message in the first account in the list, and verify that
678 // Get the message to be replied to
695 String[] to = activity.getToAddresses();
699 assertEquals(1, to.length);
701 Rfc822Tokenizer.tokenize(to[0])[0].getAddress());
709 // Test replying to a message in the third account in the list, and verify that
716 // Get the message to be replied to
735 String[] to = activity.getToAddresses();
739 assertEquals(1, to.length);
741 Rfc822Tokenizer.tokenize(to[0])[0].getAddress());
754 final String to = "foo@bar.com";
760 encodeMailtoParam(to), encodeMailtoParam(cc), encodeMailtoParam(subject),
774 assertEquals(to, Rfc822Tokenizer.tokenize(resultTo[0])[0].getAddress());
781 // the result is HTML-wrapped in a way that's not trivial to test, so disabled for now
806 String[] to = activity.getToAddresses();
810 assertEquals( 1, to.length);
812 Rfc822Tokenizer.tokenize(to[0])[0].getAddress());
841 String[] to = activity.getToAddresses();
845 assertEquals( 1, to.length);
847 Rfc822Tokenizer.tokenize(to[0])[0].getAddress());
855 // Test a mailto VIEW Intent, with no account specified. The fromAccount should default to the
860 // Set the last sent account to account0
877 String[] to = activity.getToAddresses();
881 assertEquals( 1, to.length);
883 Rfc822Tokenizer.tokenize(to[0])[0].getAddress());
910 // First test: switch reply to reply all to fwd, 1 to recipient, 1 cc recipient.
923 String[] to = activity.getToAddresses();
926 assertEquals(1, to.length);
927 assertTrue(to[0].contains(refMessage.getFrom()));
944 // Switch reply to reply all to fwd, 2 to recipients, 1 cc recipient.
957 String[] to = activity.getToAddresses();
960 assertEquals(to.length, 1);
961 assertTrue(to[0].contains(refMessage.getFrom()));
982 // Switch reply to reply all to fwd, 2 to recipients, 2 cc recipients.
995 String[] to = activity.getToAddresses();
998 assertEquals(to.length, 1);
999 assertTrue(to[0].contains(refMessage.getFrom()));
1029 // Switch reply to reply all to fwd, 2 attachments.
1052 // Test existence of % signs and basic functionality (to, cc, bcc, subject)
1075 // Test existence of + and space in addition to %