summaryrefslogtreecommitdiffstats
path: root/tests/WebViewTests
Commit message (Collapse)AuthorAgeFilesLines
* Add missing </head> tag to last commit.Ben Murdoch2012-06-111-1/+1
| | | | | | See Ifca486e329333b642d8195391fb1829bbf9a684c Change-Id: I2e9f0288176896d965cc25684b229f93ad46f013
* Add JavaBridge test to ensure objects injected into child frames.Ben Murdoch2012-06-111-0/+63
| | | | | | | | | Child frames should have also have any injected javascript interfaces from the main frame. Add a test to verify this behavior. Bug: 6640270 Change-Id: Ifca486e329333b642d8195391fb1829bbf9a684c
* Avoid unintended side-effects of loading javascript: URLS in Java Bridge testsSteve Block2012-05-251-1/+6
| | | | Change-Id: I8ba9a32ca0d0d80395029d92886155d2ed13d6f4
* Add tests for uncaught exceptions from methods called through the Java BridgeSteve Block2012-04-251-2/+29
| | | | | | | | | | If a method called on a Java object through the Java Bridge throws an uncaught exception, we throw a JavaScript exception. See WebKit change https://android-git.corp.google.com/g/184252 Bug: 6386557 Change-Id: I35c456c162fd9b2a078ee9fce1ea68404b4c829c
* Add tests for reflection and improve JavaDoc for Java BridgeSteve Block2012-04-241-0/+19
| | | | | Bug: 5461416 Change-Id: Ic339b97a9424d8848f8afd47ba00cbbee4d60c9d
* Remove some stale TODOs from the Java Bridge testsSteve Block2012-01-111-5/+0
| | | | | | | | | | These TODOs were related to testing behavior with JavaScript and Java arrays. This is now tested thoroughly in JavaBridgeArrayTest.java and JavaBridgeArrayCoercionTest.java. No functional change. Change-Id: I5972b929c3e2743c06aff626c983b4b749ea452f
* Add tests for array length bounds in WebView's Java BridgeSteve Block2011-11-211-1/+20
| | | | | | | | | | | | Tests for https://android-git.corp.google.com/g/150320. We test that when the legnth property of a JavaScript object is out of the bounds for a Java array, we convert to null. Also update a test in the case that the length property is not numeric. Bug: 5626284 Change-Id: If41acb117eb4b786d671b5ffece2704c6f045d52
* Update Java Bridge test for coercing JavaScript String to Java char in an arraySteve Block2011-11-161-2/+2
| | | | | | | See https://android-git.corp.google.com/g/150052 Bug: 5619677 Change-Id: I2c3049529312b38bd3731dfc79b14edcb8cd6357
* Add tests for multidimensional arrays in WebView's Java BridgeSteve Block2011-11-161-0/+31
| | | | | | | Also add a test for objects with a non-numeric length property being passed to a method expecting an array. Change-Id: Ic04bbd691c55744472cab9fb732e504997c62434
* Fix tests for methods returning arrays in WebView's Java BridgeSteve Block2011-11-161-15/+14
| | | | Change-Id: Ibbac2268307fbfcff09a2d3b0f841ce420edc416
* Add tests for invalid and static methods in the WebView's Java BridgeSteve Block2011-11-141-14/+41
| | | | Change-Id: I18dacf4a4de8c787e46ea2781f5a365372a0a7da
* Add tests for arrays in WebView's Java BridgeSteve Block2011-11-104-12/+815
| | | | | | | | Also fixes some minor problems in other tests and reduces the HTML test page to the minimal valid HTML5 document. Bug: 5140673 Change-Id: Icc3730d017b778b0e618af3fcfee028300dd0a56
* Add another test for WebView's Java BridgeSteve Block2011-11-091-0/+26
| | | | | | | | Tests that an exception is raised if the wrong number of arguments are passed to a method of an injected object. Bug: 5140673 Change-Id: Ic9f9d09969e0fccbe82584e1a9ca7580f6010c87
* Add tests for the fields of objects in the WebView's Java Bridge.Steve Block2011-11-071-0/+100
| | | | | Bug: 5140673 Change-Id: If1bdd547c09d37bbf6d649f15388352ee76f4887
* Adds a set of basic test for WebView's Java BridgeSteve Block2011-11-072-3/+350
| | | | | Bug: 5140673 Change-Id: Ie43c16aeca9c5982b4ea64e3b54ec1a33c5f7241
* Add tests for returning values from WebView's Java BridgeSteve Block2011-11-073-87/+314
| | | | | Bug: 5140673 Change-Id: I62b45f8b35be3ce9c76766e39e8867c028f94ac1
* Adds a new test for type coercion in WebView's Java BridgeSteve Block2011-11-075-0/+857
This change adds a new directory of tests for the WebView, WebViewTests. It also provides the first in a set of tests to test WebView's Java Bridge. Once this set of tests is complete, the Java Bridge test in packages/apps/Browser will be removed. Bug: 5140673 Change-Id: I32b7fdc0ac5d2231e6b96ff232d336ad2c0fcaab