17 Commits

Author SHA1 Message Date
Ben Murdoch
c3c682fc12 Add missing </head> tag to last commit.
See Ifca486e329333b642d8195391fb1829bbf9a684c

Change-Id: I2e9f0288176896d965cc25684b229f93ad46f013
2012-06-11 15:52:37 +01:00
Ben Murdoch
963a7307e9 Add JavaBridge test to ensure objects injected into child frames.
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
2012-06-11 15:29:15 +01:00
Steve Block
830698b1d9 Avoid unintended side-effects of loading javascript: URLS in Java Bridge tests
Change-Id: I8ba9a32ca0d0d80395029d92886155d2ed13d6f4
2012-05-25 14:24:40 +01:00
Steve Block
d890b0ddb6 Add tests for uncaught exceptions from methods called through the Java Bridge
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
2012-04-25 21:53:18 +01:00
Steve Block
3aa800b9f9 Add tests for reflection and improve JavaDoc for Java Bridge
Bug: 5461416
Change-Id: Ic339b97a9424d8848f8afd47ba00cbbee4d60c9d
2012-04-24 21:34:42 +01:00
Steve Block
c93643be42 Remove some stale TODOs from the Java Bridge tests
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
2012-01-11 11:04:12 +00:00
Steve Block
fc6cf28884 Add tests for array length bounds in WebView's Java Bridge
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
2011-11-21 18:31:14 +00:00
Steve Block
286788c3aa Update Java Bridge test for coercing JavaScript String to Java char in an array
See https://android-git.corp.google.com/g/150052

Bug: 5619677
Change-Id: I2c3049529312b38bd3731dfc79b14edcb8cd6357
2011-11-16 14:28:24 +00:00
Steve Block
c353abba95 Add tests for multidimensional arrays in WebView's Java Bridge
Also add a test for objects with a non-numeric length property being passed to
a method expecting an array.

Change-Id: Ic04bbd691c55744472cab9fb732e504997c62434
2011-11-16 14:28:20 +00:00
Steve Block
908bc4a846 Fix tests for methods returning arrays in WebView's Java Bridge
Change-Id: Ibbac2268307fbfcff09a2d3b0f841ce420edc416
2011-11-16 14:26:37 +00:00
Steve Block
13ad467a91 Add tests for invalid and static methods in the WebView's Java Bridge
Change-Id: I18dacf4a4de8c787e46ea2781f5a365372a0a7da
2011-11-14 18:26:41 +00:00
Steve Block
47538c081d Add tests for arrays in WebView's Java Bridge
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
2011-11-10 16:42:05 +00:00
Steve Block
8e33fe944f Add another test for WebView's Java Bridge
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
2011-11-09 16:22:13 +00:00
Steve Block
2dc592a4ae Add tests for the fields of objects in the WebView's Java Bridge.
Bug: 5140673
Change-Id: If1bdd547c09d37bbf6d649f15388352ee76f4887
2011-11-07 15:34:30 +00:00
Steve Block
f7e26448c3 Adds a set of basic test for WebView's Java Bridge
Bug: 5140673
Change-Id: Ie43c16aeca9c5982b4ea64e3b54ec1a33c5f7241
2011-11-07 15:00:43 +00:00
Steve Block
d100cdbcc8 Add tests for returning values from WebView's Java Bridge
Bug: 5140673
Change-Id: I62b45f8b35be3ce9c76766e39e8867c028f94ac1
2011-11-07 15:00:39 +00:00
Steve Block
2d803903af Adds a new test for type coercion in WebView's Java Bridge
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
2011-11-07 14:54:51 +00:00