summaryrefslogtreecommitdiffstats
path: root/tests/DumpRenderTree2/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
* Remove WebViewClassic specific test codeJonathan Dixon2013-08-2524-5525/+0
| | | | | | | | | Bug: 10427705 These tested internals of WebViewClassic and will no longer build when that is removed Change-Id: I42af538dcb0343e9eff0b3fa85d7ff39f19c7c61
* Fix style for Geolocation mock mechanismSteve Block2012-05-292-10/+5
| | | | | | See I6d88d5dce5c2148812b191a5b452718bf0854aeb Change-Id: I1179319f066664393aa5f7324df89f8057a9e922
* Switch Geolocation DRT methods to control client-based mockSteve Block2012-05-222-47/+31
| | | | | | | | | | 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
* Seperate interface and implementation of 4 WebView classesJonathan Dixon2012-04-231-1/+1
| | | | | | | | | | | | | | | 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
* Minor clean-up in DeviceOrientation and DeviceMotionSteve Block2012-04-121-1/+1
| | | | | | | | | No functional change. See corresponding external/webkit change https://android-git.corp.google.com/g/#change,125700 Change-Id: I2693328cb058820587ac43dd3121818959efd2d0
* Refactor WebView to be a thin proxy classJonathan Dixon2012-03-022-10/+17
| | | | | | | | | | | | | | | | 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
* In DRT2, correctly handle the case of zero testsSteve Block2011-05-242-1/+19
| | | | | Bug: 3291382 Change-Id: I8cde1d8d78a57407c585b02ca8ba3f3f893a609b
* Update DRT2 to reflect WebKit code movementSteve Block2011-05-242-2/+2
| | | | | | See http://trac.webkit.org/changeset/74301 Change-Id: Ibe495cdc1f50f65db5663dbb63af9b9c2db050d0
* A few small cleanning-ups.Huahui Wu2011-01-241-1/+0
| | | | | | | | | | | | 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
* b/3369602 Using Math.round() to convert float coordinates to integers.Huahui Wu2011-01-211-2/+2
| | | | Change-Id: If4da01046c909667ce57a849569ae6b1acefb939
* Improve error handling (NPE in DRT2)Philippe Marti2011-01-131-8/+12
| | | | | Bug: 3284126 Change-Id: I7f8c6259f2932d2b1a10a2f9612866786d425da9
* pass layout test list using external fileGuang Zhu2010-11-233-14/+48
| | | | | | | | | 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
* Fix EventSender mouse events to correctly convert from screen coordinatesSteve Block2010-11-111-12/+13
| | | | | | This is required for LayoutTest fast/dom/Node/mutation-blur.html Change-Id: Ib82f897ab61ac3a8e8eacee8ec08f5242c43c736
* Refactor EventSenderImpl.MousePointSteve Block2010-11-111-23/+32
| | | | | | | | 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
* Include .php tests in DumpRenderTree2.Iain Merrick2010-11-091-2/+7
| | | | | | | | | | 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
* Fix DumpRenderTree2 to not attempt to read expected results over HTTPSSteve Block2010-11-093-6/+7
| | | | | | | This is required now that we have HTTPS tests in the triaged set of tests. Change-Id: I650518a4536ed903f637a44c0901b1e38bdc1a84
* Fix FsUtils.readDataFromUrl() to do the network request on a background threadSteve Block2010-11-094-39/+64
| | | | | | | | | | | 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
* Fix DumpRenderTree2 to correctly handle crashed testsSteve Block2010-10-182-9/+17
| | | | Change-Id: I894987d5b8f24ea31893aefe3cb6450c2736aa90
* Implement ↵Steve Block2010-10-141-5/+11
| | | | | | | | | | | 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
* Fix some bugs in DumpRenderTree2 when forming HTML diffsSteve Block2010-09-292-26/+37
| | | | Change-Id: Id98c1b7dde1961c2dab4214a36ad43916baf8011
* Use the empty string when expected text results are missing in DumpRenderTree2Steve Block2010-09-291-38/+10
| | | | Change-Id: I204583ecc9c6a8017349124d5813c693c7f00dc9
* Fix a bug with the expected result path in DumpRenderTree2Steve Block2010-09-292-2/+6
| | | | | | | If we fail to read from any of the possible expected result paths, we should not record an expected result path. Change-Id: Ica96b791c14a7755154be4ec9480be4d13f47a19
* Correctly implement EventSender mouse methods in DumpRenderTree2Steve Block2010-09-291-33/+13
| | | | | | | This is taken from a similar change to DumpRenderTree in https://android-git.corp.google.com/g/62449 Change-Id: I01418100ace1cf1ccfbb4fd28d72b99b54e0c140
* Trim empty lines when comparing text results in DumpRenderTree2Steve Block2010-09-291-10/+20
| | | | Change-Id: I94c9de8e6131f6b60456700e9d5a3b27c8c9d1c3
* Reduce the AppCache maximum size to a more reasonable value in DumpRenderTree2Steve Block2010-09-281-1/+3
| | | | | | | | | | | | | | | 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
* Provide a useful message in DumpRenderTree2 GUI when the host server is not ↵Steve Block2010-09-283-35/+54
| | | | | | | running Bug: 3010758 Change-Id: Ic62f60d96055e7ad1e475215ca384306cdfa859c
* Prevent DumpRenderTree2 from crashing when the host server is not runningSteve Block2010-09-283-29/+26
| | | | | Bug: 3010758 Change-Id: I04a01634544d223d225b264827d3cf18be74e1e0
* Bug 2372180: pass multi-touch events from browser to webkit.Huahui Wu2010-09-262-38/+76
| | | | | | | | | | | 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
* Fix DumpRenderTree2 to clear AppCache between testsSteve Block2010-09-221-1/+5
| | | | Change-Id: I1bafc79bbdbec0df7e4c8039488478a3bfcb3bd4
* Fix DumpRenderTree2 to wait for the WebCore thread to become readySteve Block2010-09-221-0/+7
| | | | | | | This is required to make sure that the WebCore thread's message handlers are ready to receive settings. Change-Id: I2c4df95e3b7409535b739ada957d93a7e6cd78d6
* Fix DumpRenderTree2 to make AbstractResult serializableSteve Block2010-09-221-1/+1
| | | | | | | This should have been doen as part of https://android-git.corp.google.com/g/#change,65283 Change-Id: I7a4681f98014ff5a7546a7346fc5523e01f62e19
* Fix DumpRenderTree2 to handle SSL errorsSteve Block2010-09-221-3/+12
| | | | | | This fixes http/tests/appcache/different-https-origin-resource-main.html Change-Id: I90e151c027b2d8c55ea82104c02e4a641b933024
* Merge "Fix DumpRenderTree2 to correctly add JavaScript interfaces to new ↵Steve Block2010-09-221-4/+19
|\ | | | | | | windows"
| * Fix DumpRenderTree2 to correctly add JavaScript interfaces to new windowsSteve Block2010-09-171-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Updated Summarizer to use SQLite DB.Maksymilian Osowski2010-09-175-30/+297
| | | | | | | | | | | | | | | | 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
* | Changed Summarizer to dump generated html code to file every few hundred ↵Maksymilian Osowski2010-09-171-3/+17
| | | | | | | | | | | | tests to avoid OOM errors. Change-Id: Id0917d45ffab2e47d67d17d629f342add5292d4e
* | Fix DumpRenderTree2 to serve HTTP tests on http://127.0.0.1:8000Steve Block2010-09-171-5/+3
| | | | | | | | | | | | | | | | | | | | 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
* | Updated ManagerService to call Summarizer.summarize() in a separate thread.Maksymilian Osowski2010-09-172-15/+30
|/ | | | | | This could potentially take a long time and result in ANR. Change-Id: Ib8b246e627e841217b68c955d92c97801e93d923
* Update DumpRenderTree2 to handle failing tests where no meaningful diff is ↵Steve Block2010-09-175-88/+161
| | | | | | | | | | | | | | | | | | | | | | 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
* Remove superfluous CSS from DumpRenderTree2's SummarizerSteve Block2010-09-171-9/+0
| | | | Change-Id: Ifc3764ec3cf7bd5ee412abaf45112eed22083456
* Implement WebViewClient.onReceivedHttpAuthRequest() in DumpRenderTree2Steve Block2010-09-171-0/+14
| | | | | | This fixes LayoutTest http/tests/appcache/auth.html. Change-Id: Idd9ead9c35341cc6a787d409ae2fe1bebef01d60
* Added setXSSAuditorEnabled() LayoutTestController function.Maksymilian Osowski2010-09-152-0/+16
| | | | Change-Id: I262e434573ee79c998f3ace5103c191fc0989bd2
* Merge "Changed Summarizer to add header before printing the path in ↵Maksymilian Osowski2010-09-141-2/+3
|\ | | | | | | summary.txt and details.html"
| * Changed Summarizer to add header before printing the path in summary.txt and ↵Maksymilian Osowski2010-09-141-2/+3
| | | | | | | | | | | | details.html Change-Id: I6413e1871ede077793d49b7d4732f90d0aea352f
* | Implement LayoutTestController.setAppCacheMaximumSize() for DumpRenderTree2Steve Block2010-09-141-0/+5
| | | | | | | | Change-Id: I7db486ccee1b9ebe84b89b98ba1a9b6e933d8f4e
* | Sort LayoutTestController methods alphabeticallySteve Block2010-09-142-79/+77
|/ | | | | | | This makes it easier to keep trac of which methods are implemented. No functional changes. Change-Id: I389ec5c0f7e77def6a479e387d1373b2b87f60c2
* Merge "Added overridePreference() layoutTestsController function."Maksymilian Osowski2010-09-132-0/+34
|\
| * Added overridePreference() layoutTestsController function.Maksymilian Osowski2010-09-132-0/+34
| | | | | | | | Change-Id: I99fbf7490c3c6eb063bf5ed0bbd2bced0f10a967
* | Update DumpRenderTree2 to only calculate the WebKit revision once per test runSteve Block2010-09-131-12/+10
|/ | | | | | This is obtained by a HTTP request to ThirdPartyProject.prop Change-Id: I34e310cf52fbcef24bb2a76e64aab5263b3052f1
* Remove superfluous FileFilter from DumpRenderTree2 DirListActivity.javaSteve Block2010-09-131-3/+0
| | | | Change-Id: I5e7d86fc4e05ac512ce1b2c55660d3b7f0de2750