Revert "java: instrumentedTest - try draging mouse to specified location on device screen"

This reverts commit 0d6758dd7d.
This commit is contained in:
rafal1137 2020-07-11 14:58:32 +02:00
parent 0d6758dd7d
commit 12e560e50e

View file

@ -1,8 +1,6 @@
package org.etlegacy.app;
import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
@ -10,7 +8,6 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import com.robotium.solo.Solo;
import static android.os.SystemClock.sleep;
import static org.junit.Assert.assertEquals;
/**
@ -23,6 +20,7 @@ public class TestETL {
private Solo solo;
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
@ -33,13 +31,7 @@ public class TestETL {
@Test
public void clickOnNickEntry() throws Exception {
// Perform click on Nickname Entry
Context context = ETLActivity.this;
if (!((Activity) context).isFinishing()) {
sleep(10000);
solo.drag(0, Resources.getSystem().displayMetrics.widthPixels, 0, Resources.getSystem().displayMetrics.heighPixels / 2, 100);
// solo.clickOnScreen(Resources.getSystem().displayMetrics.widthPixels, Resources.getSystem().displayMetrics.heighPixels, 1);
}
// TODO: Implement
}
}