summaryrefslogtreecommitdiff
path: root/android/testData/guiTests/LayoutTest/app/src/main/res
AgeCommit message (Collapse)Author
2014-09-12Warn when a rendered custom view has been modified after buildTor Norbye
Change-Id: I43f882610d26b26309c09bb9a79c4ef16a7b610a
2014-09-12Add rendering testsTor Norbye
This CL adds infrastructure for easily testing the visual appearance of layout renderings. You can require that the rendering should be roughly similar to an existing thumbnail of the same scene (and the first time you run the test it will generate this thumbnail such that you can visually inspect it and make sure it looks correct). On subsequent runs the rendering is painted, scaled and compared to the golden file and the test passes if the image is sufficiently similar to the rendering. If the images are too different, the test will generate a "delta" image which shows the before, after and difference. The test currently checks a couple of key renderings: - a basic layout with an action bar - a layout including most of the widgets - a layout with some gradients and included layouts - a layout rendered as included in another (e.g. testing overlay masks) - a drawable resource - a menu resource Change-Id: Ic6f32a00346ab89a0569e49ceaac89d257ab69e9
2014-09-10Layout UI test improvementsTor Norbye
This CL improves the unit tests for layout rendering a bit (there are now simpler ways to assert the resource folder for the current layout, and a simpler way to track subsequent render updates). It also adds a base LayoutTest test project where we can check in more complicated layouts for use by layout tests, and finally this CL adds a layout rendering test which exercises the configuration switcher a bit more, checking that the preferred device list is working correctly. Change-Id: I78bbd70e36d4bf7c8d8c61fdfb42a7fdee96d1f0