Steve Block
f0c289e24c
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
2010-09-17 13:21:51 +01:00
Steve Block
8a6def0247
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
2010-09-17 13:21:22 +01:00
Maksymilian Osowski
44ce3242a9
Merge "Changed run_layout_tests.py and run_apache2.py to accept alternative tests root dir."
2010-09-17 05:04:19 -07:00
Steve Block
c0847c55ea
Remove superfluous CSS from DumpRenderTree2's Summarizer
...
Change-Id: Ifc3764ec3cf7bd5ee412abaf45112eed22083456
2010-09-17 12:30:21 +01:00
Steve Block
2c38de8436
Implement WebViewClient.onReceivedHttpAuthRequest() in DumpRenderTree2
...
This fixes LayoutTest http/tests/appcache/auth.html.
Change-Id: Idd9ead9c35341cc6a787d409ae2fe1bebef01d60
2010-09-17 12:30:21 +01:00
Maksymilian Osowski
78fbc54c18
Changed run_layout_tests.py and run_apache2.py to accept alternative tests root dir.
...
Change-Id: I6d0537b6712ca6f68ec004e5e8bf95b97b9017fc
2010-09-17 12:18:56 +01:00
Romain Guy
a977120681
Merge "Add support for drawLines(), with anti-aliasing"
2010-09-16 20:51:45 -07:00
Romain Guy
759ea80dca
Add support for drawLines(), with anti-aliasing
...
Change-Id: I16c0593c5671490909dec13a85df601e1428a1a6
2010-09-16 20:49:46 -07:00
Steve Block
44c7197a8b
Merge "Make DumpRenderTree2 appear in the 'Dev Tools' application"
2010-09-16 04:59:28 -07:00
Romain Guy
857d7cf80e
Merge "Fix 9patch rendering."
2010-09-15 18:15:10 -07:00
Romain Guy
6820ac8b14
Fix 9patch rendering.
...
Change-Id: Ic4c18ff483cca95fbabcb10843f7714efe488adb
2010-09-15 18:11:50 -07:00
Steve Block
2622f30284
Make DumpRenderTree2 appear in the 'Dev Tools' application
...
Bug: 2999543
Change-Id: I1791c7b1a82f23ff742a68f365d7092c36804efd
2010-09-15 23:08:37 +01:00
Brian Carlstrom
7352c8bb42
am 0535d857: am 94126238: Merge "Remove SSLContextImpl.engineInit(..) that takes persistent cache arguments" into gingerbread
...
Merge commit '0535d8577fb2a3687428f462c591ae3220e1f773'
* commit '0535d8577fb2a3687428f462c591ae3220e1f773':
Remove SSLContextImpl.engineInit(..) that takes persistent cache arguments
2010-09-15 11:36:58 -07:00
Maksymilian Osowski
d96c5e0cb3
Added setXSSAuditorEnabled() LayoutTestController function.
...
Change-Id: I262e434573ee79c998f3ace5103c191fc0989bd2
2010-09-15 11:27:49 +01:00
Brian Carlstrom
0535d8577f
am 94126238: Merge "Remove SSLContextImpl.engineInit(..) that takes persistent cache arguments" into gingerbread
...
Merge commit '94126238427f04ecb86fe6832113afb2f04e89b5' into gingerbread-plus-aosp
* commit '94126238427f04ecb86fe6832113afb2f04e89b5':
Remove SSLContextImpl.engineInit(..) that takes persistent cache arguments
2010-09-14 11:17:22 -07:00
Maksymilian Osowski
023606abb6
Merge "Changed Summarizer to add header before printing the path in summary.txt and details.html"
2010-09-14 10:37:46 -07:00
Steve Block
8a2e55239a
Merge "Implement LayoutTestController.setAppCacheMaximumSize() for DumpRenderTree2"
2010-09-14 10:21:30 -07:00
Maksymilian Osowski
75aa0d3828
Changed Summarizer to add header before printing the path in summary.txt and details.html
...
Change-Id: I6413e1871ede077793d49b7d4732f90d0aea352f
2010-09-14 18:13:07 +01:00
Maksymilian Osowski
ac0b599fa7
Merge "Made the run_layout_tests.py script restart the apache2 server before it starts."
2010-09-14 10:04:23 -07:00
Steve Block
757dcbb803
Implement LayoutTestController.setAppCacheMaximumSize() for DumpRenderTree2
...
Change-Id: I7db486ccee1b9ebe84b89b98ba1a9b6e933d8f4e
2010-09-14 16:59:17 +01:00
Steve Block
8a0db6f5ff
Merge "Sort LayoutTestController methods alphabetically"
2010-09-14 08:25:26 -07:00
Maksymilian Osowski
2e36737669
Made the run_layout_tests.py script restart the apache2 server before it starts.
...
Change-Id: Ic6b4e63d20a95daddd3dfde32d4168b235d7dd91
2010-09-14 16:09:11 +01:00
Steve Block
5de8b998f5
Sort LayoutTestController methods alphabetically
...
This makes it easier to keep trac of which methods are implemented.
No functional changes.
Change-Id: I389ec5c0f7e77def6a479e387d1373b2b87f60c2
2010-09-14 14:44:29 +01:00
Steve Block
540aada302
Merge "Add to DumpRenderTree2 the option to suppress showing results in the host browser"
2010-09-14 06:27:08 -07:00
Steve Block
d210fd26b2
Add to DumpRenderTree2 the option to suppress showing results in the host browser
...
Change-Id: I78841ab5fad4e3ee0d5fe559489bf8cfd81abd23
2010-09-14 14:24:59 +01:00
Maksymilian Osowski
59e46ef785
Merge "Gets rid of flickering when executing tests."
2010-09-14 06:24:08 -07:00
Maksymilian Osowski
a7e2ca9a1c
Gets rid of flickering when executing tests.
...
Achieves it by setting Executor background to white.
Change-Id: Id07c743114c6cce9e9446439136a5efd72857dc4
2010-09-14 14:23:07 +01:00
Brian Carlstrom
2c42c8fbaf
Remove SSLContextImpl.engineInit(..) that takes persistent cache arguments
...
Bug: 2672817
Change-Id: If5f10fa16eaf5676a0c1540463759cd4e0e837de
2010-09-14 00:11:14 -07:00
Romain Guy
8411f336c7
Fix rendering issue with layers intersecting the clip rect.
...
Change-Id: Icbe35194fa219ef13ce639d33631235f8d7df3d7
2010-09-13 17:27:57 -07:00
Maksymilian Osowski
8e0835c08e
Merge "Added overridePreference() layoutTestsController function."
2010-09-13 10:54:28 -07:00
Maksymilian Osowski
5e689a7486
Added overridePreference() layoutTestsController function.
...
Change-Id: I99fbf7490c3c6eb063bf5ed0bbd2bced0f10a967
2010-09-13 18:49:59 +01:00
Steve Block
ab87db4ad8
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
2010-09-13 17:32:16 +01:00
Steve Block
c54df24fa9
Remove superfluous FileFilter from DumpRenderTree2 DirListActivity.java
...
Change-Id: I5e7d86fc4e05ac512ce1b2c55660d3b7f0de2750
2010-09-13 16:04:18 +01:00
Steve Block
5c27bc1c64
When running DumpRenderTree2 from script, remove old results files
...
This makes sure that should we fail to get a new results file from
the device, we won't ever show an old results file to the user.
Change-Id: Ib00ae391a6b2b43a336370ef23af2d6c95589918
2010-09-13 16:00:42 +01:00
Steve Block
bdebd0621b
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
2010-09-13 15:55:13 +01:00
Steve Block
34c68912be
Remove the last remnants in DumpRenderTree2 of the absolute path to the tests
...
This is no longer required.
Change-Id: I27db10e8c723162b319d9a714b086f508db706e0
2010-09-13 15:51:11 +01:00
Steve Block
7438b53487
Update DumpRenderTree2 text results output to better match HTML version
...
Always print number of crashes and line things up nicely.
Change-Id: I79a72056ba5ce007fdd4154f1518b9535b595317
2010-09-13 14:28:46 +01:00
Maksymilian Osowski
5af84db492
Updated the AdbUtils class to better manage opening and closing the resources.
...
Change-Id: I83ebc6409d57a28f9015ec9726f797417ec03212
2010-09-13 10:51:08 +01:00
Maksymilian Osowski
741fdc8088
Merge "Updated FsUtils to use apache HttpClient instead of java.net UrlConnection."
2010-09-13 02:49:09 -07:00
Maksymilian Osowski
ce2ef18c8f
Updated FsUtils to use apache HttpClient instead of java.net UrlConnection.
...
It fixed sockets leaking during readDataFromUrl() invocations.
Change-Id: Ifb1aeb32fe9bb4ffa353cf521b5174a83de270db
2010-09-13 10:47:50 +01:00
Romain Guy
6d000d4eb7
Merge "Optimize calls to glCopyTexImage2D()."
2010-09-12 13:03:42 -07:00
Romain Guy
8694230ff2
Optimize calls to glCopyTexImage2D().
...
Change-Id: I34ee87bd4472864f440916e03a2894fae24bbe4a
2010-09-12 13:02:16 -07:00
Romain Guy
ae44d554b7
Merge "Correct implementation of saveLayer()."
2010-09-12 12:25:13 -07:00
Romain Guy
f607bdc167
Correct implementation of saveLayer().
...
Change-Id: I5375126636913e0a84f2d6bbd0ebe40d2e4f2763
2010-09-12 12:24:12 -07:00
Joe Onorato
9305647eb6
Plumb lights out mode through from the window manager to the status bar running in the system ui process.
...
Lights out mode itself isn't implemented.
Change-Id: Ieeef0eb9ae5be23000f770e74e8ee66472f4c673
2010-09-12 13:25:06 -04:00
Romain Guy
a5aed0d589
Add support for advanced blend modes with the framebuffer.
...
This adds the ability to blend with the framebuffer using Darken,
Lighten, Add, Multiply, Overlay and Screen.
Change-Id: Iae01a53797d4ad39c373cba6ff2a42293129da1a
2010-09-09 14:42:43 -07:00
Steve Block
aaa9675b5c
Merge "Update DumpRenderTree2 to reflect removal of WEBKIT_MERGE_REVISION"
2010-09-08 03:20:13 -07:00
Guang Zhu
0ad6fdc029
Merge "temporarily skip simple-cross-origin-progress-events.html for now"
2010-09-07 21:00:32 -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
Romain Guy
53389bdcdf
Correctly set the viewport on window resize.
...
Change-Id: Idec325264d85feda76d4cda00fa511aaac82cf64
2010-09-07 17:16:32 -07:00