mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
23 lines
873 B
Java
23 lines
873 B
Java
package org.mozilla.gecko.tests;
|
|
|
|
|
|
public class testMailToContextMenu extends ContentContextMenuTest {
|
|
|
|
// Test website strings
|
|
private static String MAILTO_PAGE_URL;
|
|
private static final String MAILTO_PAGE_TITLE = StringHelper.ROBOCOP_BIG_MAILTO_TITLE;
|
|
private static final String mailtoMenuItems [] = {"Copy Email Address", "Share Email Address"};
|
|
|
|
public void testMailToContextMenu() {
|
|
blockForGeckoReady();
|
|
|
|
MAILTO_PAGE_URL=getAbsoluteUrl(StringHelper.ROBOCOP_BIG_MAILTO_URL);
|
|
inputAndLoadUrl(MAILTO_PAGE_URL);
|
|
waitForText(MAILTO_PAGE_TITLE);
|
|
|
|
verifyContextMenuItems(mailtoMenuItems);
|
|
verifyCopyOption(mailtoMenuItems[0], "foo.bar@example.com"); // Test the "Copy Email Address" option
|
|
verifyShareOption(mailtoMenuItems[1], MAILTO_PAGE_TITLE); // Test the "Share Email Address" option
|
|
}
|
|
}
|