Example usage for android.test ViewAsserts assertOnScreen

List of usage examples for android.test ViewAsserts assertOnScreen

Introduction

In this page you can find the example usage for android.test ViewAsserts assertOnScreen.

Prototype

static public void assertOnScreen(View origin, View view) 

Source Link

Document

Assert that view is on the screen.

Usage

From source file:ca.ualberta.cmput301w14t08.geochan.test.ThreadViewFragmentTest.java

/**
 * Test that the listview is displayed correctly on the screen
 *//*  w w  w . j  a va  2 s  .  c o  m*/
public void testListViewVisibility() {
    threadViewList = (ListView) activity.findViewById(ca.ualberta.cmput301w14t08.geochan.R.id.thread_view_list);
    View rootView = activity.getWindow().getDecorView();
    ViewAsserts.assertOnScreen(rootView, threadViewList);
}