Squashing Commits

Squashing 2

Use lower case adb.

Use === not ==

create ChromeAndroid device which subclasses Android

move remote execute functionality into device common

send commands to chrome as javascript atoms via remote debugger

make chrome device proxy to chromedriver instead of using atoms

add describeForChrome in driverBlock and add webview tests for chrome

fix outstanding issue in doRequest so there's no empty body, misc cleanup

use streams instead of data events for chromedriver subproc

add comment about why we're doing dumb things with chromedriver

add docs for mobile safari and mobile chrome

update grunt docs

remove unused remote debugger files

clean up callback structure

make sure to encode doRequest response to JSON if possible (fix #847)

Fix undefined

Squashing 1

allow testsuite to take port from env so ios/android tests can run simultaneously

make sure webview guinea pig runs on same port as appium

make sure to discard series info here so it doesn't get passed on

fix find element from element tests

update test to use correct appium port

Squashing

make sure fruitstrap gets into build/ for npm releases (cc @snevesbarros)

/session/:sessionId/element/:id/enabled should return a boolean value.

Signed-off-by: Matt Isaacs <misaacs@gilt.com>

Unneccessary

Removing MonkeyPinch
This commit is contained in:
AmitKumar5
2013-07-01 20:29:55 -04:00
committed by bootstraponline
parent e9cc66197a
commit ce69300ba6
14 changed files with 587 additions and 65 deletions

View File

@@ -296,6 +296,28 @@ public class SimpleTest {
Dimension text2 = driver.findElement(By.xpath("//textfield[2]")).getSize();
assertEquals(text1.getWidth(), text2.getWidth());
assertEquals(text1.getHeight(), text2.getHeight());
}@Test
@SuppressWarnings("serial")
public void testRotation() throws Exception {
WebElement button = driver.findElement(By.name("Test Gesture"));
button.click();
((JavascriptExecutor) driver).executeScript("mobile: rotate", new HashMap<String, Double>() {{ put("x", (double)114); put("y", (double)198); put("radius", (double)3); put("touchCount", (double)2); put("duration", 5.0); put("rotation", 220.0); }});
}
@Test
@SuppressWarnings("serial")
public void testPinchClose() throws Exception {
WebElement button = driver.findElement(By.name("Test Gesture"));
button.click();
((JavascriptExecutor) driver).executeScript("mobile: pinchClose", new HashMap<String, Double>() {{ put("startX", (double)150); put("startY", (double)230); put("endX", (double)200); put("endY", (double)260); put("duration", 2.0); }});
}
@Test
@SuppressWarnings("serial")
public void testPinchOpen() throws Exception {
WebElement button = driver.findElement(By.name("Test Gesture"));
button.click();
((JavascriptExecutor) driver).executeScript("mobile: pinchOpen", new HashMap<String, Double>() {{ put("startX", (double)114); put("startY", (double)198); put("endX", (double)257); put("endY", (double)256); put("duration", 2.0); }});
}
public class SwipeableWebDriver extends RemoteWebDriver implements HasTouchScreen {