Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 256ee074 authored by Nikita Dubrovsky's avatar Nikita Dubrovsky
Browse files

Add tests for editor state and cursor drag to presubmits

Bug: 152043074
Test: ran automated tests
  atest FrameworksCoreTests:EditorTouchStateTest
  atest FrameworksCoreTests:EditorCursorDragTest
Change-Id: I201645bc753c19e5adbc638860a8e4a204848825
parent 1bea432f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import static org.junit.Assert.assertTrue;
import android.app.Activity;
import android.app.Instrumentation;
import android.graphics.Rect;
import android.platform.test.annotations.Presubmit;
import android.text.Layout;
import android.util.ArraySet;
import android.util.Log;
@@ -44,7 +45,7 @@ import android.view.MotionEvent;
import android.view.View;

import androidx.test.InstrumentationRegistry;
import androidx.test.filters.SmallTest;
import androidx.test.filters.MediumTest;
import androidx.test.filters.Suppress;
import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;
@@ -63,7 +64,8 @@ import java.util.Set;
import java.util.concurrent.atomic.AtomicLong;

@RunWith(AndroidJUnit4.class)
@SmallTest
@MediumTest
@Presubmit
public class EditorCursorDragTest {
    private static final String LOG_TAG = EditorCursorDragTest.class.getSimpleName();

+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import static junit.framework.Assert.assertTrue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;

import android.platform.test.annotations.Presubmit;
import android.view.InputDevice;
import android.view.MotionEvent;
import android.view.ViewConfiguration;
@@ -36,6 +37,7 @@ import org.junit.runners.JUnit4;

@RunWith(JUnit4.class)
@SmallTest
@Presubmit
public class EditorTouchStateTest {

    private EditorTouchState mTouchState;