summaryrefslogtreecommitdiff
path: root/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java
AgeCommit message (Collapse)Author
2013-08-25Remove WebViewClassic specific test codeJonathan Dixon
Bug: 10427705 These tested internals of WebViewClassic and will no longer build when that is removed Change-Id: I42af538dcb0343e9eff0b3fa85d7ff39f19c7c61
2012-05-29Fix style for Geolocation mock mechanismSteve Block
See I6d88d5dce5c2148812b191a5b452718bf0854aeb Change-Id: I1179319f066664393aa5f7324df89f8057a9e922
2012-05-22Switch Geolocation DRT methods to control client-based mockSteve Block
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
2012-04-19follow up file original policy changeGuang Zhu
enable the access for webview test Change-Id: Iebde5f3175eabf6e084dc1a2fe8b9dce280ebe7c
2012-04-12Minor clean-up in DeviceOrientation and DeviceMotionSteve Block
No functional change. See corresponding external/webkit change https://android-git.corp.google.com/g/#change,125700 Change-Id: I2693328cb058820587ac43dd3121818959efd2d0
2012-03-05Update to DumpRenderTree test harnessGuang Zhu
* removed some unused parameters * removed obsolete live website test harness * updated test class so that mean suite time for page cycler is emmitted via instrumentation status Change-Id: Iccb40f70a62a4ac9b8d5bceab9a6a715c611c573
2012-03-02Refactor WebView to be a thin proxy classJonathan Dixon
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
2012-02-14disable cpu_upload path workaroundGuang Zhu
Bug: 6008123 Change-Id: I9bee623827ad82185c77875ba317c2fd95f3fce8
2012-02-13Merge "fix build"Guang Zhu
2012-02-13fix buildGuang Zhu
remove extra import Change-Id: Ia3f764e87bc412ec65da82f7ffd5c21f508229c4
2012-02-13use hard coded WebViewProperties.gfxUseMinimalMemoryGuang Zhu
WebViewProperties is package private to browser Change-Id: I33e4b5f42c748bb6b8a1f730be140d6fd73059b5
2012-02-13Increase transfer queue size for DRTGuang Zhu
To maintain the baseline, DRT app should use the same transfer queue size as before. Bug: 6008123 Change-Id: I143ebf86b7798c1a6608af2e37d618ffa09d1062
2011-09-29Merge "Revert "log stack trace when finish() or onDestroy() is called""Guang Zhu
2011-09-28Revert "log stack trace when finish() or onDestroy() is called"Guang Zhu
We are already clear on why it's happening (phantom touches) so reverting this log. This reverts commit 0882eb05af02616cac5cfd82d9039c9e18d029d8
2011-09-27Use CPU upload path in DRTGuang Zhu
This makes it the same as default browser settings (for now). Otherwise the test may crash due to GPU OOM. This is to be a workaround only, and should be reverted after the bug is fixed. Bug: 5382134 Change-Id: I82a8dd83b69c8fceb657af9e32a2c5fa66ead2ce
2011-09-15log stack trace when finish() or onDestroy() is calledGuang Zhu
Some supurious calls to these functions when tests are still running are observed. Add more logging to see what's the caller. Change-Id: I9254c3639bcb8619be39bfbc6981fae5bf5e7efa
2011-07-28Revert "Disable Crankshaft in DRT for performance testing."Ben Murdoch
This reverts commit 3f9d171e80eea1162c051dd7200dd828fa258e09. Bug: 5052287 Change-Id: I8cd4a753e3a5a177934757a67880627c5c14e1af
2011-07-27Disable Crankshaft in DRT for performance testing.Ben Murdoch
Bug: 5052287 Change-Id: I9197f116d36c4cddd533f4aa07974f8c2d4678fe
2011-06-21LayoutTests with dumpAsText in the pathname should always dump as text.Ben Murdoch
See http://trac.webkit.org/changeset/79403 Change-Id: Ifd607b0c05804dd40a11072cf6862c36aaf448fe
2011-05-16change how test sets timeout for webkit dumpGuang Zhu
there are cases where webkit dump timed out, but a RuntimeException was not thrown (as it should have) after the timeout limit was reached. It's probably because the Looper message to invoke time out is obtained after the message to dump webview. This change adjusts the order of obtaining the message so hopefully it can make the timeout work for real. Change-Id: I4197699f5aad765c88dc81123d052e4c49d7c53d
2011-05-13even more loggingGuang Zhu
to track down test hang issue Change-Id: Ida686506275eb7c8c624c135f988feb9c43f86f5
2011-05-10add more logging into DRTGuang Zhu
Need the extra log to track down a test hang issue Change-Id: I1556f27b64296fcd39bc49ecbdd14347213bb9a2
2011-02-10Merge "Adds CookieManager methods to configure policy for cookies for file ↵Steve Block
scheme URLs"
2011-02-10Increase DRT timeout while waiting for WebView to dump as textSteve Block
This avoids problems with LayoutTests fast/frames/lots-of-iframes.html and fast/frames/lots-of-objects.html Bug: 3440578 Change-Id: Ic045141f986baf779ffc9eec804ba994ce0d0fbe
2011-01-24A few small cleanning-ups.Huahui Wu
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
2011-01-20DRT needs to clear cookies between tests.Ben Murdoch
Fixes failure seen in fast/cookies/local-file-can-set-cookies.html Change-Id: I08b8a0fcf87003fa4621dce08604bf42e70e4635
2011-01-14when test case times out, stop loading firstGuang Zhu
current timeout mechanism does a text dump and then move to next case. sometimes the text dump causes WebView to spin, and doing a stopLoading seems to resolve some of the cases. Change-Id: Iae08f9c93b2da3e805cacae43f80083fdf1bc5e1
2010-12-23bugfix: remove dump timeout message after dump is receivedGuang Zhu
Change-Id: I4061ccf77d47045a23065d27d6c9fa7452d085cc
2010-12-23Throw exception if webview dump times outGuang Zhu
if a webview dump times out, normally it's already in a bad state, throwing runtime execption will generate a crash on the test case and make the test move forward. Change-Id: Id7430700db6b6d90160d60d23debd250b1731789
2010-12-21Adds CookieManager methods to configure policy for cookies for file scheme URLsKristian Monsen
Needs https://android-git.corp.google.com/g/83647 in external/webkit, which disallows such cookies by default and provides configuration methods native side. Also updates TestShellActivity to allow such cookies, as they are required for the page cycler. Bug: 2944150 Change-Id: Idcc7e2812fab33e6a2a8766a2176bc3278e617da
2010-10-14Implement ↵Steve Block
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
2010-09-26Bug 2372180: pass multi-touch events from browser to webkit.Huahui Wu
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
2010-08-18Implement logic for new Geolocation delayed permission LayoutTestsSteve Block
Bug: 2914450 Change-Id: Ic0be3120e88efe9199f7719b9ccb1090baaabed6
2010-08-10Hook up mock for testing DeviceOrientation in DRTSteve Block
Change-Id: I99fbe328807428aa0d94893545bad0697ccb71d7
2010-08-05Initial work on browser incognito mode history feature.Elliott Slaughter
Change-Id: I050edf263d5c4ee0c0373692e267d7e19f47ba1b
2010-07-29resolved conflicts for merge of 8a76a908 to masterJean-Baptiste Queru
Change-Id: I8983d5c93dfa12d87449ac9f9a17a5aafdadef0a
2010-07-26Merge WebKit at r63859 : Implement layoutTestController.dumpAsText(boolean) ↵Ben Murdoch
in DumpRenderTree. See http://trac.webkit.org/changeset/63730 Change-Id: Iced14a89a2a71557529a7a5e32c9eab04b370742
2010-07-19Replaced /sdcard with Environment.getExternalStorageDirectory()Christian Mehlmauer
Change-Id: I9a7413f81090b69c82ca6b1e585f5e379b19e60c
2010-07-14add a paramter to control page-load-termination-on-JS-errorGuang Zhu
A previous change terminates page load if there's certain JS errors; the intention was to speed up layout tests such that page accessing non-existent test controllers/methods will get immediate termination instead of waiting on timeout. However this causes problem for page cycler because it may interrupt the test run too early. Also there was a bug on bracketing on the termination conditions (operator precendence issue). Change-Id: I2f19e48fa0061286fddf0f7cbb4953d7f7d88f76
2010-06-23Tweak fix for setXSSAuditorEnabled in LayoutTestController.Elliott Slaughter
Change-Id: Iba9b67da8628e3880e8f6b18d2dc51337b9c58fb
2010-06-22Add setXSSAuditorEnabled support in WebSettings.Elliott Slaughter
Change-Id: I6f74589b28960b91093acf8219a55e98f93b1881
2010-06-21Add dumpChildFramesAsText function support in LayoutTestController.Shimeng (Simon) Wang
Change-Id: I8af0bbca1d2166a25486d5a12fb6a985bbe264ef
2010-06-07DumpRenderTree fix.Ben Murdoch
Remove the overridden WebChromeClient.onProgressChanged function. We don't seem to need it and it appears to be the cause of b/2681943. Without that code we need to tweak the terminating conditions in onPageFinished and notifyDone. Change-Id: If2958007d92f2da92ae0de19eb07a0b38258fae0
2010-06-03DumpRenderTree changesBen Murdoch
- Make the layout test counter work when you run tests through the GUI - Use the progress bar in the applications title bar to display test progress Change-Id: I3d4b778470e812b80b7a64297b3a64ba6f9d083c
2010-05-27Fixes an error when displaying the current layout test index.Kristian Monsen
This fixes a bug in commit https://android-git.corp.google.com/g/#change,52518. Updated index to be zero based when passed around and off by one error on resume. Note that previous commit changes how DumpRenderTree dumps titles. This might affect the results of layout tests. Change-Id: I3d6989d71c336f90168e38c994dd36743bda365c
2010-05-25Display index and count when running layout testsKristian Monsen
Change-Id: I8b925784aead96a1be6344d654d0376dee2047eb
2010-05-03improvements on layout testGuang Zhu
* reduce timeout limit from 30s to 15s * terminate a test case under some condition on uncaught JS exception * minor fixes Change-Id: Iabc8f214544d2c8c14139756abc049870023fea5
2010-04-15Reset the webview settings after each test to ensure that each new test startsBen Murdoch
in a consistent, known state. This fixes a bug for example with the appcache tests, where disable.html turns off appcache support but it is never restored causing future tests to fail. Change-Id: I71e2607d29ec6358cfdc6ab37a6861c161e84cd8
2010-04-01Cherry pick from master.Steve Block
Fixes DumpRenderTree to re-use HTTP authentication credentials This is required for layout test http/tests/appcache/auth.html Bug: 2098423 Change-Id: Ic9531e3c23a2fa9ebfab70cde3172550f572a404
2010-03-22Implements layoutTestController.overridePreference()Steve Block
This change provides the infrastructure for layoutTestController.overridePreference(). Currently, we only provide an implementation for the preference 'WebKitOfflineWebApplicationCacheEnabled', which is required by the layout test http/tests/appcache/disabled.html. Change-Id: I8552f2f4e23b982db2d067ffa20c052e56d8fb7f