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
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
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
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
Also add a test for objects with a non-numeric length property being passed to
a method expecting an array.
Change-Id: Ic04bbd691c55744472cab9fb732e504997c62434
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
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
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