mobile/android/base/tests/testMailToContextMenu.java

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

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.)

     1 package org.mozilla.gecko.tests;
     4 public class testMailToContextMenu extends ContentContextMenuTest {
     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"};
    11     public void testMailToContextMenu() {
    12         blockForGeckoReady();
    14         MAILTO_PAGE_URL=getAbsoluteUrl("/robocop/robocop_big_mailto.html");
    15         inputAndLoadUrl(MAILTO_PAGE_URL);
    16         waitForText(MAILTO_PAGE_TITLE);
    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