13 Commits

Author SHA1 Message Date
Maksymilian Osowski
4a9e3a6dc3 Added detecting unimplemented layoutTestController functions and green squares.
Change-Id: Iaa7bbdb83a074a874a210f7975c6c3b731e0a924
2010-08-03 15:35:07 +01:00
Maksymilian Osowski
dd4bff62b5 First batch of layoutTestController functions + some fixes and tweaks.
Change-Id: I9dae192c498d8e19fd75861a1a6cf1f079ad9c6f
2010-08-03 15:22:34 +01:00
Maksymilian Osowski
42bee9cf76 Time-out mechanism and state machine.
Change-Id: I47c4342c02ea152b1503b9d5268900df3b40683c
2010-08-02 16:22:28 +01:00
Maksymilian Osowski
6d0dae6a65 Upgraded DRT2 to generate nice HTML summaries of the tests.
Change-Id: Ibe4ee3af30fe20aeab2f3fed9c4c5693c9a0f268
2010-07-29 17:17:36 +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
650893b676 Build fix.
Change-Id: Ie2baa3d7d32fd382e8ecb2a811669f50aa26fdc9
2010-07-21 16:21:06 +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
cc483d25b9 Added dialogs to the DirListActivity.
- A run/abort dialog on long click on directory
- A delayed progress dialog for directories that take long to load

Change-Id: I2fda245a48cb09faf8228809f7b091a7d2383589
2010-07-12 13:14:43 +01:00
Ben Murdoch
177eb38ef5 Update the file filter in DumpRenderTree (and DumpRenderTree2) so that
we run tests in .xhtml files.

Change-Id: I2af0bd29acef5bafa9dee9292aafc18d77a84080
2010-07-09 16:06:40 +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
Maksymilian Osowski
2910c123aa Basic file filter class for the new DumpRenderTree.
This class handles which files are tests or directories and which should be skipped, have their results ignored or are slow.

Bug: 2816714

Change-Id: Id57390d736f542abac6fe5244b97ad6fecf82a2c
2010-07-07 16:04:45 +01:00