assertTrue(mScrollToBlob.hasFocus());
ViewAsserts.assertOffScreenBelow(mScrollView, mTextBlob);
// click
sendKeys(KeyEvent.KEYCODE_DPAD_CENTER);
getInstrumentation().waitForIdleSync(); // wait for scrolling to finish
// should be on screen, positioned at the bottom (with enough room for
// fading edge)
ViewAsserts.assertOnScreen(mScrollView, mTextBlob);
ViewAsserts.assertHasScreenCoordinates(
mScrollView, mTextBlob,
0,
mScrollView.getHeight()
- mTextBlob.getHeight()
- mScrollView.getVerticalFadingEdgeLength());