зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1075644 - Wait for page to fully load in context menu tests; r=mfinkle
This commit is contained in:
Родитель
fc5ffc933b
Коммит
c153386909
|
@ -14,8 +14,8 @@ public class testLinkContextMenu extends ContentContextMenuTest {
|
|||
|
||||
LINK_PAGE_URL=getAbsoluteUrl(StringHelper.ROBOCOP_BIG_LINK_URL);
|
||||
BLANK_PAGE_URL=getAbsoluteUrl(StringHelper.ROBOCOP_BLANK_PAGE_01_URL);
|
||||
inputAndLoadUrl(LINK_PAGE_URL);
|
||||
waitForText(LINK_PAGE_TITLE);
|
||||
loadAndPaint(LINK_PAGE_URL);
|
||||
verifyPageTitle(LINK_PAGE_TITLE);
|
||||
|
||||
verifyContextMenuItems(linkMenuItems); // Verify context menu items are correct
|
||||
openTabFromContextMenu(linkMenuItems[0],2); // Test the "Open in New Tab" option - expecting 2 tabs: the original and the new one
|
||||
|
|
|
@ -12,8 +12,8 @@ public class testMailToContextMenu extends ContentContextMenuTest {
|
|||
blockForGeckoReady();
|
||||
|
||||
MAILTO_PAGE_URL=getAbsoluteUrl(StringHelper.ROBOCOP_BIG_MAILTO_URL);
|
||||
inputAndLoadUrl(MAILTO_PAGE_URL);
|
||||
waitForText(MAILTO_PAGE_TITLE);
|
||||
loadAndPaint(MAILTO_PAGE_URL);
|
||||
verifyPageTitle(MAILTO_PAGE_TITLE);
|
||||
|
||||
verifyContextMenuItems(mailtoMenuItems);
|
||||
verifyCopyOption(mailtoMenuItems[0], "foo.bar@example.com"); // Test the "Copy Email Address" option
|
||||
|
|
Загрузка…
Ссылка в новой задаче