public class RequestRectangleVisibleTest extends ActivityInstrumentationTestCase<RequestRectangleVisible>
RequestRectangleVisible
is set up to exercise the cases of moving a
rectangle that is either off screen or not entirely on the screen onto the screen.Constructor and Description |
---|
RequestRectangleVisibleTest() |
Modifier and Type | Method and Description |
---|---|
static void |
assertOnBottomEdgeOfScreen(View origin,
View view)
Assert that view overlaps the bottom edge of the screen
|
static void |
assertOnTopEdgeOfScreen(View origin,
View view)
Assert that view overlaps the bottom edge of the screen
|
protected void |
setUp() |
void |
testPreconditions() |
void |
testScrollToOffScreenRectangleFromBottom() |
void |
testScrollToOffScreenRectangleFromTop() |
void |
testScrollToPartiallyOffScreenRectFromBottom() |
void |
testScrollToPartiallyOffScreenRectFromTop() |
getActivity, tearDown, testActivityTestCaseSetUpProperly
scrubClass, setActivity
getInstrumentation, injectInsrumentation, injectInstrumentation, launchActivity, launchActivityWithIntent, runTest, runTestOnUiThread, sendKeys, sendKeys, sendRepeatedKeys
protected void setUp() throws Exception
setUp
in class ActivityInstrumentationTestCase<RequestRectangleVisible>
Exception
public void testPreconditions()
public void testScrollToOffScreenRectangleFromTop()
public void testScrollToPartiallyOffScreenRectFromTop()
public void testScrollToOffScreenRectangleFromBottom()
public void testScrollToPartiallyOffScreenRectFromBottom()
public static void assertOnBottomEdgeOfScreen(View origin, View view)
origin
- The root view of the screen.view
- The view