Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72da3a46 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am c404ed2b: Fix failing unit test; the test was using a deprecated API making...

am c404ed2b: Fix failing unit test; the test was using a deprecated API making it fail on WVGA devices.

Merge commit 'c404ed2b' into eclair-mr2

* commit 'c404ed2b':
  Fix failing unit test; the test was using a deprecated API making it fail on WVGA devices.
parents 160e97cb c404ed2b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -55,14 +55,14 @@ public class BigCacheTest extends ActivityInstrumentationTestCase<BigCache> {

    @MediumTest
    public void testDrawingCacheBelowMaximumSize() throws Exception {
        final int max = ViewConfiguration.getMaximumDrawingCacheSize();
        final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize();
        assertTrue(mTiny.getWidth() * mTiny.getHeight() * 2 < max);
        assertNotNull(createCacheForView(mTiny));
    }

    @MediumTest
    public void testDrawingCacheAboveMaximumSize() throws Exception {
        final int max = ViewConfiguration.getMaximumDrawingCacheSize();
        final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize();
        assertTrue(mLarge.getWidth() * mLarge.getHeight() * 2 > max);
        assertNull(createCacheForView(mLarge));
    }