Home
last modified time | relevance | path

Searched refs:testText (Results 1 – 10 of 10) sorted by relevance

/external/icu4c/samples/citer/
Dciter.cpp48 const UChar *testText = testString.getTerminatedBuffer(); in TestUChariter() local
50 UCharCharacterIterator iter(testText, u_strlen(testText)); in TestUChariter()
76 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestUChariter()
83 if (c == CharacterIterator::DONE && i != u_strlen(testText)) { in TestUChariter()
86 else if (c != testText[i]) { in TestUChariter()
115 const UChar *testText = testString.getTerminatedBuffer(); in TestStringiter() local
117 StringCharacterIterator iter(testText, u_strlen(testText)); in TestStringiter()
140 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestStringiter()
149 else if (c != testText[i]) { in TestStringiter()
/external/icu4c/test/intltest/
Dcitrtest.cpp163 … UnicodeString testText("Now is the time for all good men to come to the aid of their country."); in TestCoverage() local
166 SCharacterIterator* test = new SCharacterIterator(testText); in TestCoverage()
173 if(test->getLength()!=testText.length()){ in TestCoverage()
181 if(test->getIndex()!=testText.length()){ in TestCoverage()
196 … UnicodeString testText("Now is the time for all good men to come to the aid of their country."); in TestConstructionAndEquality() local
200 CharacterIterator* test1 = new StringCharacterIterator(testText); in TestConstructionAndEquality()
201 CharacterIterator* test1b= new StringCharacterIterator(testText, -1); in TestConstructionAndEquality()
202 CharacterIterator* test1c= new StringCharacterIterator(testText, 100); in TestConstructionAndEquality()
203 CharacterIterator* test1d= new StringCharacterIterator(testText, -2, 100, 5); in TestConstructionAndEquality()
204 CharacterIterator* test1e= new StringCharacterIterator(testText, 100, 20, 5); in TestConstructionAndEquality()
[all …]
Drbbitst.cpp3907 UnicodeString testText; in RunMonkey() local
3954 testText.truncate(0); in RunMonkey()
3964 testText.append(c); in RunMonkey()
3968 mk.setText(testText); in RunMonkey()
3978 if (breakPos > testText.length()) { in RunMonkey()
3982 U_ASSERT(expectedCount<testText.length()); in RunMonkey()
3990 UText *testUText = utext_openReplaceable(NULL, &testText, &status); in RunMonkey()
3998 bi->setText(testText); in RunMonkey()
4002 if (i < 0 || i > testText.length()) { in RunMonkey()
4012 if (i < 0 || i > testText.length()) { in RunMonkey()
[all …]
Dregextst.cpp2283 UText testText = UTEXT_INITIALIZER; in API_Match_UTF8() local
2286 regextst_openUTF8FromInvariant(&testText, "This is test data", -1, &status); in API_Match_UTF8()
2287 REGEX_VERBOSE_TEXT(&testText); in API_Match_UTF8()
2289 RegexMatcher m(&testPattern, &testText, 0, status); in API_Match_UTF8()
2307 regextst_openUTF8FromInvariant(&testText, "short", -1, &status); in API_Match_UTF8()
2308 REGEX_VERBOSE_TEXT(&testText); in API_Match_UTF8()
2309 m.reset(&testText); in API_Match_UTF8()
2335 utext_close(&testText); in API_Match_UTF8()
2345 UText testText = UTEXT_INITIALIZER; in API_Match_UTF8() local
2349 utext_openUTF8(&testText, str_aabb, -1, &status); in API_Match_UTF8()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Dcitrtest.cpp162 … UnicodeString testText("Now is the time for all good men to come to the aid of their country."); in TestCoverage() local
165 SCharacterIterator* test = new SCharacterIterator(testText); in TestCoverage()
172 if(test->getLength()!=testText.length()){ in TestCoverage()
180 if(test->getIndex()!=testText.length()){ in TestCoverage()
195 … UnicodeString testText("Now is the time for all good men to come to the aid of their country."); in TestConstructionAndEquality() local
199 CharacterIterator* test1 = new StringCharacterIterator(testText); in TestConstructionAndEquality()
200 CharacterIterator* test1b= new StringCharacterIterator(testText, -1); in TestConstructionAndEquality()
201 CharacterIterator* test1c= new StringCharacterIterator(testText, 100); in TestConstructionAndEquality()
202 CharacterIterator* test1d= new StringCharacterIterator(testText, -2, 100, 5); in TestConstructionAndEquality()
203 CharacterIterator* test1e= new StringCharacterIterator(testText, 100, 20, 5); in TestConstructionAndEquality()
[all …]
Drbbitst.cpp4849 UnicodeString testText; in RunMonkey() local
4896 testText.truncate(0); in RunMonkey()
4906 testText.append(c); in RunMonkey()
4910 mk.setText(testText); in RunMonkey()
4920 if (breakPos > testText.length()) { in RunMonkey()
4924 U_ASSERT(expectedCount<testText.length()); in RunMonkey()
4932 UText *testUText = utext_openReplaceable(NULL, &testText, &status); in RunMonkey()
4940 bi->setText(testText); in RunMonkey()
4944 if (i < 0 || i > testText.length()) { in RunMonkey()
4954 if (i < 0 || i > testText.length()) { in RunMonkey()
[all …]
Dregextst.cpp2146 UText testText = UTEXT_INITIALIZER; in API_Match_UTF8() local
2149 regextst_openUTF8FromInvariant(&testText, "This is test data", -1, &status); in API_Match_UTF8()
2150 REGEX_VERBOSE_TEXT(&testText); in API_Match_UTF8()
2152 RegexMatcher m(&testPattern, &testText, 0, status); in API_Match_UTF8()
2170 regextst_openUTF8FromInvariant(&testText, "short", -1, &status); in API_Match_UTF8()
2171 REGEX_VERBOSE_TEXT(&testText); in API_Match_UTF8()
2172 m.reset(&testText); in API_Match_UTF8()
2198 utext_close(&testText); in API_Match_UTF8()
2208 UText testText = UTEXT_INITIALIZER; in API_Match_UTF8() local
2212 utext_openUTF8(&testText, str_aabb, -1, &status); in API_Match_UTF8()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DSmsManagerTest.java23 private String testText = "testSmsBodyText"; field in SmsManagerTest
46 smsManager.sendTextMessage(testDestinationAddress, testScAddress, testText, null, null); in shouldStoreLastSentTextMessageParameters()
52 Assert.assertEquals(testText, lastParams.getText()); in shouldStoreLastSentTextMessageParameters()
57 smsManager.sendTextMessage(testDestinationAddress, testScAddress, testText, null, null); in shouldClearLastSentTestMessageParameters()
64 smsManager.sendTextMessage("", testScAddress, testText, null, null); in sendTextMessage_shouldThrowExceptionWithEmptyDestination()
/external/skia/tests/
DSurfaceTest.cpp92 SkString testText("Hello World"); in TestSurfaceCopyOnWrite() local
130 EXPECT_COPY_ON_WRITE(drawText(testText.c_str(), testText.size(), 0, 1, testPaint)) in TestSurfaceCopyOnWrite()
131 EXPECT_COPY_ON_WRITE(drawPosText(testText.c_str(), testText.size(), testPoints2, \ in TestSurfaceCopyOnWrite()
133 EXPECT_COPY_ON_WRITE(drawTextOnPath(testText.c_str(), testText.size(), testPath, NULL, \ in TestSurfaceCopyOnWrite()
/external/chromium-trace/trace-viewer/src/ui/
Ddom_helpers_test.js15 var testText = 'some span text';
18 textContent: testText,
22 assertEquals(eltInDocument.textContent, testText);