87 Commits

Author SHA1 Message Date
Ben Murdoch
fc4a69e9c1 When a window is closed, destroy the WebView properly so that WebCore is informed of it's destruction.
Change-Id: I00002f53ec52c6056df4d7ddeec7cf0957423bd6
2010-02-04 16:54:06 +00:00
Ben Murdoch
ecbc65cf8f Add support for sending touch events in DRT.
As part of this, make it possible for DRT to configure the timeout threshold between sending touch events to WebCore as the Layout Tests only synthesize single events, not a stream. Because of this, they often get dropped by the WebView for coming too quickly.

Skip the multi touch test as we don't support multi touch in the Browser.

Change-Id: I7b9830f43181fea33206825b49ef2e294269b4dd
2010-02-03 16:57:46 +00:00
Romain Guy
980a938c1c Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
2010-01-08 15:11:38 -08:00
Guang Zhu
5dc4f21ab6 Add support for extracting render time and image in page cycler 2009-12-02 17:55:18 -08:00
Ben Murdoch
7caaeecce1 Rename WebChromeClient.addMessageToConsole to WebChromeClient.onConsoleMessage.
BUG=b/2271636

Change-Id: Ia9bed430c624c4c3745904c98fb2e27632d929f9
2009-11-20 10:14:46 +00:00
Guang Zhu
ea48cd6dd4 Use a diff that ignores trailing whitespaces to get by some layout test failures. 2009-11-12 10:18:14 -08:00
Guang Zhu
bfa68abc95 layout test rebase, bug fix
* rebase layout test based on newly enabled http tests
* fix a bug in initializing parameters (should happen before super.onCreate)
2009-11-05 15:28:15 -08:00
Guang Zhu
2e90d6404a Remove the activity restart between urls. 2009-10-27 15:21:51 -07:00
Guang Zhu
9e58e6427c Enable some tests that requires local http server 2009-10-15 11:01:30 -07:00
Guang Zhu
56a3693217 Added code style fix that actually did not get submitted in 2nd patch of previous change. 2009-09-28 09:53:48 -07:00
Guang Zhu
7216047ac3 Add checks for double-dumping on webkit data.
Also some logs seem to suggest that in rare occations, a webkit dump after timeout has occured actually never hears any response back from webkit, thus causing the test app to wait forever, because the request webkit data mechanism is not protected by a timeout watchdog. So adding a explicit log print before calling webkit dump for monitoring in future test runs.
2009-09-28 09:20:20 -07:00
Ben Murdoch
2eea5f3dc8 Change the way DRT determines if it is ready to continue to the next test when running in automated mode.
Change-Id: I4d8f6b447dd3c7d7b4baa449a5bacebe4ba59d25
(cherry picked from commit 15b503e46315a56467c0b40d411b457eda7ee334)
2009-09-24 12:48:59 +01:00
Ben Murdoch
977f7691e5 Only move to the next test in DRT after the test has completed AND the page has finished loading.
Change-Id: I157da58bb99f7bf0fcd00073d078c26c7df201ed
2009-09-17 11:57:47 +01:00
Android (Google) Code Review
44ca7090ac Merge change 25356 into eclair
* changes:
  Filter out failing cases for future investigation.
2009-09-16 18:28:31 -04:00
Guang Zhu
01033abd7a Filter out failing cases for future investigation. 2009-09-16 15:04:38 -07:00
Guang Zhu
6bf18bae60 Refactor logic for starting forward servers and http test cases hacking, so that they can be shared between automated test mode and UI launch mode. 2009-09-15 23:47:20 -07:00
Andrei Popescu
4950b2b695 Fix appcache layout test that was timing out due to race condition in WebView::addJavascriptInterface. 2009-09-03 22:31:55 +01:00
Guang Zhu
b937ba138f Read forward address from file for DRT, fallback to default address
modified:   tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java
2009-09-02 14:03:37 -07:00
Guang Zhu
f3d924ca0d Set a default dump type for DRT as a workaround for indeterministic order in receiving dumpAsText and onPageFinish callback. 2009-09-01 11:57:16 -07:00
Guang Zhu
4a40a039c0 At leaset log the layout test timeouts 2009-09-01 10:23:24 -07:00
Ben Murdoch
d497d87650 Pass the estimated size of new HTML 5 databases to the ChromeClient so it can use that amount to figure an initial default quota.
Change-Id:Ic9372b0c86472b42ba5d0b964aaff1e2bbfe3efa
2009-08-26 12:39:55 +01:00
Guang Zhu
8e3a84cd2e Filter out worker tests from layout suite because merely disabling worker in webview settings no longer works. 2009-08-24 21:01:25 -07:00
Steve Block
dad347c8b8 Adds the ability to set Geolocation permissions from DumpRenderTree on Android. 2009-08-19 22:52:25 +01:00
Steve Block
a8dfe24da0 Adds the ability to configure the mock Geolocation service from DumpRenderTree. 2009-08-14 16:43:28 +01:00
Feng Qian
2890920eba Set V8 flag --expose_gc in TestShellActivity.
Page cycler calls window.gc between pages, JSC exposes window.gc by default, and V8 requires the flag to be set.
2009-08-13 14:54:56 -07:00
Guang Zhu
b028f92e75 Disable Worker in DumpRenderTree until the issue with dumpAsText is fixed. 2009-08-11 14:27:32 -07:00
Ben Murdoch
d4f09592f7 Enable Workers in Dump Render Tree. 2009-08-06 12:59:35 +01:00
Android (Google) Code Review
8031361ad5 am 7a07f179: Merge change 20006 into donut
Merge commit '7a07f1797684597a3b932aa0b365049d3e7d6ff3'

* commit '7a07f1797684597a3b932aa0b365049d3e7d6ff3':
  After each test, the WebView cache should be cleared, otherwise the cache data will pile up.
2009-08-04 14:31:12 -07:00
Guang Zhu
c189b2ddd4 After each test, the WebView cache should be cleared, otherwise the cache data will pile up. 2009-08-04 14:04:06 -07:00
Guang Zhu
d186ef12b3 am 8c5b3e2f: Change browser reliability test to start a new activity for each url
Merge commit '8c5b3e2fa60e29e45c97bf83b2aa8c6505987f82'

* commit '8c5b3e2fa60e29e45c97bf83b2aa8c6505987f82':
  Change browser reliability test to start a new activity for each url
2009-08-03 15:05:35 -07:00
Guang Zhu
8c5b3e2fa6 Change browser reliability test to start a new activity for each url 2009-08-03 12:18:40 -07:00
Andrei Popescu
59e2ad93bf Wire in the AppCache out-of-space callback 2009-07-29 11:07:44 +01:00
Guang Zhu
f4bf552b5a checkin for port forwarding through adb, gets access to external network via USB, this also adds in related plumbing for running the http hosted tests, but will not enable those tests yet. 2009-07-27 12:59:02 -07:00
Andrei Popescu
bc4aa5f693 Fix master build 2009-07-22 09:13:29 +01:00
Guang Zhu
f56e1a1ed4 Call WebView#freeMemory before collecting memory information 2009-07-20 11:16:28 -07:00
Android (Google) Code Review
b933dc7f47 am 22eef5da: Merge change 7753 into donut
Merge commit '22eef5da75604cd14c0f87332cf957c9948a6e33'

* commit '22eef5da75604cd14c0f87332cf957c9948a6e33':
  Add a delay before collecting memory information
2009-07-19 20:20:03 -07:00
Guang Zhu
1f6c72bff6 Add a delay before collecting memory information
Hopefully this gives enough time for more memory recycling. Because it is observed that several seconds after a suite is run, the memory usage could drop by 1-2M.
2009-07-17 14:22:24 -07:00
Feng Qian
0aeed6af6e Free memory on low memory condition.
This allows WebView to release cached resources and continue running.
2009-07-16 20:57:46 -07:00
Android (Google) Code Review
1a3ef96b34 am e57ff0e1: Merge change 6652 into donut
Merge commit 'e57ff0e1db46559699e4fadfbe9abe67ef9472fe'

* commit 'e57ff0e1db46559699e4fadfbe9abe67ef9472fe':
  Call clearCache on WebView before collecting memory information.
2009-07-09 13:47:07 -07:00
Guang Zhu
889181d7fd Call clearCache on WebView before collecting memory information. 2009-07-09 12:55:15 -07:00
Android (Google) Code Review
6a840aacc4 am b7d7d5f6: Merge change 5806 into donut
Merge commit 'b7d7d5f6380e1b7c2b1754be05b0113b91ce01c9'

* commit 'b7d7d5f6380e1b7c2b1754be05b0113b91ce01c9':
  Use additional functions to collect more memory information data points.
2009-07-01 16:01:58 -07:00
Guang Zhu
c899d0c7d9 resolved conflicts for merge of 53e083c9 to master 2009-07-01 11:03:25 -07:00
Guang Zhu
40656be658 Use additional functions to collect more memory information data points. 2009-06-30 11:56:13 -07:00
Guang Zhu
f92bd42a70 Added a new operation mode where user can launch all tests under a folder from test app ui. 2009-06-29 14:45:50 -07:00
Ben Murdoch
e6f3e45dc4 Enable storage tests in Dump Render Tree so we can run Database and DOM Storage layout tests. 2009-06-22 16:40:29 +01:00
Android (Google) Code Review
bf521a0f7d am 4a60b887: Merge change 3761 into donut
Merge commit '4a60b887d4b9744126e62b094a9597ee8e924640'

* commit '4a60b887d4b9744126e62b094a9597ee8e924640':
  Added support to record page load time for each url.
2009-06-10 15:33:08 -07:00
Guang Zhu
2ab6f1fe0b Added support to record page load time for each url. 2009-06-10 13:37:03 -07:00
Guang Zhu
c71f084ff9 am 7757656a: Changed logic to handle timeout pages.
Merge commit '7757656a11ba7050274c337fd2dc2f18f9e7806f'

* commit '7757656a11ba7050274c337fd2dc2f18f9e7806f':
  Changed logic to handle timeout pages.
2009-06-07 13:47:45 -07:00
Guang Zhu
7757656a11 Changed logic to handle timeout pages. 2009-06-07 13:12:20 -07:00
Android (Google) Code Review
55db8aec8f am 4ee0a751: Merge change 3095 into donut
Merge commit '4ee0a751682e713d3d6ca97fa1271df12d352ee0'

* commit '4ee0a751682e713d3d6ca97fa1271df12d352ee0':
  Skip empty lines in test url list.
2009-06-03 17:02:49 -07:00