• Home
  • History
  • Annotate
  • only in /frameworks/base/tests/DumpRenderTree2/src/
History log of /frameworks/base/tests/DumpRenderTree2/src/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b56ed30666596e70b577c9b937362e246f229a11 29-May-2012 Steve Block <steveblock@google.com> Fix style for Geolocation mock mechanism

See I6d88d5dce5c2148812b191a5b452718bf0854aeb

Change-Id: I1179319f066664393aa5f7324df89f8057a9e922
om/android/dumprendertree2/LayoutTestController.java
om/android/dumprendertree2/LayoutTestsExecutor.java
f3f60d9328d8acfedf987a73631fc90c39bf5447 16-May-2012 Steve Block <steveblock@google.com> Switch Geolocation DRT methods to control client-based mock

Note that we plumb DRT Geolocation mock calls via WebView. This is required
because the WebCore client-based mock is not a static but is tied to the Page.

See WebKit change Ib74a3c05991593e75c3138415d4ac0bf0c9aefa9.

Bug: 6511338
Change-Id: I6d88d5dce5c2148812b191a5b452718bf0854aeb
om/android/dumprendertree2/LayoutTestController.java
om/android/dumprendertree2/LayoutTestsExecutor.java
d3101b1d300f5942fdb7dfa323dc8830c4edc007 12-Apr-2012 Jonathan Dixon <joth@google.com> Seperate interface and implementation of 4 WebView classes

GeolocationPermissionsClassic
CookieManagerClassic
WebIconDatabaseClassic
WebStorageClassic

Also creats a WebViewFactory top level class - this remains hidden
for now, as it's currently only used implicitly by the other
public WebView classes to create the provider instances.

Bug: 5626244

Change-Id: Id0ca1c16d8058f31a86414bbc0e8a55db4b907ba
om/android/dumprendertree2/LayoutTestController.java
5ba2efeb9faaf7db9da205102b9a7f40b4b89f27 03-Aug-2011 Steve Block <steveblock@google.com> Minor clean-up in DeviceOrientation and DeviceMotion

No functional change.

See corresponding external/webkit change
https://android-git.corp.google.com/g/#change,125700

Change-Id: I2693328cb058820587ac43dd3121818959efd2d0
om/android/dumprendertree2/LayoutTestsExecutor.java
3c90952036a5ff7ddb2946c643f1a0bf1c31d53a 28-Feb-2012 Jonathan Dixon <joth@google.com> Refactor WebView to be a thin proxy class

Splits interface and implementation; all client calls are forwarded
to an abstract WebViewProvider interface, and the existing implementation
moved into the WebViewClassic implementor of this interface.

Originally taken from a snapshot from the development branch, by:
git diff HEAD 9a4c328a54cc05e5 | git apply
- but then rebased to keep up to date with master

Interdepends on webkit and Browser changes:
https://android-git.corp.google.com/g/158979
https://android-git.corp.google.com/g/167911

Change-Id: I91403f32654ff308934e95c832d17b292a7d9b2e
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/TextResult.java
9eed25e2576403a91826312381f4507e8c8171c2 20-May-2011 Steve Block <steveblock@google.com> In DRT2, correctly handle the case of zero tests

Bug: 3291382
Change-Id: I8cde1d8d78a57407c585b02ca8ba3f3f893a609b
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/ManagerService.java
183c3c9ca20f55703f31e3610bca72682f6355db 23-May-2011 Steve Block <steveblock@google.com> Update DRT2 to reflect WebKit code movement

See http://trac.webkit.org/changeset/74301

Change-Id: Ibe495cdc1f50f65db5663dbb63af9b9c2db050d0
om/android/dumprendertree2/FsUtils.java
om/android/dumprendertree2/Summarizer.java
f93246923f0a8c85fddb508533d63d59977f75eb 24-Jan-2011 Huahui Wu <hwu@google.com> A few small cleanning-ups.

1. Remove mDeferMultiTouch in WebView, it was for testing only but
we don't need it now since we always pass MultiTouch to WebKit.

2. Remove the use of mDeferMultiTouch in DRT tests.

3. Correct the index of getX(Y) for the second touch point in the
debug string of MotionEvent.

Change-Id: Ib63cfc5935af1a169ed26b2b138f74908492bc18
om/android/dumprendertree2/LayoutTestsExecutor.java
a586b7baaf71eef621a826675346b95947fd1df0 21-Jan-2011 Huahui Wu <hwu@google.com> b/3369602 Using Math.round() to convert float coordinates to integers.

Change-Id: If4da01046c909667ce57a849569ae6b1acefb939
om/android/dumprendertree2/EventSenderImpl.java
84cc2dbb1d9f935182fcbeb1ef68dc340d2ebade 17-Dec-2010 Philippe Marti <philmarti@google.com> Improve error handling (NPE in DRT2)

Bug: 3284126
Change-Id: I7f8c6259f2932d2b1a10a2f9612866786d425da9
om/android/dumprendertree2/FileFilter.java
2aafca6408835307779e7f7dadb28929b11f11d5 23-Nov-2010 Guang Zhu <guangzhu@google.com> pass layout test list using external file

Currently layout test list is passed between two processes in
intent, which does not work for large lists. This change store
the list in external storage folder (per app based, actual
location determined by framework) instead.

Change-Id: Ib175f766159f5e4f831d6b9ace9f1c4caef7298d
om/android/dumprendertree2/FsUtils.java
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/TestsListActivity.java
edfdd155273feaa14d3e1259627fe10f86e2b6ff 11-Nov-2010 Steve Block <steveblock@google.com> Fix EventSender mouse events to correctly convert from screen coordinates

This is required for LayoutTest fast/dom/Node/mutation-blur.html

Change-Id: Ib82f897ab61ac3a8e8eacee8ec08f5242c43c736
om/android/dumprendertree2/EventSenderImpl.java
aca659c20748030c02d7ab31ff28f8293126092b 11-Nov-2010 Steve Block <steveblock@google.com> Refactor EventSenderImpl.MousePoint

This factors out a new Point class and a new
createViewPointFromContentCoordinates() method. This will allow Point
and the conversion method to be re-used with mouse events.

Change-Id: I2d689d0ffa0ad7ba01d0e90f78c812604ab96234
om/android/dumprendertree2/EventSenderImpl.java
ace92b871a020a3d662511ea8b1aab30334015de 09-Nov-2010 Iain Merrick <husky@google.com> Include .php tests in DumpRenderTree2.

I've manually checked the existing LayoutTests for false positives.
There are non-test .php files, but they're all in "resources"
subdirectories, so they should be caught by isTestDir(). Added an
extra @warning to isTestFile() just in case.

Bug: 3164771
Change-Id: Ib282acf46f6e839439ce521c4b2cb5820fcd263c
om/android/dumprendertree2/FileFilter.java
ca501d20360ffee3a37fc87538daf8281f8a14ed 09-Nov-2010 Steve Block <steveblock@google.com> Fix DumpRenderTree2 to not attempt to read expected results over HTTPS

This is required now that we have HTTPS tests in the triaged set of
tests.

Change-Id: I650518a4536ed903f637a44c0901b1e38bdc1a84
om/android/dumprendertree2/FileFilter.java
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/ManagerService.java
cda9448206494b67c0812b9591cc066ca070a7a6 09-Nov-2010 Steve Block <steveblock@google.com> Fix FsUtils.readDataFromUrl() to do the network request on a background thread

This is required now that doing network requests on the main thread
throws NetworkOnMainThreadException.

Also updates TestsListPreloaderThread to create the FileFilter lazily
and removes a superfluous FileFilter param from the Summarizer
constructor.

Change-Id: If15fddac934cd8be611f6693b25837657abbddc3
om/android/dumprendertree2/FsUtils.java
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/TestsListPreloaderThread.java
24652bc958997dc32d5c8275f2f2ce38daf6e106 18-Oct-2010 Steve Block <steveblock@google.com> Fix DumpRenderTree2 to correctly handle crashed tests

Change-Id: I894987d5b8f24ea31893aefe3cb6450c2736aa90
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/Summarizer.java
5f37cc4308438bcac45d06d07d77a56911620046 13-Oct-2010 Steve Block <steveblock@google.com> Implement LayoutTestController.overridePreference('WebKitUsesPageCachePreferenceKey')

This is required for tests that test PageCache behaviour, eg
- fast/dom/DeviceMotion/no-page-cache.html
- fast/dom/DeviceOrientation/no-page-cache.html
- fast/dom/Geolocation/no-page-cache.html

Change-Id: Ie5862f6c86718142c949be81a85358ca6fac628a
om/android/dumprendertree2/LayoutTestsExecutor.java
856f2859e8550c274c7fe3f05b971bf34bdcb525 29-Sep-2010 Steve Block <steveblock@google.com> Fix some bugs in DumpRenderTree2 when forming HTML diffs

Change-Id: Id98c1b7dde1961c2dab4214a36ad43916baf8011
om/android/dumprendertree2/TextResult.java
om/android/dumprendertree2/VisualDiffUtils.java
fd487ad1b8d11dbc3df29b3073a0ec89f998c819 29-Sep-2010 Steve Block <steveblock@google.com> Use the empty string when expected text results are missing in DumpRenderTree2

Change-Id: I204583ecc9c6a8017349124d5813c693c7f00dc9
om/android/dumprendertree2/TextResult.java
f460dd42190ada4a2c147db5127a9d7870fe0101 29-Sep-2010 Steve Block <steveblock@google.com> Fix a bug with the expected result path in DumpRenderTree2

If we fail to read from any of the possible expected result paths, we should
not record an expected result path.

Change-Id: Ica96b791c14a7755154be4ec9480be4d13f47a19
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/Summarizer.java
fdffee828cea81bf2a004e4e2a391e32f59c2f0c 29-Sep-2010 Steve Block <steveblock@google.com> Correctly implement EventSender mouse methods in DumpRenderTree2

This is taken from a similar change to DumpRenderTree in
https://android-git.corp.google.com/g/62449

Change-Id: I01418100ace1cf1ccfbb4fd28d72b99b54e0c140
om/android/dumprendertree2/EventSenderImpl.java
c0f90a8f93546f4e9a708c44ac610f36b5e9b1f8 29-Sep-2010 Steve Block <steveblock@google.com> Trim empty lines when comparing text results in DumpRenderTree2

Change-Id: I94c9de8e6131f6b60456700e9d5a3b27c8c9d1c3
om/android/dumprendertree2/TextResult.java
27c5fab5715fed6d97ccfdf2d631a3b3726570d3 21-Sep-2010 Steve Block <steveblock@google.com> Reduce the AppCache maximum size to a more reasonable value in DumpRenderTree2

Without this change, any use of AppCache fails after the test
http/tests/appcache/max-size.html has been run. The test in question
passes, but seems to leave the database in a corrupted state, causing
all future database transactions to fail. The only fix is to remove
the database file.

This behaviour is only observed with DumpRenderTree2, not
DumpRenderTree, so I don't think this is a WebView problem. I'm not
sure what the root cause is, but I think it make sense to submit this
fix now in order to get the LayoutTests stable with DumpRenderTree2.

Change-Id: I763c09406e66839676b839e3cdeba3b9427c1cb9
om/android/dumprendertree2/LayoutTestsExecutor.java
cb98a3e621b7c56d1367a1bf77cd91dae3feb6da 28-Sep-2010 Steve Block <steveblock@google.com> Provide a useful message in DumpRenderTree2 GUI when the host server is not running

Bug: 3010758
Change-Id: Ic62f60d96055e7ad1e475215ca384306cdfa859c
om/android/dumprendertree2/FsUtils.java
om/android/dumprendertree2/TestsListPreloaderThread.java
om/android/dumprendertree2/ui/DirListActivity.java
898bfbd865496855c3a6c792f9e0da011ae34854 28-Sep-2010 Steve Block <steveblock@google.com> Prevent DumpRenderTree2 from crashing when the host server is not running

Bug: 3010758
Change-Id: I04a01634544d223d225b264827d3cf18be74e1e0
om/android/dumprendertree2/forwarder/AdbUtils.java
om/android/dumprendertree2/forwarder/ConnectionHandler.java
om/android/dumprendertree2/forwarder/Forwarder.java
41865f4b0c5670369bf957ad72a867757fc6b356 02-Sep-2010 Huahui Wu <hwu@google.com> Bug 2372180: pass multi-touch events from browser to webkit.
Since the UI uses multi-touch for zooming, the event is passed to webkit
only when the webpage doesn't allow zooming.
1. Updated the data structure TouchEventData in WebViewCore.java
to take multiple points and used it everywhere.
2. Added a passMultiTouchToWebkit() function to do what its name means.
3. Added the multi-point touch support to dumprendertree.

Change-Id: Iafc1aa7b21a587ad26efd2f124b9a66316297ab8
om/android/dumprendertree2/EventSenderImpl.java
om/android/dumprendertree2/LayoutTestsExecutor.java
1358a1c8062a800f1c53d0400164c8e0dbd2d224 22-Sep-2010 Steve Block <steveblock@google.com> Fix DumpRenderTree2 to clear AppCache between tests

Change-Id: I1bafc79bbdbec0df7e4c8039488478a3bfcb3bd4
om/android/dumprendertree2/LayoutTestsExecutor.java
3cf18f5c9697273e34acfaf7536cc472c97ee3fa 22-Sep-2010 Steve Block <steveblock@google.com> Fix DumpRenderTree2 to wait for the WebCore thread to become ready

This is required to make sure that the WebCore thread's message
handlers are ready to receive settings.

Change-Id: I2c4df95e3b7409535b739ada957d93a7e6cd78d6
om/android/dumprendertree2/LayoutTestsExecutor.java
34f3851e9534b19ab0f02d3eb11f52ddb2635530 20-Sep-2010 Steve Block <steveblock@google.com> Fix DumpRenderTree2 to make AbstractResult serializable

This should have been doen as part of
https://android-git.corp.google.com/g/#change,65283

Change-Id: I7a4681f98014ff5a7546a7346fc5523e01f62e19
om/android/dumprendertree2/AbstractResult.java
f09aafa27503becdcbe2244356c2c7505dff8fe4 20-Sep-2010 Steve Block <steveblock@google.com> Fix DumpRenderTree2 to handle SSL errors

This fixes http/tests/appcache/different-https-origin-resource-main.html

Change-Id: I90e151c027b2d8c55ea82104c02e4a641b933024
om/android/dumprendertree2/LayoutTestsExecutor.java
70727d1f750b7bf9e583845fc108d936c3fbc64e 22-Sep-2010 Steve Block <steveblock@google.com> Merge "Fix DumpRenderTree2 to correctly add JavaScript interfaces to new windows"
394e0fb84996f5f5ee9e33c9e2f0e11066e6f943 17-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Updated Summarizer to use SQLite DB.

It avoids OOM issues by dumping the memory to the DB every
few hundred tests and then reading them in chunks when
generating summaries, etc.

Change-Id: I5f63d960d456f17e9f2189230a7ae0ca5607ce51
om/android/dumprendertree2/AbstractResult.java
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/SummarizerDBHelper.java
om/android/dumprendertree2/TextResult.java
fadb0de33d3d4b0da765e2d3f60b895016b89c4f 17-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Changed Summarizer to dump generated html code to file every few hundred tests to avoid OOM errors.

Change-Id: Id0917d45ffab2e47d67d17d629f342add5292d4e
om/android/dumprendertree2/Summarizer.java
76c97ee414dfc752ce26201a440bf7c451acae85 17-Sep-2010 Steve Block <steveblock@google.com> Fix DumpRenderTree2 to serve HTTP tests on http://127.0.0.1:8000

Currently DumpRenderTree2 serves HTTP tests on http://localhost:8080.
Some of the tests hardcode 'http://127.0.0.1:8000' for resources, so
we must use this scheme and port for the requests to be same-origin.

This fixes LayoutTest http/tests/appcache/credential-url.html

Change-Id: I2a9c402fc7b0e0b62eb4a278d67ac0e63ef96e8b
om/android/dumprendertree2/forwarder/ForwarderManager.java
9893d96d1231235f3d984e9dc751f08409a5f873 17-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Updated ManagerService to call Summarizer.summarize() in a separate thread.

This could potentially take a long time and result in ANR.

Change-Id: Ib8b246e627e841217b68c955d92c97801e93d923
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/Summarizer.java
f0c289e24cc2315f5570f5643456ad8191c1216b 17-Sep-2010 Steve Block <steveblock@google.com> Fix DumpRenderTree2 to correctly add JavaScript interfaces to new windows

When adding JavaScript interfaces to a WebView, they must be passed to
the WebView constructor, rather than to
WebView.addJavascriptInterface() if they are to be used immediately
without the risk of race conditions.

This fixes LayoutTest
http/tests/appcache/crash-when-navigating-away-then-back.html

This was fixed for DumpRenderTree in
https://android-git.corp.google.com/g/23804

Change-Id: I1581d6d6cfc1b35be1ec2f2e5b5b944da2b4b935
om/android/dumprendertree2/LayoutTestsExecutor.java
8a6def02473ee4fbffcd1b34173daf751d316202 17-Sep-2010 Steve Block <steveblock@google.com> Update DumpRenderTree2 to handle failing tests where no meaningful diff is available

Currently, DumpRenderTree2 asigns the following result codes
{PASS, FAIL_RESULT_DIFFERS, FAIL_NO_EXPECTED_RESULT, FAIL_TIMED_OUT,
FAIL_CRASHED}

This is not strictly correct, as a test may fail for any of three
reasons - crashing, timing out, or the the result not being as
expected. Therefore, it's possible for a test to fail even if the
result is as expected.

This patch updates AbstractResult to handle each of the three reasons
for failure separately. We then test all three to determine if the
test has passed.

This allows us to correctly report whether or not the result differs
from expected for a failing test.

Change-Id: I7adcfe72c4dd0bd3de2e1b868d9807be6eb5bddf
om/android/dumprendertree2/AbstractResult.java
om/android/dumprendertree2/CrashedDummyResult.java
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/TextResult.java
c0847c55eaef5b91d91abfdcfee5650eb22866eb 17-Sep-2010 Steve Block <steveblock@google.com> Remove superfluous CSS from DumpRenderTree2's Summarizer

Change-Id: Ifc3764ec3cf7bd5ee412abaf45112eed22083456
om/android/dumprendertree2/Summarizer.java
2c38de8436fefb5c2834d843ab3520474bc3a35a 16-Sep-2010 Steve Block <steveblock@google.com> Implement WebViewClient.onReceivedHttpAuthRequest() in DumpRenderTree2

This fixes LayoutTest http/tests/appcache/auth.html.

Change-Id: Idd9ead9c35341cc6a787d409ae2fe1bebef01d60
om/android/dumprendertree2/LayoutTestsExecutor.java
d96c5e0cb31f486fb30dc836f0e74b2216f2ccc2 15-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Added setXSSAuditorEnabled() LayoutTestController function.

Change-Id: I262e434573ee79c998f3ace5103c191fc0989bd2
om/android/dumprendertree2/LayoutTestController.java
om/android/dumprendertree2/LayoutTestsExecutor.java
023606abb6784ebc8e56bbff7e87ca695752cdde 14-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Changed Summarizer to add header before printing the path in summary.txt and details.html"
75aa0d382844dbee2d7931f21245112c27dd3d64 14-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Changed Summarizer to add header before printing the path in summary.txt and details.html

Change-Id: I6413e1871ede077793d49b7d4732f90d0aea352f
om/android/dumprendertree2/Summarizer.java
757dcbb80371ad9211e288faf02bad91bae4a717 14-Sep-2010 Steve Block <steveblock@google.com> Implement LayoutTestController.setAppCacheMaximumSize() for DumpRenderTree2

Change-Id: I7db486ccee1b9ebe84b89b98ba1a9b6e933d8f4e
om/android/dumprendertree2/LayoutTestController.java
5de8b998f571b4318104ec9a3e2f780459ce09e2 14-Sep-2010 Steve Block <steveblock@google.com> Sort LayoutTestController methods alphabetically

This makes it easier to keep trac of which methods are implemented.
No functional changes.

Change-Id: I389ec5c0f7e77def6a479e387d1373b2b87f60c2
om/android/dumprendertree2/LayoutTestController.java
om/android/dumprendertree2/LayoutTestsExecutor.java
8e0835c08e956519264deab8d759595cdd19de42 13-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Added overridePreference() layoutTestsController function."
5e689a74861e94ee12a3dbfc66aed594372e9f63 13-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Added overridePreference() layoutTestsController function.

Change-Id: I99fbf7490c3c6eb063bf5ed0bbd2bced0f10a967
om/android/dumprendertree2/LayoutTestController.java
om/android/dumprendertree2/LayoutTestsExecutor.java
ab87db4ad8e16e36f99303933db5267946e7bb34 13-Sep-2010 Steve Block <steveblock@google.com> Update DumpRenderTree2 to only calculate the WebKit revision once per test run

This is obtained by a HTTP request to ThirdPartyProject.prop

Change-Id: I34e310cf52fbcef24bb2a76e64aab5263b3052f1
om/android/dumprendertree2/Summarizer.java
c54df24fa9bfd0a2b53404139e7914e68f192af4 13-Sep-2010 Steve Block <steveblock@google.com> Remove superfluous FileFilter from DumpRenderTree2 DirListActivity.java

Change-Id: I5e7d86fc4e05ac512ce1b2c55660d3b7f0de2750
om/android/dumprendertree2/ui/DirListActivity.java
bdebd0621b2a4422a30bea21ea549afd20a9e918 13-Sep-2010 Steve Block <steveblock@google.com> Update DumpRenderTree2 to store results in /sdcard/layout-test-results

This more closely follows other WebKit platforms, which use
/tmp/layout-test-results.

Change-Id: Ice702b73d7425250d595e8321e14ff3becb66ed5
om/android/dumprendertree2/ManagerService.java
34c68912be678ad50a70c1bfa54a91444e993df5 13-Sep-2010 Steve Block <steveblock@google.com> Remove the last remnants in DumpRenderTree2 of the absolute path to the tests

This is no longer required.

Change-Id: I27db10e8c723162b319d9a714b086f508db706e0
om/android/dumprendertree2/FileFilter.java
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/TestsListPreloaderThread.java
om/android/dumprendertree2/ui/DirListActivity.java
7438b53487cb21f261eac4396aba0dbaa16ee015 13-Sep-2010 Steve Block <steveblock@google.com> Update DumpRenderTree2 text results output to better match HTML version

Always print number of crashes and line things up nicely.

Change-Id: I79a72056ba5ce007fdd4154f1518b9535b595317
om/android/dumprendertree2/Summarizer.java
5af84db492a0c198377ba4dacc83c5a211e96ff6 09-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Updated the AdbUtils class to better manage opening and closing the resources.

Change-Id: I83ebc6409d57a28f9015ec9726f797417ec03212
om/android/dumprendertree2/FsUtils.java
om/android/dumprendertree2/forwarder/AdbUtils.java
om/android/dumprendertree2/forwarder/ConnectionHandler.java
om/android/dumprendertree2/forwarder/Forwarder.java
741fdc80884d40ace227bb08e04a036bdb70aeb1 13-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Updated FsUtils to use apache HttpClient instead of java.net UrlConnection."
ce2ef18c8f220df13c3fca031f440dfc98362242 09-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Updated FsUtils to use apache HttpClient instead of java.net UrlConnection.

It fixed sockets leaking during readDataFromUrl() invocations.

Change-Id: Ifb1aeb32fe9bb4ffa353cf521b5174a83de270db
om/android/dumprendertree2/FsUtils.java
0e2bae14b408d001fea84c0cbdb7348c3ec611a3 07-Sep-2010 Steve Block <steveblock@google.com> Update DumpRenderTree2 to reflect removal of WEBKIT_MERGE_REVISION

We now use ThirdPartyProject.prop
See https://android-git.corp.google.com/g/#change,64831

Change-Id: Ib52fdd93ac08fb19ec8b7f539eb084c0b668e01b
om/android/dumprendertree2/Summarizer.java
bd8c83db8f424a8cfbf94cd4915d7b99b034358c 03-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Fixed the bug in forwarder that prevented ConnectionHandler threads from exiting.

There was a deadlock when ConnectionHandler exited the loop in SocketPipeThread, and would call the onFinishedCallback, which called the synchronized method in Forwarder that would
deadlock. Changing the Forwarder class solved the issue and made it more efficient.

Change-Id: I947450a19573f2e88274b1ebc7b77d4df6afffa7
om/android/dumprendertree2/forwarder/ConnectionHandler.java
om/android/dumprendertree2/forwarder/Forwarder.java
fddedbf999a57220ed89bbebe9f35e093aa77c2d 02-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Updated Summarizer to parse CRASH instead of SKIP."
2ca8acdb5622b03a4ef56159477087adcf87db62 02-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Adds webkit revision to the summary and details.

The revision number is taken from external/webkit/WEBKIT_MERGE_REVISION and is served to the java code by apache server. To be able to do that, the new alias directive had to be
added to the run_apache2.py script.

Bug: 2889572
Change-Id: Ie3d147e4d8ea9edd0144b819152121563b8bd759
om/android/dumprendertree2/Summarizer.java
01c1f9d9e9e7ab3a40a9bf27195a434eb0c9bb9b 02-Sep-2010 Maksymilian Osowski <maxosowski@google.com> The results now show which expected result was used.

Bug: 2889857
Change-Id: If2b7e6e6a22ddb5db6c6a50a358e8f263914e6c0
om/android/dumprendertree2/AbstractResult.java
om/android/dumprendertree2/CrashedDummyResult.java
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/TextResult.java
5f21f5a4a9f240e1c35ab86b2f3a332f0d541cf0 02-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Updated Summarizer to parse CRASH instead of SKIP.

Bug: 2970575
Change-Id: Idc8b514f4878bcd62729a47d7fe681ade114497a
om/android/dumprendertree2/FileFilter.java
om/android/dumprendertree2/TestsListPreloaderThread.java
cbba4ae260afa9751a2584cd7d209c4e919ea555 02-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Shows the details when all the tests finish and fixes the orientation issue."
84daaf8b4114306b66c295b77c1251d26f842a24 02-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Fixed and slightly improved crash detection mechanism."
1b034781f4c45608e4d57e46cd46dfab9fc64746 01-Sep-2010 Maksymilian Osowski <maxosowski@google.com> 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
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/TestsListActivity.java
bcf114c2bbef4dd4af266a635a74076d568d125c 27-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Fixed and slightly improved crash detection mechanism.

Before, if a crash was detected, but the "Force quit" dialog remained on the screen, sending the intent to restart the executor would do nothing. It's fixed now with default
uncaught exception handler. Also, when we catch the uncaught exception, we can restart the executor straight away, without waiting for the time-out.

Change-Id: I2f0b4b5f2abd180ff518f1a40ad1294bed2f7f67
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/ManagerService.java
f072bced91167cd707399163bdb9b97f76846a8d 02-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Updated Summarizer to report tests under all 4 possible categories now."
6ae5ce4b409759d36f2350e96ff2242e1385b147 01-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Updated Summarizer to report tests under all 4 possible categories now.

Categories: ((un)expected passes/failures).
Also, FileFilter uses FAIL instead of IGNORE_RESULTS now.

Bug: 2899965
Change-Id: I06835b3d5cea84cbc92225a940bf7361cf832f59
om/android/dumprendertree2/FileFilter.java
om/android/dumprendertree2/Summarizer.java
15116bcc766626654655875fb96154c93df54668 02-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Fixed a bug when there are too many open sockets."
5926723f82fbdd9b523193e05f901784904b6d38 01-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Fixed a bug when there are too many open sockets.

Also, some minor corrections to shutdown() in ConnectionHandler.

Change-Id: I937f200c14c185b0867f997645d8b288a19b9889
om/android/dumprendertree2/forwarder/ConnectionHandler.java
om/android/dumprendertree2/forwarder/Forwarder.java
ff314d7094fdc6a1869d6cbe17db16c5b9129009 01-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Added "run all tests in the current directory" menu option.

Bug: 2906954
Change-Id: Ib68219dc4d4d517ad859679bc8d52a02b0b631f4
om/android/dumprendertree2/ui/DirListActivity.java
9c12bd393271157409e8c089e5b971a4e1fc9106 01-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Updated the Summarizer to link to the source of the tests."
603b70dd8b1ef8acabf71c52089c6cd5396fe931 27-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Updated the Summarizer to link to the source of the tests.

Change-Id: I90018898c627b99f5a49c301e87593b52cd18ce4
Bug-Id: 2889573
om/android/dumprendertree2/Summarizer.java
ef9a2175ee29b9a9c84ddd0a02d1ec80ab095222 31-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Fixed a bug in forwarder where calling the stop method on ForwarderManager would deadlock. Also some style fixes.

The call would deadlock because lines 62-67 in ConnectionHandler were in the synchronized block. The is.read() would block and therefore call to shutdown() would block too.
is.read()
would never unblock because the stream was ready to be closed, and it needs to be done so from shutdown(). Removing the synchronized block fixes it and is save, as it was not
needed here.

Change-Id: I3326098c47ee18c4eabaa8510b27ca82debce360
om/android/dumprendertree2/forwarder/ConnectionHandler.java
om/android/dumprendertree2/forwarder/Forwarder.java
om/android/dumprendertree2/forwarder/ForwarderManager.java
c6a341d34c690c2b5948977cd803ec2ff668c4b7 23-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Changed the code to use forwarding service.

Change-Id: I2504ef01270f9c8e82acbe6a4069d2b4b77b35f2
om/android/dumprendertree2/FileFilter.java
om/android/dumprendertree2/FsUtils.java
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/TestsListPreloaderThread.java
om/android/dumprendertree2/forwarder/ForwarderManager.java
om/android/dumprendertree2/scriptsupport/Starter.java
om/android/dumprendertree2/ui/DirListActivity.java
2e5982a55ac031110ed39515a76f7a5ec9ff2c14 26-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Tweaked the logging + some minor style fixes.

Change-Id: If89fe8ab1845780ecf23c5fd339a4932ebec9c0c
om/android/dumprendertree2/AdditionalTextOutput.java
om/android/dumprendertree2/FileFilter.java
om/android/dumprendertree2/FsUtils.java
om/android/dumprendertree2/LayoutTestController.java
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/VisualDiffUtils.java
om/android/dumprendertree2/scriptsupport/Starter.java
56d7e400ece64591685c8a21dbb82a94a7bd8010 23-Aug-2010 Maksymilian Osowski <maxosowski@google.com> 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
om/android/dumprendertree2/forwarder/AdbUtils.java
om/android/dumprendertree2/forwarder/ConnectionHandler.java
om/android/dumprendertree2/forwarder/Forwarder.java
om/android/dumprendertree2/forwarder/ForwarderManager.java
f0f30c677a187b0436e62d2be6c97b76e61d74ea 18-Aug-2010 Steve Block <steveblock@google.com> Implement logic for new Geolocation delayed permission LayoutTests

Bug: 2914450
Change-Id: Ic0be3120e88efe9199f7719b9ccb1090baaabed6
om/android/dumprendertree2/LayoutTestsExecutor.java
2e64bb7afdd97c954491877306ccb8318f8ec3ce 10-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Added more info to the Summarizer.

Bug: 2889572
Change-Id: If02dbdf90e8b8717370b5586cc72be235c93db79
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/TestsListActivity.java
0186c93a6e2e8ea77408e57068aec993cef0075a 11-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Added a basic version of python script and supporting code in DumpRenderTree."
a0a586cd2fb06277436736abc291122aecf6c4ea 11-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Fixes crash when root dir does not exist.

Bug: 2904439
Change-Id: I629f88626e165348dd414f3ad49d9b415ab336cf
om/android/dumprendertree2/TestsListPreloaderThread.java
om/android/dumprendertree2/ui/DirListActivity.java
5fb9ff420d378c5c83e116efadefb669791098d5 09-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Added a basic version of python script and supporting code in DumpRenderTree.

Change-Id: Ic60ef9b89f74a3a36a4c31765f99c8de08dce911
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/TestsListActivity.java
om/android/dumprendertree2/scriptsupport/OnEverythingFinishedCallback.java
om/android/dumprendertree2/scriptsupport/ScriptTestRunner.java
om/android/dumprendertree2/scriptsupport/Starter.java
ea46f2595a8718d4478e016fd40b2d57658289cf 10-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Resets Summarizer after everything's finished.

Bug: 2903641
Change-Id: I7cecd454fe726a1527999259d37bd51ea2785116
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/Summarizer.java
77bdba839b2f171d63527dcb3b4787a2e6ce9878 10-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Changed some parts of the code to prepare it for script support that will come in later commit."
c8fb818b947f15d4eb467c229ea43806dd75c01e 10-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Changed some parts of the code to prepare it for script support that will come in later commit.

Bug: 2903591

Change-Id: If8fcfad1557c8140c476212d8be9f99987cdaa18
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/TestsListActivity.java
38b7eb96fde99fa5b2725c65f2b42538398aba37 10-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Added generating text summary to Summarizer."
68dede3d6664d91302d727531d13f7f5862d3a50 04-Aug-2010 Steve Block <steveblock@google.com> Hook up mock for testing DeviceOrientation in DRT

Change-Id: I99fbe328807428aa0d94893545bad0697ccb71d7
om/android/dumprendertree2/LayoutTestController.java
om/android/dumprendertree2/LayoutTestsExecutor.java
8aff3c0571f078b0b212bd283278791ebc478da5 03-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Added eventSender.

Change-Id: Iae31dc11ddd7b4b1b9c2e1c39fb61cc7b9832721
om/android/dumprendertree2/EventSender.java
om/android/dumprendertree2/EventSenderImpl.java
om/android/dumprendertree2/LayoutTestsExecutor.java
3df4eab3de243d3e9a68d2554eeaed3b1bb4d69d 09-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Added generating text summary to Summarizer.

Change-Id: I8768403b0e4edd46132018c9da6de54b218fb594
om/android/dumprendertree2/Summarizer.java
23a0ee4758da5e2d24ec6c9e8a63c127463a096f 04-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Added crash-detection mechanism.

Change-Id: Idb6501e94ffae5948de84241e46a618bc56554dd
om/android/dumprendertree2/CrashedDummyResult.java
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/TestsListActivity.java
7e2a39b5985a1449588a397195c178bfef9421db 04-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Added detection of missing EventSender functions.

Change-Id: I5268a66089d5e29a9ae5e496d05f3c79465771f5
om/android/dumprendertree2/Summarizer.java
38f28fac14d5ce4e5924226e734ecd10d228b783 03-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Added geolocation layoutTestController functions.

Change-Id: Ie9558e873ff589b9e2358623433838f0718ea3b4
om/android/dumprendertree2/LayoutTestController.java
om/android/dumprendertree2/LayoutTestsExecutor.java
40968a4540164b69436c482738f46e22867b8ff3 03-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Added recording of JS dialog messages.

Change-Id: I3854f1fea81d47255c9fb398bdcbdff5ed4d8a52
om/android/dumprendertree2/AdditionalTextOutput.java
om/android/dumprendertree2/LayoutTestsExecutor.java
100e106551af965b2f53a506011a875daffb0274 03-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Merge "Changed the order of searching for expected result (and added additional location)."
c83712e68642b9816a561916c6ec044509bd6759 03-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Changed the order of searching for expected result (and added additional location).

Change-Id: Ieb59ffcaeb999d0ed5a8445c97e6ea3bbe115e4d
om/android/dumprendertree2/ManagerService.java
ef7f9d2458d547df4b47808f19e549eee9af76ce 03-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Added wakelock to keep the screen from sleeping when executing tests.

Change-Id: Ib6a0ff2a7c906f500868269d6a617553733d33b1
om/android/dumprendertree2/LayoutTestsExecutor.java
4a9e3a6dc3bfbc885730cfec7b2f1c147d179cc1 30-Jul-2010 Maksymilian Osowski <maxosowski@google.com> Added detecting unimplemented layoutTestController functions and green squares.

Change-Id: Iaa7bbdb83a074a874a210f7975c6c3b731e0a924
om/android/dumprendertree2/Summarizer.java
dd4bff62b54033bedc254f517397ae8f954d0dc9 30-Jul-2010 Maksymilian Osowski <maxosowski@google.com> First batch of layoutTestController functions + some fixes and tweaks.

Change-Id: I9dae192c498d8e19fd75861a1a6cf1f079ad9c6f
om/android/dumprendertree2/AbstractResult.java
om/android/dumprendertree2/AdditionalTextOutput.java
om/android/dumprendertree2/LayoutTestController.java
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/TextResult.java
42bee9cf7684623124470535d663537f70a4a441 28-Jul-2010 Maksymilian Osowski <maxosowski@google.com> Time-out mechanism and state machine.

Change-Id: I47c4342c02ea152b1503b9d5268900df3b40683c
om/android/dumprendertree2/LayoutTestsExecutor.java
6d0dae6a6534a01ee4c58d4f4ee1bf115c82319c 27-Jul-2010 Maksymilian Osowski <maxosowski@google.com> Upgraded DRT2 to generate nice HTML summaries of the tests.

Change-Id: Ibe4ee3af30fe20aeab2f3fed9c4c5693c9a0f268
om/android/dumprendertree2/AbstractResult.java
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/TextResult.java
om/android/dumprendertree2/VisualDiffUtils.java
5f0ccd76a88586ce85c17cb4db058934e693a4fc 23-Jul-2010 Maksymilian Osowski <maxosowski@google.com> 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
om/android/dumprendertree2/AbstractResult.java
om/android/dumprendertree2/LayoutTest.java
om/android/dumprendertree2/LayoutTestsExecuter.java
om/android/dumprendertree2/LayoutTestsExecutor.java
om/android/dumprendertree2/LayoutTestsRunner.java
om/android/dumprendertree2/LayoutTestsRunnerThread.java
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/TestsListActivity.java
om/android/dumprendertree2/TestsListPreloaderThread.java
om/android/dumprendertree2/TextResult.java
om/android/dumprendertree2/ui/DirListActivity.java
7ddc0b7a72aa66d699fecce3d855a6c70f844647 22-Jul-2010 Maksymilian Osowski <maxosowski@google.com> 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
om/android/dumprendertree2/AbstractResult.java
om/android/dumprendertree2/LayoutTest.java
om/android/dumprendertree2/LayoutTestsExecuter.java
om/android/dumprendertree2/LayoutTestsRunnerThread.java
om/android/dumprendertree2/ManagerService.java
om/android/dumprendertree2/TextResult.java
650893b6761612c8ac763483bcdbdb6c6da3b10d 16-Jul-2010 Maksymilian Osowski <maxosowski@google.com> Build fix.

Change-Id: Ie2baa3d7d32fd382e8ecb2a811669f50aa26fdc9
om/android/dumprendertree2/LayoutTestsRunnerThread.java
4ee7f4b19489f4dc9b87e90d1e5c7742cfa7ebe0 16-Jul-2010 Maksymilian Osowski <maxosowski@google.com> 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
om/android/dumprendertree2/AbstractResult.java
om/android/dumprendertree2/FsUtils.java
om/android/dumprendertree2/LayoutTest.java
om/android/dumprendertree2/LayoutTestsRunner.java
om/android/dumprendertree2/LayoutTestsRunnerThread.java
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/TextResult.java
3c8ccb384513dd9bae0f98ac516ea36fbaa3173b 12-Jul-2010 Maksymilian Osowski <maxosowski@google.com> 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
om/android/dumprendertree2/AbstractResult.java
om/android/dumprendertree2/FileFilter.java
om/android/dumprendertree2/FsUtils.java
om/android/dumprendertree2/LayoutTest.java
om/android/dumprendertree2/LayoutTestsRunner.java
om/android/dumprendertree2/LayoutTestsRunnerThread.java
om/android/dumprendertree2/Summarizer.java
om/android/dumprendertree2/ui/DirListActivity.java
cc483d25b96dc2e394473e63cac29d06f1e96261 09-Jul-2010 Maksymilian Osowski <maxosowski@google.com> 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
om/android/dumprendertree2/ui/DirListActivity.java
177eb38ef571e8602547dfd9ba78376822e18e01 09-Jul-2010 Ben Murdoch <benm@google.com> Update the file filter in DumpRenderTree (and DumpRenderTree2) so that
we run tests in .xhtml files.

Change-Id: I2af0bd29acef5bafa9dee9292aafc18d77a84080
om/android/dumprendertree2/FileFilter.java
6fd7112e5cde88f805fcd2a62db5164edadb7dd6 07-Jul-2010 Maksymilian Osowski <maxosowski@google.com> 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
om/android/dumprendertree2/ui/DirListActivity.java
2910c123aade7619858fa972369cfae6c70e2087 06-Jul-2010 Maksymilian Osowski <maxosowski@google.com> 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
om/android/dumprendertree2/FileFilter.java