Lines Matching refs:TestObject
39 private class TestObject extends Controller {
117 TestObject mTestObject;
122 mTestObject = new TestObject();
123 setUpWebView(mTestObject, "testObject");
128 executeJavaScript("testObject.setStringValue(" + script + ");");
134 executeJavaScript("testObject.setBooleanValue(" + script + ");");
140 executeJavaScriptAndGetStringResult("typeof testObject.getBooleanValue()"));
142 executeJavaScriptAndGetStringResult("typeof testObject.getByteValue()"));
145 executeJavaScriptAndGetStringResult("typeof testObject.getCharValue()"));
147 executeJavaScriptAndGetStringResult("typeof testObject.getShortValue()"));
149 executeJavaScriptAndGetStringResult("typeof testObject.getIntValue()"));
151 executeJavaScriptAndGetStringResult("typeof testObject.getLongValue()"));
153 executeJavaScriptAndGetStringResult("typeof testObject.getFloatValue()"));
155 executeJavaScriptAndGetStringResult("typeof testObject.getFloatValueNoDecimal()"));
157 executeJavaScriptAndGetStringResult("typeof testObject.getDoubleValue()"));
159 executeJavaScriptAndGetStringResult("typeof testObject.getDoubleValueNoDecimal()"));
161 executeJavaScriptAndGetStringResult("typeof testObject.getStringValue()"));
163 executeJavaScriptAndGetStringResult("typeof testObject.getEmptyStringValue()"));
166 executeJavaScriptAndGetStringResult("typeof testObject.getNullStringValue()"));
168 executeJavaScriptAndGetStringResult("typeof testObject.getObjectValue()"));
170 executeJavaScriptAndGetStringResult("typeof testObject.getNullObjectValue()"));
172 executeJavaScriptAndGetStringResult("typeof testObject.getCustomTypeValue()"));
174 executeJavaScriptAndGetStringResult("typeof testObject.getVoidValue()"));
180 assertTrue(executeJavaScriptAndGetBooleanResult("testObject.getBooleanValue()"));
181 assertTrue(executeJavaScriptAndGetBooleanResult("42 === testObject.getByteValue()"));
183 assertTrue(executeJavaScriptAndGetBooleanResult("42 === testObject.getCharValue()"));
184 assertTrue(executeJavaScriptAndGetBooleanResult("42 === testObject.getShortValue()"));
185 assertTrue(executeJavaScriptAndGetBooleanResult("42 === testObject.getIntValue()"));
186 assertTrue(executeJavaScriptAndGetBooleanResult("42 === testObject.getLongValue()"));
188 "Math.abs(42.1 - testObject.getFloatValue()) < 0.001"));
190 "42.0 === testObject.getFloatValueNoDecimal()"));
192 "Math.abs(42.1 - testObject.getDoubleValue()) < 0.001"));
194 "42.0 === testObject.getDoubleValueNoDecimal()"));
195 assertEquals("foo", executeJavaScriptAndGetStringResult("testObject.getStringValue()"));
196 assertEquals("", executeJavaScriptAndGetStringResult("testObject.getEmptyStringValue()"));
197 assertTrue(executeJavaScriptAndGetBooleanResult("undefined === testObject.getVoidValue()"));