231 Commits

Author SHA1 Message Date
Guang Zhu
c1635bf14e call clearCache from UI thread
according to the warning message, WebView#clearCache now should be
invoked from UI thread only

Change-Id: I089d9dcdcccc353b802a628c539e62f001d361f8
2011-05-18 10:14:44 -07:00
Guang Zhu
97499df874 change how test sets timeout for webkit dump
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-16 11:06:53 -07:00
Guang Zhu
e8e335a500 even more logging
to track down test hang issue

Change-Id: Ida686506275eb7c8c624c135f988feb9c43f86f5
2011-05-13 10:30:17 -07:00
Guang Zhu
49171bc479 add more logging into DRT
Need the extra log to track down a test hang issue

Change-Id: I1556f27b64296fcd39bc49ecbdd14347213bb9a2
2011-05-10 19:08:08 -07:00
Guang Zhu
f6d1b3f125 Make DRT pull data over network
command format:

adb shell am instrument -w -e class \
    com.android.dumprendertree.LoadTestsAutoTest#runPageCyclerTest \
    -e suite moz \
    -e iteration 1 \
    -e forward android-browser-test:80/page_cycler/ \
    com.android.dumprendertree/.LayoutTestsAutoRunner

Change-Id: Ib4e9db28953f6be155517bb4b139e4477305c2c2
2011-04-26 17:55:27 -07:00
Steve Block
6dfef1b86d Merge "Adds CookieManager methods to configure policy for cookies for file scheme URLs" 2011-02-10 13:59:09 -08:00
Steve Block
fb40a64d80 Merge "Increase DRT timeout while waiting for WebView to dump as text" 2011-02-10 12:13:27 -08:00
Steve Block
8e8cf732d1 Increase DRT timeout while waiting for WebView to dump as text
This avoids problems with LayoutTests fast/frames/lots-of-iframes.html and fast/frames/lots-of-objects.html

Bug: 3440578
Change-Id: Ic045141f986baf779ffc9eec804ba994ce0d0fbe
2011-02-10 11:11:22 -08:00
Steve Block
c1f81466f7 Remove LayoutTest http/tests/xmlhttprequest/simple-cross-origin-progress-events.html from skipped list
This test no longer crashes, so we should no longer skip it.

Bug: 2929261
Change-Id: I808926c3dce2e9a01d6c190a18187d9ca965b662
2011-02-09 16:30:12 -08:00
Guang Zhu
5794f23022 change the way test app waits for gc
gcSoftReferences methods are being obsoleted, so we need a different
approach to wait for gc: create a CountDownLatch and release it in
a dummy object's finalizer, call gc and await on the CDL.

Change-Id: I54d9e6bc05540b16ee1f3959ace9008041ac4903
2011-01-25 17:25:59 -08:00
Huahui Wu
f93246923f 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
2011-01-24 12:07:37 -08:00
Huahui Wu
17d25c564d Merge "b/3369602 Using Math.round() to convert float coordinates to integers." into honeycomb 2011-01-21 13:03:49 -08:00
Huahui Wu
a586b7baaf b/3369602 Using Math.round() to convert float coordinates to integers.
Change-Id: If4da01046c909667ce57a849569ae6b1acefb939
2011-01-21 10:37:09 -08:00
Ben Murdoch
7e73ce90d6 DRT needs to clear cookies between tests.
Fixes failure seen in fast/cookies/local-file-can-set-cookies.html

Change-Id: I08b8a0fcf87003fa4621dce08604bf42e70e4635
2011-01-20 11:22:10 +00:00
Ben Murdoch
0b5bd35f60 Add case-sensitive tests to DRT ignore list.
/mnt/sdcard forces lowercase, but these tests verify
the capitialization of the filename. We will never pass them
with DRT1 while storing tests on external storage. DRT2 will
fix this as it does not store any files locally (hence DRT2's
ignore list is unchanged).

Change-Id: Ia062ad77ad312a34db61d606a1d1382ac1d7b70e
2011-01-20 10:52:24 +00:00
Guang Zhu
3974be6163 further remove calls to runFinalization
apparently these calls may deadlock as well...

Change-Id: I83132aa50f4e49a170be2b960f6c3236f14745c9
2011-01-18 18:04:34 -08:00
Guang Zhu
44060f4d76 Merge "when test case times out, stop loading first" into honeycomb 2011-01-14 16:26:30 -08:00
Guang Zhu
4ce6e7c433 when test case times out, stop loading first
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
2011-01-14 16:17:20 -08:00
Guang Zhu
e88255df39 remove runFinalizationSync calls
according to csharpiro, these calls are unnecessary and may
lead to problems.

bug: 3350034

Change-Id: I25a80e4e7610901e75622334bf97d6c1bed17cbd
2011-01-13 15:37:43 -08:00
Guang Zhu
7171622320 change webkit test data path
path changed from "/sdcard/android/" to "/sdcard/webkit/". the
old path clashes with "/sdcard/Android/" and has some odd issues
under FUSE

Change-Id: I57102dca99612bdd7b4d1f196e43436cd1276281
2011-01-12 22:57:41 -08:00
Guang Zhu
f2f7f56e8b bugfix: remove dump timeout message after dump is received
Change-Id: I4061ccf77d47045a23065d27d6c9fa7452d085cc
2010-12-23 16:25:47 -08:00
Guang Zhu
f37a574f1c Throw exception if webview dump times out
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-23 14:37:31 -08:00
Kristian Monsen
16d041cc9f Adds CookieManager methods to configure policy for cookies for file scheme URLs
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-12-21 18:19:24 +00:00
Steve Block
6a6146958c Add LayoutTest http/tests/appcache/foreign-fallback.html to the DRT ignore list
Bug: 3285647
Change-Id: I3acafe4690a4d2c7fae74bbd01a5f487867f2fc6
2010-12-16 13:30:52 +00:00
Guang Zhu
e81d1f9012 re-enable HW acceleration in DRT
Change-Id: I281f7fd94624611797fceb162d6a5e12b6b08d20
2010-12-07 18:00:18 -08:00
Guang Zhu
b05deade05 disable HW acceleration
currently DRT will block upon launch if HW acceleration is enabled. see
b/3255765.

Change-Id: I19f2e6a6673a0284fd4916370b06aa80e04df4d2
2010-12-06 11:34:14 -08:00
Guang Zhu
0006952a8d change how assets are copied out of apk
Currently test code use getActivity to get DRT's assets. However
the side effect is that this will actually launch the activity.
This is not affecting any tests yet, however there are cleaner
ways to do this. The instrumentation framework provides a
getTargetContext call which will give access to app under test's
context, and therefore granting access to its assets.

Change-Id: I0560b0fa5681f80bcb9296beec3fd0549c40cc8e
2010-12-06 11:24:01 -08:00
Guang Zhu
c54476b4a9 enabled hardware acceleration for DRT
Change-Id: I1357c734288829b42cebe88f147f5b8a03ac6f74
2010-12-01 11:16:24 -08:00
Steve Block
a662c8c92c Skip LayoutTest http/tests/cookies/third-party-cookie-relaxing.html
Bug: 3227269
Change-Id: Iae94fe1c8b0ccb52463733c676569c0b9c887963
2010-11-24 14:54:04 +00:00
Kristian Monsen
221b1d6df7 Removing some js script tests from the skip list
Change-Id: I588c6d3c246d0233f7dfffa7920d44c14556c339
2010-11-17 17:44:26 +00:00
Steve Block
6a108501b1 Remove the failing expectation for fast/encoding/char-encoding.html for DRT
This test now passes with both HTTP stacks.

Bug: 3047156
Change-Id: Ibb723d3e1b8bf45c23abf5ebd7a9789a5c7cc6de
2010-11-11 16:54:05 +00:00
Steve Block
8d1c8048b0 Add fast/js/regexp-overflow.html to DumpRenderTree skip list
This fails beacsue the result of the test is so large that DRT suffers
OOM when reading the result. This will be fixed when we switch to
DRT2. Skipping for now to keep the crashes at zero.

Also fixes bug numbers for other skipped tests

Bug: 2697589
Change-Id: I897ff1f0a2941d305af5fb1c8de8f6690365fb9e
2010-10-19 11:10:51 +01:00
Steve Block
5f37cc4308 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
2010-10-14 12:43:44 +01:00
Steve Block
49aa65aa46 Reclassify failing multi-touch tests in DumpRenderTree ignore list
Change-Id: I95c94354a4d4f38583251a2d5d1a7ab4cb554e00
2010-09-29 18:51:41 +01:00
Iain Merrick
5f421a5678 Update DumpRenderTree test expectations for fast/encoding
New layout tests added in https://android-git.corp.google.com/g/70926

Change-Id: I3c12f44d2c283e8b1da1c10975d6e4dd567889f8
2010-09-29 16:30:10 +01:00
Guang Zhu
c18ac6ef84 Merge "skip 2d.drawImage.broken.html layout test" 2010-09-27 12:22:17 -07:00
Guang Zhu
4022d94658 skip 2d.drawImage.broken.html layout test
this test currently blocks on some type of test devices

Change-Id: Ifacc520c441cf4142b5e6d28bde2b86728b5fc35
2010-09-27 12:20:25 -07:00
Huahui Wu
41865f4b0c 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
2010-09-26 16:26:38 -07:00
Guang Zhu
70795b3add temporarily skip simple-cross-origin-progress-events.html for now
this test crashes on Passion, and runs webcore into a bad state on
Stingray. To make sure it does not block the entire layout test
suite on Stingray, skipping this test for now.
http://b/2982500

Change-Id: Id4875112705df9b2c5b003a2c32c292765ab17fc
2010-09-07 20:58:24 -07:00
Guang Zhu
ba4da86add am fe8eaf3b: am 1c045003: Merge "add mouse up/down/click support in DumpRenderTree" into gingerbread
Merge commit 'fe8eaf3b5dc52cecaf15ccabe9a8717cce701f6c'

* commit 'fe8eaf3b5dc52cecaf15ccabe9a8717cce701f6c':
  add mouse up/down/click support in DumpRenderTree
2010-08-26 13:15:29 -07:00
Guang Zhu
fe8eaf3b5d am 1c045003: Merge "add mouse up/down/click support in DumpRenderTree" into gingerbread
Merge commit '1c045003788725b40af5489149ac0fc8bfebb1ea' into gingerbread-plus-aosp

* commit '1c045003788725b40af5489149ac0fc8bfebb1ea':
  add mouse up/down/click support in DumpRenderTree
2010-08-26 10:52:27 -07:00
Guang Zhu
b5c4caa078 add mouse up/down/click support in DumpRenderTree
use touchStart/End when mouseDown/Up is called in current
EventSender implmentation.

Change-Id: Iff3e7f45b6a7170d9be1c7ec9b12a74a74737732
2010-08-25 17:54:43 -07:00
Guang Zhu
c4f44cb995 Merge "change the DRT to use Light theme" 2010-08-24 13:06:50 -07:00
Guang Zhu
ddf4f32b53 change the DRT to use Light theme
works around the Holo theme crash.

Change-Id: I4e920629981bf3df0987bc4f65dc63644b3670b2
2010-08-24 13:05:36 -07:00
Iain Merrick
558f7dcf05 Merge WebKit at r65615 : Ignore http/tests/appcache/origin-quota.html
This patch modifies the old-style hard-coded ignore list. The new-style
text file (in external/webkit/LayoutTests/platform/android) has been
modified separately, as part of the normal WebKit merge process.

Test added in http://trac.webkit.org/changeset/64613
Needs clearAllApplicationCaches() callback. See http://b/issue?id=2944196

Change-Id: I31655c363c93eada40d01123e9c14c0d03bdba7b
2010-08-24 12:15: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
Ben Murdoch
e7611352ae Merge WebKit at r65072 : Update DRT ignore list.
This merge introduces two new Geolocation tests that to pass we need
a new LayoutTestController function. We ignore those tests until this
function is added - see b/2914450

Change-Id: If13dda2caa467b771d4a21d60463319019cc7679
2010-08-13 13:18:41 +01:00
Steve Block
68dede3d66 Hook up mock for testing DeviceOrientation in DRT
Change-Id: I99fbe328807428aa0d94893545bad0697ccb71d7
2010-08-10 12:00:35 +01:00
Steve Block
6618e69857 Merge WebKit at r64523 : Add new LayoutTest fast/dom/DeviceOrientation/basic-operation.html to skipped list
Change-Id: I42afa8d430349a0d8aa7349563c90043d08452e1
2010-08-09 15:39:50 +01:00
Elliott Slaughter
f21d2e3059 Initial work on browser incognito mode history feature.
Change-Id: I050edf263d5c4ee0c0373692e267d7e19f47ba1b
2010-08-05 16:22:33 -07:00