@@ -0,0 +1,1478 @@
+package com.xtremelabs.robolectric.shadows;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport com.xtremelabs.robolectric.DogfoodRobolectricTestRunner;%0Aimport com.xtremelabs.robolectric.Robolectric;%0A%0Aimport android.util.DisplayMetrics;%0Aimport android.view.Display;%0A%0A@RunWith(DogfoodRobolectricTestRunner.class)%0Apublic class DisplayTest %7B%0A%09%0A    @Before public void setUp() throws Exception %7B%0A        Robolectric.bindDefaultShadowClasses();%0A    %7D%0A    %0A    @Test%0A    public void shouldProvideDisplayMetrics() throws Exception %7B%0A    %09%0A    %09Display display = Robolectric.newInstanceOf( Display.class );%0A    %09ShadowDisplay shadow = Robolectric.shadowOf( display );%0A    %09%0A    %09shadow.setDensity( 1.5f );%0A    %09shadow.setDensityDpi( DisplayMetrics.DENSITY_MEDIUM );%0A    %09shadow.setScaledDensity( 1.6f );%0A    %09shadow.setWidth( 1024 );%0A    %09shadow.setHeight( 600 );%0A    %09shadow.setXdpi( 183.0f );%0A    %09shadow.setYdpi( 184.0f );%0A    %09%0A    %09DisplayMetrics metrics = new DisplayMetrics();%0A    %09%0A    %09display.getMetrics( metrics );%0A    %09%0A    %09assertEquals( 1.5f, metrics.density, 0.05 );%0A    %09assertEquals( DisplayMetrics.DENSITY_MEDIUM, metrics.densityDpi );%0A    %09assertEquals( 1.6f, metrics.scaledDensity, 0.05 );%0A    %09assertEquals( 1024, metrics.widthPixels );%0A    %09assertEquals( 600, metrics.heightPixels );%0A    %09assertEquals( 183.0f, metrics.xdpi, 0.05 );%0A    %09assertEquals( 184.0f, metrics.ydpi, 0.05 );%0A    %7D%0A%0A%7D%0A

add in missing test case from previous checkin