commit | e8c01664c7602ee79c39b7e721ef30be18efe153 | [log] [tgz] |
---|---|---|
author | Brian Muramatsu <btmura@google.com> | Tue Nov 08 12:17:11 2011 -0800 |
committer | Brian Muramatsu <btmura@google.com> | Thu Nov 17 12:06:40 2011 -0800 |
tree | 0abf932e847148e10f18bf414bb69fbe4862a2b0 | |
parent | bec06c72b86fa24799653ca8022e306fa2dcaf82 [diff] |
New Holo Theme Tests Bug 5404694 These tests check that the Holo theme assets have not been altered. The code is based upon the techniques in android.theme of inflating a view in a fixed dp with layout, taking a bitmap, and comparing it with a reference bitmap. It does not incorporate the activity snapshot or split activity snapshot tests of android.theme due to test instability issues. This version tries to simplify a couple things: - A utility activity is included in CtsThemeTestCases that let you view individual tests and lets you generate all the reference images. - Saves the bitmaps to the external storage directory, so you don't need root! - Doesn't generate landscape permutations of the bitmaps, because the widgets shouldn't differ too much by being in landscape... This initial change includes assets for hdpi, large-mdpi, and xhdpi. Change-Id: I9d9f304494ee95bf8d772f1c0e0e0b73a8fc8317