Searched refs:twoByteString (Results 1 – 2 of 2) sorted by relevance
/external/v8/test/mjsunit/ |
D | string-indexof-1.js | 58 var twoByteString = "\u039a\u0391\u03a3\u03a3\u0395"; variable 61 assertEquals(0, twoByteString.indexOf("\u039a"), "Lamda"); 62 assertEquals(1, twoByteString.indexOf("\u0391"), "Alpha"); 63 assertEquals(2, twoByteString.indexOf("\u03a3"), "First Sigma"); 64 assertEquals(3, twoByteString.indexOf("\u03a3",3), "Second Sigma"); 65 assertEquals(4, twoByteString.indexOf("\u0395"), "Epsilon"); 66 assertEquals(-1, twoByteString.indexOf("\u0392"), "Not beta"); 69 assertEquals(0, twoByteString.indexOf("\u039a\u0391"), "lambda Alpha"); 70 assertEquals(1, twoByteString.indexOf("\u0391\u03a3"), "Alpha Sigma"); 71 assertEquals(2, twoByteString.indexOf("\u03a3\u03a3"), "Sigma Sigma"); [all …]
|
/external/v8/test/mjsunit/es6/ |
D | string-includes.js | 35 var twoByteString = "\u039a\u0391\u03a3\u03a3\u0395"; variable 38 assertTrue(twoByteString.includes("\u039a"), "Lamda"); 39 assertTrue(twoByteString.includes("\u0391"), "Alpha"); 40 assertTrue(twoByteString.includes("\u03a3"), "First Sigma"); 41 assertTrue(twoByteString.includes("\u03a3",3), "Second Sigma"); 42 assertTrue(twoByteString.includes("\u0395"), "Epsilon"); 43 assertFalse(twoByteString.includes("\u0392"), "Not beta"); 46 assertTrue(twoByteString.includes("\u039a\u0391"), "lambda Alpha"); 47 assertTrue(twoByteString.includes("\u0391\u03a3"), "Alpha Sigma"); 48 assertTrue(twoByteString.includes("\u03a3\u03a3"), "Sigma Sigma"); [all …]
|