Home
last modified time | relevance | path

Searched refs:testCase (Results 1 – 25 of 53) sorted by relevance

123

/external/icu4c/test/intltest/
Duts46test.cpp585 const TestCase &testCase=testCases[i]; in TestSomeCases() local
586 UnicodeString input(ctou(testCase.s)); in TestSomeCases()
587 UnicodeString expected(ctou(testCase.u)); in TestSomeCases()
596 (int)i, testCase.o, testCase.s) in TestSomeCases()
601 uint32_t uniErrors=testCase.errors&~ in TestSomeCases()
605 char mode=testCase.o[0]; in TestSomeCases()
609 (int)i, testCase.s, (long)uNInfo.getErrors()); in TestSomeCases()
615 (int)i, testCase.s, buffer); in TestSomeCases()
618 if(aNInfo.getErrors()!=testCase.errors) { in TestSomeCases()
620 (int)i, testCase.s, (long)aNInfo.getErrors()); in TestSomeCases()
[all …]
Dssearch.cpp138 const UXMLElement *testCase; in searchTest() local
141 while((testCase = root->nextChildElement(tc)) != NULL) { in searchTest()
143 if (testCase->getTagName().compare("test-case") != 0) { in searchTest()
147 const UnicodeString *id = testCase->getAttribute("id"); in searchTest()
161 const UnicodeString *strength = testCase->getAttribute("strength"); in searchTest()
182 const UnicodeString *norm = testCase->getAttribute("norm"); in searchTest()
192 const UnicodeString *alt = testCase->getAttribute("alternate_handling"); in searchTest()
200 const UnicodeString *locale = testCase->getAttribute("locale"); in searchTest()
215 n = testCase->getChildElement("pattern"); in searchTest()
225 n = testCase->getChildElement("pre"); in searchTest()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Duts46test.cpp561 const TestCase &testCase=testCases[i]; in TestSomeCases() local
562 UnicodeString input(ctou(testCase.s)); in TestSomeCases()
563 UnicodeString expected(ctou(testCase.u)); in TestSomeCases()
572 (int)i, testCase.o, testCase.s) in TestSomeCases()
577 uint32_t uniErrors=testCase.errors&~ in TestSomeCases()
581 char mode=testCase.o[0]; in TestSomeCases()
585 (int)i, testCase.s, (long)uNInfo.getErrors()); in TestSomeCases()
591 (int)i, testCase.s, buffer); in TestSomeCases()
594 if(aNInfo.getErrors()!=testCase.errors) { in TestSomeCases()
596 (int)i, testCase.s, (long)aNInfo.getErrors()); in TestSomeCases()
[all …]
Dssearch.cpp172 const UXMLElement *testCase; in searchTest() local
175 while((testCase = root->nextChildElement(tc)) != NULL) { in searchTest()
177 if (testCase->getTagName().compare("test-case") != 0) { in searchTest()
181 const UnicodeString *id = testCase->getAttribute("id"); in searchTest()
195 const UnicodeString *strength = testCase->getAttribute("strength"); in searchTest()
216 const UnicodeString *norm = testCase->getAttribute("norm"); in searchTest()
226 const UnicodeString *alt = testCase->getAttribute("alternate_handling"); in searchTest()
234 const UnicodeString *locale = testCase->getAttribute("locale"); in searchTest()
249 n = testCase->getChildElement("pattern"); in searchTest()
259 n = testCase->getChildElement("pre"); in searchTest()
[all …]
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/contextmenu/
DContextMenuUtils.java38 public static ContextMenu openContextMenu(ActivityInstrumentationTestCase2 testCase, in openContextMenu() argument
47 DOMUtils.longPressNode(testCase, tab.getContentView(), client, openerDOMNodeId); in openContextMenu()
64 public static void selectContextMenuItem(ActivityInstrumentationTestCase2 testCase, in selectContextMenuItem() argument
67 ContextMenu menu = openContextMenu(testCase, tab, client, openerDOMNodeId); in selectContextMenuItem()
70 selectOpenContextMenuItem(testCase, menu, itemId); in selectContextMenuItem()
84 public static void selectContextMenuItemByTitle(ActivityInstrumentationTestCase2 testCase, in selectContextMenuItemByTitle() argument
88 ContextMenu menu = openContextMenu(testCase, tab, client, openerDOMNodeId); in selectContextMenuItemByTitle()
101 selectOpenContextMenuItem(testCase, menu, itemId); in selectContextMenuItemByTitle()
104 private static void selectOpenContextMenuItem(final ActivityInstrumentationTestCase2 testCase, in selectOpenContextMenuItem() argument
111 testCase.getInstrumentation().runOnMainSync(new Runnable() { in selectOpenContextMenuItem()
[all …]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitperl/VCSUtils_unittest/
DsetChangeLogDateAndReviewer.pl117 foreach my $testCase (@testCaseHashRefs) {
118 my $testNameStart = "setChangeLogDateAndReviewer(): $testCase->{testName}: comparing";
120 my $patch = $testCase->{patch};
121 my $reviewer = $testCase->{reviewer};
122 my $epochTime = $testCase->{epochTime};
125 my $expectedReturn = $testCase->{expectedReturn};
DfixChangeLogPatchThenSetChangeLogDateAndReviewer.pl80 foreach my $testCase (@testCaseHashRefs) {
81 …my $testNameStart = "setChangeLogDateAndReviewer(fixChangeLogPatch()): $testCase->{testName}: comp…
83 my $patch = $testCase->{patch};
84 my $reviewer = $testCase->{reviewer};
85 my $epochTime = $testCase->{epochTime};
89 my $expectedReturn = $testCase->{expectedReturn};
DparseDiffHeader.pl107 foreach my $testCase (@testCaseHashRefs) {
108 my $testNameStart = "parseDiffHeader(): $testCase->{diffName}: comparing";
111 open($fileHandle, "<", \$testCase->{inputText});
115 my $expectedReturn = $testCase->{expectedReturn};
120 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
DparseSvnDiffHeader.pl274 foreach my $testCase (@testCaseHashRefs) {
275 my $testNameStart = "parseSvnDiffHeader(): $testCase->{diffName}: comparing";
278 open($fileHandle, "<", \$testCase->{inputText});
282 my $expectedReturn = $testCase->{expectedReturn};
287 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
DrunCommand.pl68 foreach my $testCase (@testCaseHashRefs) {
69 my $testNameStart = "runCommand(): $testCase->{testName}: comparing";
71 my $got = VCSUtils::runCommand(@{$testCase->{inputArgs}});
72 my $expectedReturn = $testCase->{expectedReturn};
DparseSvnPropertyValue.pl243 foreach my $testCase (@testCaseHashRefs) {
244 my $testNameStart = "parseSvnPropertyValue(): $testCase->{diffName}: comparing";
247 open($fileHandle, "<", \$testCase->{inputText});
251 my $expectedReturn = $testCase->{expectedReturn};
256 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
DfixChangeLogPatch.pl518 foreach my $testCase (@testCaseHashRefs) {
519 my $testNameStart = "fixChangeLogPatch(): $testCase->{diffName}: comparing";
521 my $got = VCSUtils::fixChangeLogPatch($testCase->{inputText});
522 my $expectedReturn = $testCase->{expectedReturn};
DparseChunkRange.pl260 foreach my $testCase (@testCaseHashRefs) {
261 my $testNameStart = "parseChunkRange(): $testCase->{testName}: comparing";
263 my @got = VCSUtils::parseChunkRange($testCase->{inputText}, $testCase->{chunkSentinel});
264 my $expectedReturn = $testCase->{expectedReturn};
DparseSvnDiffFooter.pl429 foreach my $testCase (@testCaseHashRefs) {
430 my $testNameStart = "parseSvnDiffProperties(): $testCase->{diffName}: comparing";
433 open($fileHandle, "<", \$testCase->{inputText});
437 my $expectedReturn = $testCase->{expectedReturn};
442 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
DparseGitDiffHeader.pl480 foreach my $testCase (@testCaseHashRefs) {
481 my $testNameStart = "parseGitDiffHeader(): $testCase->{diffName}: comparing";
484 open($fileHandle, "<", \$testCase->{inputText});
488 my $expectedReturn = $testCase->{expectedReturn};
493 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
DprepareParsedPatch.pl127 foreach my $testCase (@testCases) {
128 my $testName = $testCase->{testName};
129 my @diffHashRefs = @{$testCase->{diffHashRefsInput}};
130 my $expected = $testCase->{expected};
/external/chromium_org/third_party/WebKit/Source/wtf/text/
DTextCodecUTF8Test.cpp51 const char testCase[] = "HelloWorld"; in TEST() local
52 size_t testCaseSize = sizeof(testCase) - 1; in TEST()
55 const String& result = codec->decode(testCase, testCaseSize, true, false, sawError); in TEST()
59 EXPECT_EQ(testCase[i], result[i]); in TEST()
69 const char testCase[] = "\xe6\xbc\xa2\xe5\xad\x97"; in TEST() local
70 size_t testCaseSize = sizeof(testCase) - 1; in TEST()
73 const String& result = codec->decode(testCase, testCaseSize, true, false, sawError); in TEST()
/external/junit/src/junit/textui/
DTestRunner.java153 String testCase= ""; in start() local
161 testCase= extractClassName(args[++i]); in start()
165 testCase= arg.substring(0, lastIndex); in start()
170 testCase= args[i]; in start()
173 if (testCase.equals("")) in start()
178 return runSingleMethod(testCase, method, wait); in start()
179 Test suite= getTest(testCase); in start()
186 …protected TestResult runSingleMethod(String testCase, String method, boolean wait) throws Exceptio… in runSingleMethod() argument
187 Class<? extends TestCase> testClass= loadSuiteClass(testCase).asSubclass(TestCase.class); in runSingleMethod()
/external/chromium_org/third_party/icu/source/test/iotest/
Diotest.cpp199 const DataMap *testCase; in DataDrivenPrintf() local
226 for(i=0; testData->nextCase(testCase, errorCode); ++i) { in DataDrivenPrintf()
241 tempStr=testCase->getString("format", errorCode); in DataDrivenPrintf()
243 tempStr=testCase->getString("result", errorCode); in DataDrivenPrintf()
245 tempStr=testCase->getString("argument", errorCode); in DataDrivenPrintf()
255 switch (testCase->getString("argumentType", errorCode)[0]) { in DataDrivenPrintf()
293 … log_err("Unknown type %c for test %d\n", testCase->getString("argumentType", errorCode)[0], i); in DataDrivenPrintf()
365 const DataMap *testCase; in DataDrivenScanf() local
392 for(i=0; testData->nextCase(testCase, errorCode); ++i) { in DataDrivenScanf()
406 tempStr=testCase->getString("format", errorCode); in DataDrivenScanf()
[all …]
/external/icu4c/test/iotest/
Diotest.cpp200 const DataMap *testCase; in DataDrivenPrintf() local
227 for(i=0; testData->nextCase(testCase, errorCode); ++i) { in DataDrivenPrintf()
242 tempStr=testCase->getString("format", errorCode); in DataDrivenPrintf()
244 tempStr=testCase->getString("result", errorCode); in DataDrivenPrintf()
246 tempStr=testCase->getString("argument", errorCode); in DataDrivenPrintf()
256 switch (testCase->getString("argumentType", errorCode)[0]) { in DataDrivenPrintf()
294 … log_err("Unknown type %c for test %d\n", testCase->getString("argumentType", errorCode)[0], i); in DataDrivenPrintf()
366 const DataMap *testCase; in DataDrivenScanf() local
393 for(i=0; testData->nextCase(testCase, errorCode); ++i) { in DataDrivenScanf()
407 tempStr=testCase->getString("format", errorCode); in DataDrivenScanf()
[all …]
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/util/
DJSUtils.java28 final InstrumentationTestCase testCase, in clickOnLinkUsingJs() argument
37 String linkIsNotNull = executeJavaScriptAndWaitForResult(testCase, awContents, in clickOnLinkUsingJs()
49 testCase.getInstrumentation().runOnMainSync(new Runnable() { in clickOnLinkUsingJs()
63 InstrumentationTestCase testCase, in executeJavaScriptAndWaitForResult() argument
67 testCase.getInstrumentation().runOnMainSync(new Runnable() { in executeJavaScriptAndWaitForResult()
/external/chromium_org/third_party/icu/source/test/letest/
Dgendata.cpp145 const UXMLElement *testCase; in main() local
148 while((testCase = root->nextChildElement(tc)) != NULL) { in main()
149 if (testCase->getTagName().compare(test_case) == 0) { in main()
150 char *id = getCString(testCase->getAttribute(id_attr)); in main()
151 char *script = getCString(testCase->getAttribute(script_attr)); in main()
152 char *lang = getCString(testCase->getAttribute(lang_attr)); in main()
187 while((element = testCase->nextChildElement(ec)) != NULL) { in main()
Dxmlreader.cpp163 const UXMLElement *testCase; in readTestFile() local
166 while((testCase = root->nextChildElement(tc)) != NULL) { in readTestFile()
167 if (testCase->getTagName().compare(test_case) == 0) { in readTestFile()
168 char *id = getCString(testCase->getAttribute(id_attr)); in readTestFile()
169 char *script = getCString(testCase->getAttribute(script_attr)); in readTestFile()
170 char *lang = getCString(testCase->getAttribute(lang_attr)); in readTestFile()
199 while((element = testCase->nextChildElement(ec)) != NULL) { in readTestFile()
/external/icu4c/test/letest/
Dgendata.cpp145 const UXMLElement *testCase; in main() local
148 while((testCase = root->nextChildElement(tc)) != NULL) { in main()
149 if (testCase->getTagName().compare(test_case) == 0) { in main()
150 char *id = getCString(testCase->getAttribute(id_attr)); in main()
151 char *script = getCString(testCase->getAttribute(script_attr)); in main()
152 char *lang = getCString(testCase->getAttribute(lang_attr)); in main()
187 while((element = testCase->nextChildElement(ec)) != NULL) { in main()
Dxmlreader.cpp163 const UXMLElement *testCase; in readTestFile() local
166 while((testCase = root->nextChildElement(tc)) != NULL) { in readTestFile()
167 if (testCase->getTagName().compare(test_case) == 0) { in readTestFile()
168 char *id = getCString(testCase->getAttribute(id_attr)); in readTestFile()
169 char *script = getCString(testCase->getAttribute(script_attr)); in readTestFile()
170 char *lang = getCString(testCase->getAttribute(lang_attr)); in readTestFile()
199 while((element = testCase->nextChildElement(ec)) != NULL) { in readTestFile()

123