mobile/android/base/tests/testMailToContextMenu.java

branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
equal deleted inserted replaced
-1:000000000000 0:41a3c33169ac
1 package org.mozilla.gecko.tests;
2
3
4 public class testMailToContextMenu extends ContentContextMenuTest {
5
6 // Test website strings
7 private static String MAILTO_PAGE_URL;
8 private static final String MAILTO_PAGE_TITLE = "Big Mailto";
9 private static final String mailtoMenuItems [] = {"Copy Email Address", "Share Email Address"};
10
11 public void testMailToContextMenu() {
12 blockForGeckoReady();
13
14 MAILTO_PAGE_URL=getAbsoluteUrl("/robocop/robocop_big_mailto.html");
15 inputAndLoadUrl(MAILTO_PAGE_URL);
16 waitForText(MAILTO_PAGE_TITLE);
17
18 verifyContextMenuItems(mailtoMenuItems);
19 verifyCopyOption(mailtoMenuItems[0], "foo.bar@example.com"); // Test the "Copy Email Address" option
20 verifyShareOption(mailtoMenuItems[1], MAILTO_PAGE_TITLE); // Test the "Share Email Address" option
21 }
22 }

mercurial