Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 286788c3 authored by Steve Block's avatar Steve Block
Browse files

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
parent c353abba
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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\"]);");