diff options
author | Steve Block <steveblock@google.com> | 2011-11-15 18:07:34 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-11-16 14:28:24 +0000 |
commit | 286788c3aaf2092b3f582acd113bdfee5eea8de0 (patch) | |
tree | 4fee9ffacf7fd8bf70f965fefcd59d7a1dd186aa /tests/WebViewTests | |
parent | c353abba95771ce28f1536fe36c1c705693232a8 (diff) | |
download | frameworks_base-286788c3aaf2092b3f582acd113bdfee5eea8de0.zip frameworks_base-286788c3aaf2092b3f582acd113bdfee5eea8de0.tar.gz frameworks_base-286788c3aaf2092b3f582acd113bdfee5eea8de0.tar.bz2 |
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
Diffstat (limited to 'tests/WebViewTests')
-rw-r--r-- | tests/WebViewTests/src/com/android/webviewtests/JavaBridgeArrayCoercionTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/WebViewTests/src/com/android/webviewtests/JavaBridgeArrayCoercionTest.java b/tests/WebViewTests/src/com/android/webviewtests/JavaBridgeArrayCoercionTest.java index 5aba764..c2bbdf5 100644 --- a/tests/WebViewTests/src/com/android/webviewtests/JavaBridgeArrayCoercionTest.java +++ b/tests/WebViewTests/src/com/android/webviewtests/JavaBridgeArrayCoercionTest.java @@ -411,9 +411,9 @@ public class JavaBridgeArrayCoercionTest extends JavaBridgeTestBase { executeJavaScript("testObject.setByteArray([\"+042.10\"]);"); assertEquals(0, mTestObject.waitForByteArray()[0]); - // LIVECONNECT_COMPLIANCE: Should use valueOf() of appropriate type. + // LIVECONNECT_COMPLIANCE: Should decode and convert to numeric char value. executeJavaScript("testObject.setCharArray([\"+042.10\"]);"); - assertEquals('+', mTestObject.waitForCharArray()[0]); + assertEquals(0, mTestObject.waitForCharArray()[0]); // LIVECONNECT_COMPLIANCE: Should use valueOf() of appropriate type. executeJavaScript("testObject.setShortArray([\"+042.10\"]);"); |