mirror of
https://github.com/etlegacy/etlegacy-android.git
synced 2025-04-12 20:20:47 +00:00
Revert "java: instrumentedTest - try draging mouse to specified location on device screen"
This reverts commit 0d6758dd7d
.
This commit is contained in:
parent
0d6758dd7d
commit
12e560e50e
1 changed files with 2 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue