Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
michael@0 | 1 | package org.mozilla.gecko.tests; |
michael@0 | 2 | |
michael@0 | 3 | |
michael@0 | 4 | public class testMailToContextMenu extends ContentContextMenuTest { |
michael@0 | 5 | |
michael@0 | 6 | // Test website strings |
michael@0 | 7 | private static String MAILTO_PAGE_URL; |
michael@0 | 8 | private static final String MAILTO_PAGE_TITLE = "Big Mailto"; |
michael@0 | 9 | private static final String mailtoMenuItems [] = {"Copy Email Address", "Share Email Address"}; |
michael@0 | 10 | |
michael@0 | 11 | public void testMailToContextMenu() { |
michael@0 | 12 | blockForGeckoReady(); |
michael@0 | 13 | |
michael@0 | 14 | MAILTO_PAGE_URL=getAbsoluteUrl("/robocop/robocop_big_mailto.html"); |
michael@0 | 15 | inputAndLoadUrl(MAILTO_PAGE_URL); |
michael@0 | 16 | waitForText(MAILTO_PAGE_TITLE); |
michael@0 | 17 | |
michael@0 | 18 | verifyContextMenuItems(mailtoMenuItems); |
michael@0 | 19 | verifyCopyOption(mailtoMenuItems[0], "foo.bar@example.com"); // Test the "Copy Email Address" option |
michael@0 | 20 | verifyShareOption(mailtoMenuItems[1], MAILTO_PAGE_TITLE); // Test the "Share Email Address" option |
michael@0 | 21 | } |
michael@0 | 22 | } |