Home
last modified time | relevance | path

Searched refs:executeJavaScript (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tests/WebViewTests/src/com/android/webviewtests/
DJavaBridgeArrayCoercionTest.java175 executeJavaScript("testObject.setBooleanArray([0]);"); in testPassNumberInt32()
178 executeJavaScript("testObject.setBooleanArray([42]);"); in testPassNumberInt32()
181 executeJavaScript("testObject.setByteArray([42]);"); in testPassNumberInt32()
185 executeJavaScript("testObject.setCharArray([42]);"); in testPassNumberInt32()
188 executeJavaScript("testObject.setShortArray([42]);"); in testPassNumberInt32()
191 executeJavaScript("testObject.setIntArray([42]);"); in testPassNumberInt32()
194 executeJavaScript("testObject.setLongArray([42]);"); in testPassNumberInt32()
197 executeJavaScript("testObject.setFloatArray([42]);"); in testPassNumberInt32()
200 executeJavaScript("testObject.setDoubleArray([42]);"); in testPassNumberInt32()
204 executeJavaScript("testObject.setObjectArray([42]);"); in testPassNumberInt32()
[all …]
DJavaBridgeCoercionTest.java179 executeJavaScript("testObject.setByteValue(42);"); in testPassNumberInt32()
181 executeJavaScript("testObject.setByteValue(" + Byte.MAX_VALUE + " + 42);"); in testPassNumberInt32()
185 executeJavaScript("testObject.setCharValue(42);"); in testPassNumberInt32()
188 executeJavaScript("testObject.setShortValue(42);"); in testPassNumberInt32()
190 executeJavaScript("testObject.setShortValue(" + Short.MAX_VALUE + " + 42);"); in testPassNumberInt32()
193 executeJavaScript("testObject.setIntValue(42);"); in testPassNumberInt32()
196 executeJavaScript("testObject.setLongValue(42);"); in testPassNumberInt32()
199 executeJavaScript("testObject.setFloatValue(42);"); in testPassNumberInt32()
202 executeJavaScript("testObject.setDoubleValue(42);"); in testPassNumberInt32()
206 executeJavaScript("testObject.setObjectValue(42);"); in testPassNumberInt32()
[all …]
DJavaBridgeArrayTest.java110 executeJavaScript("testObject.setIntArray([42, 43, 44]);"); in testArrayLength()
119 executeJavaScript("testObject.setIntArray(null);"); in testPassNull()
124 executeJavaScript("testObject.setIntArray(undefined);"); in testPassUndefined()
129 executeJavaScript("testObject.setIntArray([]);"); in testPassEmptyArray()
137 executeJavaScript("testObject.setStringValue([42, 42, 42]);"); in testPassArrayToStringMethod()
145 executeJavaScript("testObject.setIntValue([42, 42, 42]);"); in testPassArrayToNonStringNonArrayMethod()
151 executeJavaScript("testObject.setIntArray(42);"); in testPassNonArrayToArrayMethod()
156 executeJavaScript("testObject.setIntArray({length: 3, 1: 42});"); in testObjectWithLengthProperty()
167 executeJavaScript("testObject.setIntArray({length: \"foo\"});"); in testNonNumericLengthProperty()
174 executeJavaScript("testObject.setIntArray({length: -1});"); in testLengthOutOfBounds()
[all …]
DJavaBridgeBasicsTest.java95 executeJavaScript("testController.setStringValue(" + script + ");"); in executeJavaScriptAndGetStringResult()
112 executeJavaScript("try {" + in assertRaisesException()
199 executeJavaScript("testController.setStringValue(typeof testObject.staticMethod)"); in testTypeOfStaticMethod()
206 executeJavaScript("testController.setStringValue(testObject.staticMethod())"); in testCallStaticMethod()
222 executeJavaScript("testObject.method()"); in testReplaceInjectedObject()
228 executeJavaScript("testObject.method()"); in testReplaceInjectedObject()
250 executeJavaScript("testObject.method()"); in testCallOverloadedMethodWithDifferentNumberOfArguments()
252 executeJavaScript("testObject.method(42)"); in testCallOverloadedMethodWithDifferentNumberOfArguments()
254 executeJavaScript("testObject.method(null)"); in testCallOverloadedMethodWithDifferentNumberOfArguments()
256 executeJavaScript("testObject.method(undefined)"); in testCallOverloadedMethodWithDifferentNumberOfArguments()
[all …]
DJavaBridgeReturnValuesTest.java128 executeJavaScript("testObject.setStringValue(" + script + ");"); in executeJavaScriptAndGetStringResult()
134 executeJavaScript("testObject.setBooleanValue(" + script + ");"); in executeJavaScriptAndGetBooleanResult()
DJavaBridgeFieldsTest.java70 executeJavaScript("testObject.setStringValue(" + script + ");"); in executeJavaScriptAndGetStringResult()
DJavaBridgeTestBase.java105 protected void executeJavaScript(final String script) throws Throwable { in executeJavaScript() method in JavaBridgeTestBase