11 Commits

Author SHA1 Message Date
Steve Block
2622f30284 Make DumpRenderTree2 appear in the 'Dev Tools' application
Bug: 2999543
Change-Id: I1791c7b1a82f23ff742a68f365d7092c36804efd
2010-09-15 23:08:37 +01:00
Maksymilian Osowski
a7e2ca9a1c Gets rid of flickering when executing tests.
Achieves it by setting Executor background to white.

Change-Id: Id07c743114c6cce9e9446439136a5efd72857dc4
2010-09-14 14:23:07 +01:00
Maksymilian Osowski
1b034781f4 Shows the details when all the tests finish and fixes the orientation issue.
The tests no longer restart when orientation changes.

Bug: 2904456
Change-Id: Ie1ee463dbd63fb1a2ad2e9c28bf5989002f22215
2010-09-02 14:49:04 +01:00
Maksymilian Osowski
5fb9ff420d Added a basic version of python script and supporting code in DumpRenderTree.
Change-Id: Ic60ef9b89f74a3a36a4c31765f99c8de08dce911
2010-08-11 12:20:30 +01:00
Maksymilian Osowski
c8fb818b94 Changed some parts of the code to prepare it for script support that will come in later commit.
Bug: 2903591

Change-Id: If8fcfad1557c8140c476212d8be9f99987cdaa18
2010-08-10 14:47:53 +01:00
Maksymilian Osowski
ef7f9d2458 Added wakelock to keep the screen from sleeping when executing tests.
Change-Id: Ib6a0ff2a7c906f500868269d6a617553733d33b1
2010-08-03 16:01:50 +01:00
Maksymilian Osowski
5f0ccd76a8 Moved practically all of the prerefactoring functionality to the new design.
Renamed LayoutTestsRunner activity to TestsListActivity. It will be responsible for restrating the Executer after the crash. Now it only starts
it.
Renamed LayoutTestsRunnerThread to TestsListPreloaderThread. It only preloads tests now.
LayoutTest class is no longer needed, its functionality is in LayoutTestsExecuter.
Most of the functionality from LayoutTestsRunnerThread is now in ManagerService.

Change-Id: I08924d949ceb9f8816888bc8e795256d0542fa99
2010-07-27 16:15:35 +01:00
Maksymilian Osowski
7ddc0b7a72 First stage of refactoring the code to handle crashes gracefully.
There is a new activity (LayoutTestsExecuter) added that is responsible for acutally running the tests and sending the actual results to the new
ManagerService class. This class will take over most of the functionality of the current LayoutTestsRunnerThread. At the moment
LayoutTestsRunnerThread is changed so that after computing the tests' list it sends the list to LayoutTestsExecuter. The rest of the code is
never called. It will be shifted to the service.

Current implementation of ManagerService only prints the log message on receiving the bundle with actual results from LayoutTestsExecuter.

Change-Id: I5adcbc20bb18ebf24324974bc66e4b31c4b81902
2010-07-26 10:37:41 +01:00
Maksymilian Osowski
4ee7f4b194 LayoutTest class with supporting classes (AbstractResult, TextResult).
These classes are responsible for actually running the tests, checking the results, generating visual diffs, etc.

Change-Id: I9b7f554409db1c97ac086c456db3aea3b993b5c6
2010-07-21 15:20:47 +01:00
Maksymilian Osowski
3c8ccb3845 Added the LayoutTestsRunner class that is responsible for running the tests. Also, added some methods to FileFilter.
It preloads the tests from the given path, runs them and asks for dumps and diffs. It will also prepare summaries in the future. It delegates
most of the work of actually running the individual tests to LayoutTest class and AbstractResult (and its subclasses in the future).

Change-Id: I483bf26a380b539e4769e61b4a09fa270ab0e8e9
2010-07-16 14:32:12 +01:00
Maksymilian Osowski
6fd7112e5c A basic extension of ListActivity that allows navigating through tests and test folders.
It provides the user with the simple UI that makes it easy to chose which tests to run.

Change-Id: Ifd0c4665de73e5702b892e57f5e91f84db36b248
2010-07-09 10:13:55 +01:00