HomeSort by relevance Sort by last modified time
    Searched full:indexof (Results 1 - 25 of 2556) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/v8/test/mjsunit/
string-indexof-1.js 30 assertEquals(0, s.indexOf("t"));
31 assertEquals(3, s.indexOf("t", 1));
32 assertEquals(5, s.indexOf("t", 4));
33 assertEquals(1, s.indexOf("e"));
34 assertEquals(2, s.indexOf("s"));
36 assertEquals(5, s.indexOf("test", 4));
37 assertEquals(5, s.indexOf("test", 5));
38 assertEquals(10, s.indexOf("test", 6));
39 assertEquals(0, s.indexOf("test", 0));
40 assertEquals(0, s.indexOf("test", -1))
    [all...]
array-indexing.js 49 // Array.prototype.indexOf.
53 assertEquals(-1, [].indexOf(1));
54 assertEquals(-1, array.indexOf(4));
55 assertEquals(-1, array.indexOf(3, array.length));
57 assertEquals(2, array.indexOf(3));
59 assertEquals(0, array.indexOf(1, -17));
61 assertEquals(3, array.indexOf(1, -11));
63 assertEquals(3, array.indexOf(1, 1));
64 assertEquals(3, array.indexOf(1, 3));
65 assertEquals(6, array.indexOf(1, 4))
    [all...]
for-in-special-cases.js 77 assertTrue(-1 != elements.indexOf("0"));
78 assertTrue(-1 != elements.indexOf("1"));
79 assertTrue(-1 != elements.indexOf("2"));
80 assertTrue(-1 != elements.indexOf("3"));
103 assertTrue(-1 != elements.indexOf("0"));
104 assertTrue(-1 != elements.indexOf("1"));
105 assertTrue(-1 != elements.indexOf("2"));
106 assertTrue(-1 != elements.indexOf("7"));
107 assertTrue(-1 != elements.indexOf("foo"));
108 assertTrue(-1 != elements.indexOf("bar"))
    [all...]
debug-breakpoints.js 70 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
76 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]") < 0);
84 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]b=2;") > 0);
90 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
91 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
97 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
98 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
99 assertTrue(Debug.showBreakPoints(g).indexOf("[B2]}") > 0);
105 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
106 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]}") > 0)
    [all...]
  /external/v8/test/mjsunit/
string-indexof-1.js 30 assertEquals(0, s.indexOf("t"));
31 assertEquals(3, s.indexOf("t", 1));
32 assertEquals(5, s.indexOf("t", 4));
33 assertEquals(1, s.indexOf("e"));
34 assertEquals(2, s.indexOf("s"));
36 assertEquals(5, s.indexOf("test", 4));
37 assertEquals(5, s.indexOf("test", 5));
38 assertEquals(10, s.indexOf("test", 6));
39 assertEquals(0, s.indexOf("test", 0));
40 assertEquals(0, s.indexOf("test", -1))
    [all...]
array-indexing.js 49 // Array.prototype.indexOf.
53 assertEquals(-1, [].indexOf(1));
54 assertEquals(-1, array.indexOf(4));
55 assertEquals(-1, array.indexOf(3, array.length));
57 assertEquals(2, array.indexOf(3));
59 assertEquals(0, array.indexOf(1, -17));
61 assertEquals(3, array.indexOf(1, -11));
63 assertEquals(3, array.indexOf(1, 1));
64 assertEquals(3, array.indexOf(1, 3));
65 assertEquals(6, array.indexOf(1, 4))
    [all...]
for-in-special-cases.js 77 assertTrue(-1 != elements.indexOf("0"));
78 assertTrue(-1 != elements.indexOf("1"));
79 assertTrue(-1 != elements.indexOf("2"));
80 assertTrue(-1 != elements.indexOf("3"));
103 assertTrue(-1 != elements.indexOf("0"));
104 assertTrue(-1 != elements.indexOf("1"));
105 assertTrue(-1 != elements.indexOf("2"));
106 assertTrue(-1 != elements.indexOf("7"));
107 assertTrue(-1 != elements.indexOf("foo"));
108 assertTrue(-1 != elements.indexOf("bar"))
    [all...]
debug-breakpoints.js 70 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
76 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]") < 0);
84 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]b=2;") > 0);
90 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
91 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
97 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
98 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
99 assertTrue(Debug.showBreakPoints(g).indexOf("[B2]}") > 0);
105 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
106 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]}") > 0)
    [all...]
  /external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
XMLFormatterTest.java 60 assertTrue(result.indexOf("<message>" + rb.getString("pattern")
62 assertTrue(result.indexOf("<key>pattern</key>") > 0);
66 assertTrue(result.indexOf("<message>" + rb.getString("msg")
68 assertTrue(result.indexOf("<key>msg</key>") > 0);
72 assertTrue(result.indexOf("<message>pattern {0, number}</message>") > 0);
73 assertTrue(result.indexOf("<key>") < 0);
78 assertTrue(result.indexOf("<message>bad key</message>") > 0);
79 assertTrue(result.indexOf("<key>") < 0);
96 assertTrue(output.indexOf("<record>") >= 0);
97 assertTrue(output.indexOf("<date>") >= 0)
    [all...]
  /art/test/020-string/src/
Main.java 66 baseStr.indexOf('T') + ":" +
67 subStr.indexOf('T') + ":" +
68 subStr.indexOf('u') + ":" +
69 baseStr.indexOf('!') + ":" +
70 subStr.indexOf('y') + ":" +
71 subStr.indexOf('d') + ":" +
72 baseStr.indexOf('x') + ":" +
73 subStr.indexOf('x', 0) + ":" +
74 subStr.indexOf('x', -1) + ":" +
75 subStr.indexOf('x', 200) + ":"
    [all...]
  /dalvik/tests/020-string/src/
Main.java 66 baseStr.indexOf('T') + ":" +
67 subStr.indexOf('T') + ":" +
68 subStr.indexOf('u') + ":" +
69 baseStr.indexOf('!') + ":" +
70 subStr.indexOf('y') + ":" +
71 subStr.indexOf('d') + ":" +
72 baseStr.indexOf('x') + ":" +
73 subStr.indexOf('x', 0) + ":" +
74 subStr.indexOf('x', -1) + ":" +
75 subStr.indexOf('x', 200) + ":"
    [all...]
  /frameworks/base/test-runner/src/junit/runner/
SimpleTestCollector.java 18 classFileName.indexOf('$') < 0 &&
19 classFileName.indexOf("Test") > 0;
  /cts/tests/tests/widget/src/android/widget/cts/
AlphabetIndexerTest.java 59 int index = ALPHABET.indexOf('A');
63 index = ALPHABET.indexOf('C');
67 index = ALPHABET.indexOf('T');
71 index = ALPHABET.indexOf('X');
75 assertEquals(ALPHABET.indexOf('A'), indexer.getSectionForPosition(0));
76 assertEquals(ALPHABET.indexOf('C'), indexer.getSectionForPosition(2));
77 assertEquals(ALPHABET.indexOf('G'), indexer.getSectionForPosition(4));
78 assertEquals(ALPHABET.indexOf('J'), indexer.getSectionForPosition(6));
87 index = ALPHABET.indexOf('B');
91 index = ALPHABET.indexOf('M')
    [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/scripts/
Fingerprints.js 4 var idx=document.URL.indexOf("php?");
13 var idx=document.URL.indexOf("?");
17 idx=typeStr.indexOf("=");
  /external/guava/guava-tests/test/com/google/common/primitives/
BytesTest.java 63 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1));
64 assertEquals(-1, Bytes.indexOf(ARRAY1, (byte) 2));
65 assertEquals(-1, Bytes.indexOf(ARRAY234, (byte) 1));
66 assertEquals(0, Bytes.indexOf(
68 assertEquals(0, Bytes.indexOf(ARRAY234, (byte) 2));
69 assertEquals(1, Bytes.indexOf(ARRAY234, (byte) 3));
70 assertEquals(2, Bytes.indexOf(ARRAY234, (byte) 4));
71 assertEquals(1, Bytes.indexOf(
77 assertEquals(0, Bytes.indexOf(EMPTY, EMPTY));
78 assertEquals(0, Bytes.indexOf(ARRAY234, EMPTY))
    [all...]
  /external/proguard/src/proguard/util/
ListUtil.java 80 nextIndex = string.indexOf('\'', index + 1);
91 nextIndex = string.indexOf(',', index);
131 string.indexOf(' ') >= 0 ||
132 string.indexOf('@') >= 0 ||
133 string.indexOf('{') >= 0 ||
134 string.indexOf('}') >= 0 ||
135 string.indexOf('(') >= 0 ||
136 string.indexOf(')') >= 0 ||
137 string.indexOf(':') >= 0 ||
138 string.indexOf(';') >= 0 |
    [all...]
  /dalvik/tests/082-inline-execute/src/
Main.java 108 assert(str0.indexOf('a') == -1);
109 assert(str3.indexOf('a') == 0);
110 assert(str3.indexOf('b') == 1);
111 assert(str3.indexOf('c') == 2);
112 assert(str10.indexOf('j') == 9);
113 assert(str40.indexOf('a') == 0);
114 assert(str40.indexOf('b') == 38);
115 assert(str40.indexOf('c') == 39);
116 assert(str0.indexOf('a',20) == -1);
117 assert(str0.indexOf('a',0) == -1)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/pem/
PemReader.java 35 int index = line.indexOf('-');
57 if (line.indexOf(":") >= 0)
59 int index = line.indexOf(':');
68 if (line.indexOf(endMarker) != -1)
  /art/test/082-inline-execute/src/
Main.java 109 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar), "hello ".length());
110 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 2), "hello ".length());
111 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 6), 6);
112 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 7), -1);
114 Assert.assertEquals(str0.indexOf('a'), -1);
115 Assert.assertEquals(str3.indexOf('a'), 0);
116 Assert.assertEquals(str3.indexOf('b'), 1);
117 Assert.assertEquals(str3.indexOf('c'), 2);
118 Assert.assertEquals(str10.indexOf('j'), 9);
119 Assert.assertEquals(str40.indexOf('a'), 0)
    [all...]
  /external/chromium_org/v8/test/mjsunit/compiler/
regress-stacktrace-methods.js 57 var p3 = stack.indexOf("at Hest.three");
58 var p2 = stack.indexOf("at Svin.two");
59 var p1 = stack.indexOf("at Hest.one");
65 assertTrue(stack.indexOf("38:56") != -1);
66 assertTrue(stack.indexOf("34:51") != -1);
67 assertTrue(stack.indexOf("36:38") != -1);
68 assertTrue(stack.indexOf("54:5") != -1);
  /external/v8/test/mjsunit/compiler/
regress-stacktrace-methods.js 57 var p3 = stack.indexOf("at Hest.three");
58 var p2 = stack.indexOf("at Svin.two");
59 var p1 = stack.indexOf("at Hest.one");
65 assertTrue(stack.indexOf("38:56") != -1);
66 assertTrue(stack.indexOf("34:51") != -1);
67 assertTrue(stack.indexOf("36:38") != -1);
68 assertTrue(stack.indexOf("54:5") != -1);
  /frameworks/base/core/tests/coretests/src/com/android/internal/util/
ArrayUtilsTest.java 47 assertEquals(0, ArrayUtils.indexOf(new Object[] { A, B, C }, A));
48 assertEquals(1, ArrayUtils.indexOf(new Object[] { A, B, C }, B));
49 assertEquals(2, ArrayUtils.indexOf(new Object[] { A, B, C }, C));
50 assertEquals(-1, ArrayUtils.indexOf(new Object[] { A, B, C }, D));
52 assertEquals(-1, ArrayUtils.indexOf(new Object[] { A, B, C }, null));
53 assertEquals(-1, ArrayUtils.indexOf(new Object[] { }, A));
54 assertEquals(-1, ArrayUtils.indexOf(new Object[] { }, null));
56 assertEquals(0, ArrayUtils.indexOf(new Object[] { null, null }, null));
57 assertEquals(1, ArrayUtils.indexOf(new Object[] { A, null, B }, null));
58 assertEquals(2, ArrayUtils.indexOf(new Object[] { A, null, B }, B))
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
ListIndexOfTester.java 27 * A generic JUnit test which tests {@code indexOf()} operations on a list.
37 return getList().indexOf(o);
41 return "indexOf";
50 assertEquals("indexOf(duplicate) should return index of first occurrence",
51 0, getList().indexOf(samples.e0));
  /external/doclava/src/com/google/doclava/
DocFile.java 149 if (filename.indexOf("design") == 0) {
151 } else if (filename.indexOf("develop") == 0) {
153 } else if (filename.indexOf("guide") == 0) {
155 } else if (filename.indexOf("training") == 0) {
157 } else if (filename.indexOf("more") == 0) {
159 } else if (filename.indexOf("google") == 0) {
161 } else if (filename.indexOf("samples") == 0) {
163 } else if (filename.indexOf("distribute") == 0) {
165 } else if (filename.indexOf("about") == 0) {
167 } else if ((filename.indexOf("tools") == 0) || (filename.indexOf("sdk") == 0))
    [all...]
  /external/chromium_org/v8/test/webkit/fast/js/
Object-getOwnPropertyNames-expected.txt 71 PASS getSortedOwnPropertyNames(Array.prototype) is ['concat', 'constructor', 'every', 'filter', 'forEach', 'indexOf', 'join', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift']
73 PASS getSortedOwnPropertyNames(String.prototype) is ['anchor', 'big', 'blink', 'bold', 'charAt', 'charCodeAt', 'concat', 'constructor', 'fixed', 'fontcolor', 'fontsize', 'indexOf', 'italics', 'lastIndexOf', 'length', 'link', 'localeCompare', 'match', 'replace', 'search', 'slice', 'small', 'split', 'strike', 'sub', 'substr', 'substring', 'sup', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toString', 'toUpperCase', 'trim', 'trimLeft', 'trimRight', 'valueOf']
86 PASS globalPropertyNames.indexOf('NaN') != -1 is true
87 PASS globalPropertyNames.indexOf('Infinity') != -1 is true
88 PASS globalPropertyNames.indexOf('undefined') != -1 is true
89 PASS globalPropertyNames.indexOf('parseInt') != -1 is true
90 PASS globalPropertyNames.indexOf('parseFloat') != -1 is true
91 PASS globalPropertyNames.indexOf('isNaN') != -1 is true
92 PASS globalPropertyNames.indexOf('isFinite') != -1 is true
93 PASS globalPropertyNames.indexOf('escape') != -1 is tru
    [all...]

Completed in 882 milliseconds

1 2 3 4 5 6 7 8 91011>>