/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/ |
15.5.4.6-2.js | 24 ECMA Section: 15.5.4.6 String.prototype.indexOf( searchString, pos) 33 When the indexOf method is called with two arguments, 54 Note that the indexOf function is intentionally generic; 64 The length property of the indexOf method is 1 70 var TITLE = "String.protoype.indexOf"; 92 this.indexOf = String.prototype.indexOf; 104 array[item++] = new TestCase( SECTION, "String.prototype.indexOf.length", 1, String.prototype.indexOf.length ); 105 array[item++] = new TestCase( SECTION, "String.prototype.indexOf.length = null; String.prototype.indexOf.length", 1, eval("String.prototype.indexOf.lengt (…) [all...] |
15.5.4.6-1.js | 24 ECMA Section: 15.5.4.6 String.prototype.indexOf( searchString, pos) 33 When the indexOf method is called with two arguments, 54 Note that the indexOf function is intentionally generic; 65 var TITLE = "String.protoype.indexOf"; 81 "String.indexOf(" +String.fromCharCode(i)+ ", 0)", 83 TEST_STRING.indexOf( String.fromCharCode(i), 0 ) ); 88 "String.indexOf("+String.fromCharCode(i)+ ", "+ k +")", 90 TEST_STRING.indexOf( String.fromCharCode(i), k ) ); 95 "String.indexOf("+String.fromCharCode(i)+ ", "+k+1+")", 97 TEST_STRING.indexOf( String.fromCharCode(i), k+1 ) ) [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...] |
SimpleFormatterTest.java | 65 assertTrue(str.indexOf(localeMsg) > 0); 73 assertTrue(str.indexOf(localeMsg) < 0); 99 assertTrue(str.indexOf(String.valueOf(cal.get(Calendar.YEAR))) >= 0); 100 assertTrue(str.indexOf("class") > 0); 101 assertTrue(str.indexOf("method") > 0); 102 assertTrue(str.indexOf("100") > 0); 103 assertTrue(str.indexOf(t.toString()) > 0); 104 assertTrue(str.indexOf(Level.FINE.getLocalizedName()) > 0);
|
/dalvik/dx/src/junit/runner/ |
SimpleTestCollector.java | 17 classFileName.indexOf('$') < 0 && 18 classFileName.indexOf("Test") > 0;
|
/external/junit/src/junit/runner/ |
SimpleTestCollector.java | 17 classFileName.indexOf('$') < 0 && 18 classFileName.indexOf("Test") > 0;
|
/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...] |
/external/webkit/LayoutTests/fast/cookies/ |
local-file-can-set-cookies-expected.txt | 6 PASS document.cookie.indexOf('ppkcookie1=testcookie') is -1 7 PASS document.cookie.indexOf('ppkcookie1=testcookie') >= 0 is true
|
local-file-can-set-cookies.html | 14 shouldBe("document.cookie.indexOf('ppkcookie1=testcookie')", "-1"); 16 shouldBeTrue("document.cookie.indexOf('ppkcookie1=testcookie') >= 0");
|
/frameworks/base/test-runner/src/junit/runner/ |
SimpleTestCollector.java | 18 classFileName.indexOf('$') < 0 && 19 classFileName.indexOf("Test") > 0;
|
/external/guava/src/com/google/common/collect/ |
ImmutableSortedAsList.java | 37 // Override contains(), indexOf(), and lastIndexOf() to be O(log N) instead of 41 return set.indexOf(target) >= 0; 44 @Override public int indexOf(Object target) { 45 return set.indexOf(target); 49 return set.indexOf(target); 52 // The returned ImmutableSortedAsList maintains the contains(), indexOf(), and
|
/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/src/main/java/org/bouncycastle/util/io/pem/ |
PemReader.java | 30 int index = line.indexOf('-'); 52 if (line.indexOf(":") >= 0) 54 int index = line.indexOf(':'); 63 if (line.indexOf(endMarker) != -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);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
AlphabetIndexerTest.java | 91 int index = ALPHABET.indexOf('A'); 95 index = ALPHABET.indexOf('C'); 99 index = ALPHABET.indexOf('T'); 103 index = ALPHABET.indexOf('X'); 107 assertEquals(ALPHABET.indexOf('A'), indexer.getSectionForPosition(0)); 108 assertEquals(ALPHABET.indexOf('C'), indexer.getSectionForPosition(2)); 109 assertEquals(ALPHABET.indexOf('G'), indexer.getSectionForPosition(4)); 110 assertEquals(ALPHABET.indexOf('J'), indexer.getSectionForPosition(6)); 119 index = ALPHABET.indexOf('B'); 123 index = ALPHABET.indexOf('M') [all...] |
/external/apache-harmony/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/ |
InvalidPreferencesFormatExceptionTest.java | 49 assertTrue(e.getMessage().indexOf("root") < 0); 50 assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0); 51 assertTrue(e.getMessage().indexOf("msg") >= 0); 62 assertTrue(e.getMessage().indexOf("root") >= 0); 63 assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
|
/libcore/luni/src/test/java/libcore/java/util/ |
OldAndroidArrayListTest.java | 51 assertEquals(0, array.indexOf(new Integer(1))); 53 assertTrue(array.indexOf(new Integer(5)) < 0); 67 assertEquals(0, array.indexOf(new Integer(1))); 69 assertTrue(array.indexOf(new Integer(5)) < 0); 76 assertTrue(array.indexOf(new Integer(5)) < 0);
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
TextUtilitiesTests.java | 144 int knownEnd = text.indexOf('@') + 2; 146 // indexOf will return -1, so we'll get 1 as knownEnd 205 assertEquals(text.indexOf("visi"), ssb.getSpanStart(span)); 206 assertEquals(text.indexOf("bl>e"), ssb.getSpanEnd(span)); 216 assertEquals(text.indexOf("search word"), ssb.getSpanStart(span)); 217 assertEquals(text.indexOf(" word"), ssb.getSpanEnd(span)); 219 assertEquals(text.indexOf("search result"), ssb.getSpanStart(span)); 220 assertEquals(text.indexOf(" result"), ssb.getSpanEnd(span)); 232 assertEquals(text.indexOf("should"), ssb.getSpanStart(span)); 233 assertEquals(text.indexOf(" be"), ssb.getSpanEnd(span)) [all...] |
/frameworks/ex/chips/tests/src/com/android/ex/chips/ |
ChipsTest.java | 172 int firstStart = mEditable.toString().indexOf(first); 174 int secondStart = mEditable.toString().indexOf(second); 180 assertEquals(editableString.indexOf(extra), -1); 181 assertEquals(editableString.indexOf(first), firstStart); 182 assertEquals(editableString.indexOf(second), secondStart - extra.length()); 190 firstStart = mEditable.toString().indexOf(first); 209 int firstStart = mEditable.toString().indexOf(first); 211 int secondStart = mEditable.toString().indexOf(second); 217 assertEquals(editableString.indexOf(extra), -1); 218 assertEquals(editableString.indexOf(first), firstStart) [all...] |
/frameworks/base/docs/html/sdk/ |
download.jd | 13 if (location.indexOf('?v=') != -1) { 14 var filename = location.substring(location.indexOf('=')+1,location.length); 54 if (loc.indexOf('?v=') != -1) { 55 var filename = loc.substring(loc.indexOf('=')+1,loc.length); 81 var filename = loc.substring(loc.indexOf('=')+1,loc.length); 82 version = filename.substring(filename.indexOf('.')-1,filename.lastIndexOf('.'));
|