FileDocCategorySizeDatePackage
RunQueueTest.javaAPI DocAndroid 1.5 API2077Wed May 06 22:42:02 BST 2009com.android.frameworktest.view

RunQueueTest

public class RunQueueTest extends android.test.ActivityInstrumentationTestCase

Fields Summary
Constructors Summary
public RunQueueTest()

        super("com.android.frameworktest", RunQueue.class);
    
Methods Summary
public voidsetUp()

        super.setUp();
    
public voidtestListenerFired()

        final RunQueue activity = getActivity();
        getInstrumentation().waitForIdleSync();
        assertTrue("The global layout listener did not fire", activity.globalLayout);
    
public voidtestRunnableCancelled()

        final RunQueue activity = getActivity();
        getInstrumentation().waitForIdleSync();
        assertTrue("The runnable was not cancelled", activity.runnableCancelled);
    
public voidtestRunnableRan()

        final RunQueue activity = getActivity();
        getInstrumentation().waitForIdleSync();
        assertTrue("The runnable did not run", activity.runnableRan);
    
public voidtestTreeObserverKilled()

        final RunQueue activity = getActivity();
        getInstrumentation().waitForIdleSync();
        assertFalse("The view tree observer is still alive", activity.viewTreeObserver.isAlive());