mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout eb9c17efd1e4, wrong patch
This commit is contained in:
parent
0051759203
commit
3e353a996a
@ -8,7 +8,6 @@
|
||||
[testOverscroll]
|
||||
[testAxisLocking]
|
||||
[testAboutPage]
|
||||
[testWebContentContextMenu]
|
||||
|
||||
# Used for Talos, please don't use in mochitest
|
||||
#[testPan]
|
||||
|
@ -1,12 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Big Link</title>
|
||||
<link rel="shortcut icon" href="data:image/gif;base64,R0lGODlhCwALAIAAAAAA3pn/ZiH5BAEAAAEALAAAAAALAAsAAAIUhA+hkcuO4lmNVindo7qyrIXiGBYAOw==" />
|
||||
<meta name="viewport" content="initial-scale=1.0"/>
|
||||
</head>
|
||||
<body style="margin: 0; padding: 0">
|
||||
<div style="text-align: center; margin: 0; padding: 0">
|
||||
<a style="font-size: 60px" href="robocop_blank_01.html">Browser Blank Page</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,39 +0,0 @@
|
||||
#filter substitution
|
||||
package @ANDROID_PACKAGE_NAME@.tests;
|
||||
|
||||
import @ANDROID_PACKAGE_NAME@.*;
|
||||
import android.app.Activity;
|
||||
import android.util.Log;
|
||||
import android.util.DisplayMetrics;
|
||||
|
||||
public class testWebContentContextMenu extends BaseTest {
|
||||
public void testWebContentContextMenu() {
|
||||
setTestType("mochitest");
|
||||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
|
||||
|
||||
// Load the about: page
|
||||
String url = getAbsoluteUrl("/robocop/robocop_big_link.html");
|
||||
loadUrl(url);
|
||||
|
||||
DisplayMetrics dm = new DisplayMetrics();
|
||||
getActivity().getWindowManager().getDefaultDisplay().getMetrics(dm);
|
||||
|
||||
// The link is 60px tall in the web content so let's try to tap in the middle
|
||||
float top = mDriver.getGeckoTop() + 30 * dm.density;
|
||||
float left = mDriver.getGeckoLeft() + mDriver.getGeckoWidth() / 2;
|
||||
mSolo.clickLongOnScreen(left, top);
|
||||
|
||||
mAsserter.ok(mSolo.waitForText("Open"), "looking for context menu action", "found 'Open Link'");
|
||||
|
||||
Actions.EventExpecter tabEventExpecter = mActions.expectGeckoEvent("Tab:Added");
|
||||
mSolo.clickOnText("Open");
|
||||
|
||||
// Wait for the new tab and page to load
|
||||
tabEventExpecter.blockForEvent();
|
||||
mActions.expectGeckoEvent("DOMContentLoaded").blockForEvent();
|
||||
|
||||
// See tab count
|
||||
Element tabCount = mDriver.findElement(getActivity(), "tabs_count");
|
||||
mAsserter.is(tabCount.getText(), "2", "Number of tabs has increased");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user