FileDocCategorySizeDatePackage
RunQueueTest.javaAPI DocAndroid 5.1 API2066Thu Mar 12 22:22:12 GMT 2015android.view

RunQueueTest

public class RunQueueTest extends android.test.ActivityInstrumentationTestCase

Fields Summary
Constructors Summary
public RunQueueTest()

        super("com.android.frameworks.coretests", 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());