Home
last modified time | relevance | path

Searched refs:mTestObject (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tests/WebViewTests/src/com/android/webviewtests/
DJavaBridgeArrayCoercionTest.java160 private TestObject mTestObject; field in JavaBridgeArrayCoercionTest
165 mTestObject = new TestObject(); in setUp()
166 setUpWebView(mTestObject, "testObject"); in setUp()
176 assertFalse(mTestObject.waitForBooleanArray()[0]); in testPassNumberInt32()
179 assertFalse(mTestObject.waitForBooleanArray()[0]); in testPassNumberInt32()
182 assertEquals(42, mTestObject.waitForByteArray()[0]); in testPassNumberInt32()
186 assertEquals('\u0000', mTestObject.waitForCharArray()[0]); in testPassNumberInt32()
189 assertEquals(42, mTestObject.waitForShortArray()[0]); in testPassNumberInt32()
192 assertEquals(42, mTestObject.waitForIntArray()[0]); in testPassNumberInt32()
195 assertEquals(42L, mTestObject.waitForLongArray()[0]); in testPassNumberInt32()
[all …]
DJavaBridgeCoercionTest.java167 private TestObject mTestObject; field in JavaBridgeCoercionTest
172 mTestObject = new TestObject(); in setUp()
173 setUpWebView(mTestObject, "testObject"); in setUp()
180 assertEquals(42, mTestObject.waitForByteValue()); in testPassNumberInt32()
182 assertEquals(Byte.MIN_VALUE + 42 - 1, mTestObject.waitForByteValue()); in testPassNumberInt32()
186 assertEquals('\u0000', mTestObject.waitForCharValue()); in testPassNumberInt32()
189 assertEquals(42, mTestObject.waitForShortValue()); in testPassNumberInt32()
191 assertEquals(Short.MIN_VALUE + 42 - 1, mTestObject.waitForShortValue()); in testPassNumberInt32()
194 assertEquals(42, mTestObject.waitForIntValue()); in testPassNumberInt32()
197 assertEquals(42L, mTestObject.waitForLongValue()); in testPassNumberInt32()
[all …]
DJavaBridgeArrayTest.java100 private TestObject mTestObject; field in JavaBridgeArrayTest
105 mTestObject = new TestObject(); in setUp()
106 setUpWebView(mTestObject, "testObject"); in setUp()
111 int[] result = mTestObject.waitForIntArray(); in testArrayLength()
120 assertNull(mTestObject.waitForIntArray()); in testPassNull()
125 assertNull(mTestObject.waitForIntArray()); in testPassUndefined()
130 assertEquals(0, mTestObject.waitForIntArray().length); in testPassEmptyArray()
138 assertEquals("undefined", mTestObject.waitForStringValue()); in testPassArrayToStringMethod()
146 assertEquals(0, mTestObject.waitForIntValue()); in testPassArrayToNonStringNonArrayMethod()
152 assertNull(mTestObject.waitForIntArray()); in testPassNonArrayToArrayMethod()
[all …]
DJavaBridgeFieldsTest.java59 TestObject mTestObject; field in JavaBridgeFieldsTest
64 mTestObject = new TestObject(); in setUp()
65 setUpWebView(mTestObject, "testObject"); in setUp()
71 return mTestObject.waitForStringValue(); in executeJavaScriptAndGetStringResult()
DJavaBridgeReturnValuesTest.java117 TestObject mTestObject; field in JavaBridgeReturnValuesTest
122 mTestObject = new TestObject(); in setUp()
123 setUpWebView(mTestObject, "testObject"); in setUp()
129 return mTestObject.waitForStringValue(); in executeJavaScriptAndGetStringResult()
135 return mTestObject.waitForBooleanValue(); in executeJavaScriptAndGetBooleanResult()