Merge "Update testActivity"

This commit is contained in:
Jerome Gaillard
2016-11-11 12:56:45 +00:00
committed by Android (Google) Code Review
3 changed files with 2 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@@ -3,7 +3,7 @@
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Material.Light.DarkActionBar">
<item name="myattr">@integer/ten</item>
<!-- Customize your theme here. -->
<item name="android:animateFirstView">false</item>
</style>
</resources>

View File

@@ -309,15 +309,7 @@ public class Main {
/** Test activity.xml */
@Test
public void testActivity() throws ClassNotFoundException {
try {
renderAndVerify("activity.xml", "activity.png");
} catch (AssertionError e) {
// This is a KI in CalendarWidget and DatePicker rendering.
// Tracker bug: http://b.android.com/214370
if (!e.getLocalizedMessage().startsWith("Images differ (by 6.5%)")) {
throw e;
}
}
renderAndVerify("activity.xml", "activity.png");
}
@Test