139 Commits

Author SHA1 Message Date
Maksymilian Osowski
2e5982a55a Tweaked the logging + some minor style fixes.
Change-Id: If89fe8ab1845780ecf23c5fd339a4932ebec9c0c
2010-08-26 16:48:41 +01:00
Maksymilian Osowski
da9f91a107 Merge "Updated the script to include access log." 2010-08-26 08:01:58 -07:00
Maksymilian Osowski
fe33f987cb Updated the script to include access log.
Change-Id: I3c97d60580040fa8e4bf63660091edb9c7a871fb
2010-08-26 15:25:02 +01:00
Maksymilian Osowski
56d7e400ec Added forwarding service.
It creates the sockets on the device that allow DumpRenderTree2 to get tests from the server running on the remote machine. Communication happens through the adb.

Change-Id: I7f26ffc78195b6c5f4d423a57d5ee5f0f4a9c615
2010-08-26 13:38:54 +01:00
Steve Block
f0f30c677a Implement logic for new Geolocation delayed permission LayoutTests
Bug: 2914450
Change-Id: Ic0be3120e88efe9199f7719b9ccb1090baaabed6
2010-08-18 15:50:48 +01:00
Steve Block
0e4d86fddf Fix naming and executable bits on DumpRenderTree2 scripts
Change-Id: Id1415e2a166289c8c585e132e842f5ca6ad35426
2010-08-18 15:50:46 +01:00
Maksymilian Osowski
073d2c9aa9 Added copyright information to the files that were missing it.
Change-Id: I3b814f2fbd96384189e702e723764d17cbbde5fe
2010-08-13 17:12:51 +01:00
Maksymilian Osowski
74b13aecbe Added python script that starts/stops apache2 server on host machine configured to handle http layout tests.
Change-Id: I7bf4390dfb4f9a580e6e4ca0eb25c85655df723c
2010-08-13 12:07:17 +01:00
Maksymilian Osowski
2e64bb7afd Added more info to the Summarizer.
Bug: 2889572
Change-Id: If02dbdf90e8b8717370b5586cc72be235c93db79
2010-08-12 14:32:30 +01:00
Maksymilian Osowski
0186c93a6e Merge "Added a basic version of python script and supporting code in DumpRenderTree." 2010-08-11 05:26:38 -07:00
Maksymilian Osowski
a0a586cd2f Fixes crash when root dir does not exist.
Bug: 2904439
Change-Id: I629f88626e165348dd414f3ad49d9b415ab336cf
2010-08-11 12:55:01 +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
ea46f2595a Resets Summarizer after everything's finished.
Bug: 2903641
Change-Id: I7cecd454fe726a1527999259d37bd51ea2785116
2010-08-10 18:28:52 +01:00
Maksymilian Osowski
77bdba839b Merge "Changed some parts of the code to prepare it for script support that will come in later commit." 2010-08-10 07:42:47 -07: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
38b7eb96fd Merge "Added generating text summary to Summarizer." 2010-08-10 05:41:40 -07:00
Steve Block
68dede3d66 Hook up mock for testing DeviceOrientation in DRT
Change-Id: I99fbe328807428aa0d94893545bad0697ccb71d7
2010-08-10 12:00:35 +01:00
Maksymilian Osowski
8aff3c0571 Added eventSender.
Change-Id: Iae31dc11ddd7b4b1b9c2e1c39fb61cc7b9832721
2010-08-10 11:41:47 +01:00
Maksymilian Osowski
3df4eab3de Added generating text summary to Summarizer.
Change-Id: I8768403b0e4edd46132018c9da6de54b218fb594
2010-08-09 18:15:33 +01:00
Maksymilian Osowski
23a0ee4758 Added crash-detection mechanism.
Change-Id: Idb6501e94ffae5948de84241e46a618bc56554dd
2010-08-09 11:20:08 +01:00
Maksymilian Osowski
7e2a39b598 Added detection of missing EventSender functions.
Change-Id: I5268a66089d5e29a9ae5e496d05f3c79465771f5
2010-08-06 10:11:12 +01:00
Maksymilian Osowski
38f28fac14 Added geolocation layoutTestController functions.
Change-Id: Ie9558e873ff589b9e2358623433838f0718ea3b4
2010-08-03 18:37:17 +01:00
Maksymilian Osowski
40968a4540 Added recording of JS dialog messages.
Change-Id: I3854f1fea81d47255c9fb398bdcbdff5ed4d8a52
2010-08-03 18:02:42 +01:00
Maksymilian Osowski
100e106551 Merge "Changed the order of searching for expected result (and added additional location)." 2010-08-03 08:05:46 -07:00
Maksymilian Osowski
c83712e686 Changed the order of searching for expected result (and added additional location).
Change-Id: Ieb59ffcaeb999d0ed5a8445c97e6ea3bbe115e4d
2010-08-03 16:04:58 +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
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