History log of /frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
565b6b415a18ee0b99af8cb693b980e57136282b 08-Jan-2015 Deepanshu Gupta <deepanshu@google.com> Merge "Update platform.dir search in tests." into lmp-mr1-dev
0359b4b19962a4e3c44925907dedb4a9bfd916d0 07-Jan-2015 Deepanshu Gupta <deepanshu@google.com> Update platform.dir search in tests.

The tests search for a built sdk using some heuristics. The default path
of the built sdk has changed now, and this updates the search
accordingly.

Change-Id: I36d465d8c5f6cfd971bbdf95878fb144de233c6c
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java
d657b149274aeba0561e68f7172907b300d1b452 07-Jan-2015 Deepanshu Gupta <deepanshu@google.com> Fix tests on jenkins, take 2.

Change-Id: I67386c34a7abd7c3afdf9f0768f36f4786399be0
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java
48603a39d4dd721d231c99e10908f4f00c4ec6b9 07-Jan-2015 Deepanshu Gupta <deepanshu@google.com> Fix tests on jenkins

When the tests are run on the build server, they are run from the jar,
as opposed to the extracted build, which is default when run from an
IDE. Thus, when class.getResourceAsStream() is called with ".." in the
path, it is not resolved properly. This change explicitly resolves the
relative path, so that the test is run properly on the server.

Change-Id: Ib5fabd617dca4052220e5173a8bf4fb4234254ff
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java
58df125bbc76fd71a9c056c6b6108fc149733b0e 07-Dec-2014 Deepanshu Gupta <deepanshu@google.com> Add image comparison to LayoutLib tests.

The LayoutLib rendering tests now compares the rendered image with a
golden file from a previous execution. This will help catch any
unexpected changes in the final rendering.

Change-Id: I80251a778e89df7d7ec13863a8f299967f3d747d
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java
0774bc4605fdd47178cc38258d1b4c40ae113b2f 25-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Remove ANDROID_BUILD_TOP from intelliJ path variables.

The variable is not actually needed and it makes working with different
API levels a lot easier since everything now depends on $PROJECT_DIR$.

This change also makes the tests more robust by improving the way it
tries to find the SDK.

Change-Id: I3502ad4a0ba85fd88b497e47964fddb2a89e520c
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java
70d1574db986610232d59ee1406d7532f71812f5 04-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Get filename from File faster

Use the direct call from a File object to get the filename instead of
going through Path which depends on Java 7 making the LayoutLib tests
incompatible with Java 6.

Change-Id: I815895eedbc10245ee09bdb53b11e5548b076aad
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java
86eb8b4e29b1ad889fc814bae723d4d6e491f53f 31-Jul-2014 Deepanshu Gupta <deepanshu@google.com> Add testing framework to LayoutLib.

This change adds an end to end test which loads the framework resources
and a test app and ensures that no exceptions or warnings are thrown.

The change also adds project configuration for intelliJ.

Change-Id: I7b67c0f1a2af2dac95df7f3231cab537b9826d7d
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java