Home
last modified time | relevance | path

Searched refs:testCases (Results 1 – 25 of 57) sorted by relevance

123

/external/chromium_org/third_party/WebKit/Source/core/css/
DMediaValuesTest.cpp27 TestCase testCases[] = { in TEST() local
47 for (unsigned i = 0; testCases[i].viewportWidth; ++i) { in TEST()
49 bool success = MediaValues::computeLength(testCases[i].value, in TEST()
50 testCases[i].type, in TEST()
51 testCases[i].fontSize, in TEST()
52 testCases[i].viewportWidth, in TEST()
53 testCases[i].viewportHeight, in TEST()
55 ASSERT_EQ(testCases[i].success, success); in TEST()
57 ASSERT_EQ(testCases[i].output, output); in TEST()
DMediaQuerySetTest.cpp47 TestCase testCases[] = { in TEST() local
163 for (unsigned i = 0; testCases[i].input; ++i) { in TEST()
164 … RefPtrWillBeRawPtr<MediaQuerySet> oldParserQuerySet = MediaQuerySet::create(testCases[i].input); in TEST()
165 …eRawPtr<MediaQuerySet> threadSafeQuerySet = MediaQuerySet::createOffMainThread(testCases[i].input); in TEST()
166 testMediaQuery(testCases[i], *oldParserQuerySet, true); in TEST()
167 testMediaQuery(testCases[i], *threadSafeQuerySet, false); in TEST()
/external/chromium_org/third_party/WebKit/Source/core/css/parser/
DSizesCalcParserTest.cpp53 TestCase testCases[] = { in TEST() local
119 for (unsigned i = 0; testCases[i].input; ++i) { in TEST()
121 MediaQueryTokenizer::tokenize(testCases[i].input, tokens); in TEST()
124 ASSERT_EQ(testCases[i].valid, valid); in TEST()
126 ASSERT_EQ(testCases[i].output, output); in TEST()
129 for (unsigned i = 0; testCases[i].input; ++i) { in TEST()
130 if (testCases[i].dontRunInCSSCalc) in TEST()
132 …verifyCSSCalc(testCases[i].input, testCases[i].output, testCases[i].valid, data.defaultFontSize, d… in TEST()
DMediaQueryTokenizerTest.cpp27 TestCase testCases[] = { in TEST() local
63 for (int i = 0; testCases[i].input; ++i) { in TEST()
65 MediaQueryTokenizer::tokenize(testCases[i].input, tokens); in TEST()
69 ASSERT_STREQ(testCases[i].output, output.toString().ascii().data()); in TEST()
75 BlockTestCase testCases[] = { in TEST() local
104 for (int i = 0; testCases[i].input; ++i) { in TEST()
106 MediaQueryTokenizer::tokenize(testCases[i].input, tokens); in TEST()
116 ASSERT_EQ(testCases[i].maxLevel, maxLevel); in TEST()
117 ASSERT_EQ(testCases[i].finalLevel, level); in TEST()
DMediaConditionTest.cpp28 TestCase testCases[] = { in TEST() local
41 for (unsigned i = 0; testCases[i].input; ++i) { in TEST()
43 MediaQueryTokenizer::tokenize(testCases[i].input, tokens); in TEST()
50 ASSERT_STREQ(testCases[i].output, queryText.ascii().data()); in TEST()
DSizesAttributeParserTest.cpp21 TestCase testCases[] = { in TEST() local
76 for (unsigned i = 0; testCases[i].input; ++i) { in TEST()
77 … int effectiveSize = SizesAttributeParser::findEffectiveSize(testCases[i].input, mediaValues); in TEST()
78 ASSERT_EQ(testCases[i].output, effectiveSize); in TEST()
/external/chromium_org/third_party/icu/source/test/cintltst/
Dcg7coll.c67 const static UChar testCases[][MAX_TOKEN_LEN] = { variable
178 doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS); in TestG7Locales()
211 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], UCOL_LESS); in TestDemo1()
241 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], UCOL_LESS); in TestDemo2()
271 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], UCOL_LESS); in TestDemo3()
300 doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], UCOL_LESS); in TestDemo4()
Dputiltst.c294 const char *testCases[] = { in TestCompareVersions() local
309 for(j=0;testCases[j]!=NULL;j+=3) { in TestCompareVersions()
310 v1str = testCases[j+0]; in TestCompareVersions()
311 opstr = testCases[j+1]; in TestCompareVersions()
312 v2str = testCases[j+2]; in TestCompareVersions()
539 } testCases[] = { in toolutil_findBasename() local
557 int32_t count=(sizeof(testCases)/sizeof(testCases[0])); in toolutil_findBasename()
564 const char *input = STRNULL(testCases[i].inBuf); in toolutil_findBasename()
565 const char *expect = STRNULL(testCases[i].expectResult); in toolutil_findBasename()
567 result = STRNULL(findBasename(testCases[i].inBuf)); in toolutil_findBasename()
[all …]
Dcloctst.c1450 } testCases[] = { in TestKeywordVariants() local
1489 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestKeywordVariants()
1492 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1494 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1496 testCases[i].localeID, in TestKeywordVariants()
1497 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1501 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1502 … log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1507 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1508 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcg7coll.c68 const static UChar testCases[][MAX_TOKEN_LEN] = { variable
190 doTest(myCollation, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS); in TestG7Locales()
222 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], UCOL_LESS); in TestDemo1()
252 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], UCOL_LESS); in TestDemo2()
282 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], UCOL_LESS); in TestDemo3()
311 doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], UCOL_LESS); in TestDemo4()
Dputiltst.c305 const char *testCases[] = { in TestCompareVersions() local
320 for(j=0;testCases[j]!=NULL;j+=3) { in TestCompareVersions()
321 v1str = testCases[j+0]; in TestCompareVersions()
322 opstr = testCases[j+1]; in TestCompareVersions()
323 v2str = testCases[j+2]; in TestCompareVersions()
550 } testCases[] = { in toolutil_findBasename() local
568 int32_t count=(sizeof(testCases)/sizeof(testCases[0])); in toolutil_findBasename()
575 const char *input = STRNULL(testCases[i].inBuf); in toolutil_findBasename()
576 const char *expect = STRNULL(testCases[i].expectResult); in toolutil_findBasename()
578 result = STRNULL(findBasename(testCases[i].inBuf)); in toolutil_findBasename()
[all …]
Dcloctst.c1677 } testCases[] = { in TestKeywordVariants() local
1716 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestKeywordVariants()
1719 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1721 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1723 testCases[i].localeID, in TestKeywordVariants()
1724 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1728 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1729 … log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1734 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1735 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Dg7coll.cpp19 static const UChar testCases[][G7CollationTest::MAX_TOKEN_LEN] = { variable
149 … doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); in TestG7Locales()
184 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); in TestDemo1()
218 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS); in TestDemo2()
252 … doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS); in TestDemo3()
281 … doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], Collator::LESS); in TestDemo4()
Dloctest.cpp1576 } testCases[] = { in TestKeywordVariants() local
1606 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) { in TestKeywordVariants()
1608 Locale l(testCases[i].localeID); in TestKeywordVariants()
1611 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1613 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1617 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1618 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1626 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1627 … err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1633 if(*keywordString != UnicodeString(testCases[i].expectedKeywords[j], "")) { in TestKeywordVariants()
[all …]
/external/icu/icu4c/source/test/intltest/
Dg7coll.cpp20 static const UChar testCases[][G7CollationTest::MAX_TOKEN_LEN] = { variable
142 …doTest(myCollation.getAlias(), testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); in TestG7Locales()
174 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); in TestDemo1()
208 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS); in TestDemo2()
242 … doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS); in TestDemo3()
271 … doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], Collator::LESS); in TestDemo4()
Dloctest.cpp1597 } testCases[] = { in TestKeywordVariants() local
1627 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) { in TestKeywordVariants()
1629 Locale l(testCases[i].localeID); in TestKeywordVariants()
1632 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1634 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1638 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1639 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1647 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1648 … err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1654 if(*keywordString != UnicodeString(testCases[i].expectedKeywords[j], "")) { in TestKeywordVariants()
[all …]
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
DPhoneNumberMatcherTest.java538 List<NumberTest> testCases = new ArrayList<NumberTest>(); in testMatchesWithPossibleLeniency() local
539 testCases.addAll(Arrays.asList(STRICT_GROUPING_CASES)); in testMatchesWithPossibleLeniency()
540 testCases.addAll(Arrays.asList(EXACT_GROUPING_CASES)); in testMatchesWithPossibleLeniency()
541 testCases.addAll(Arrays.asList(VALID_CASES)); in testMatchesWithPossibleLeniency()
542 testCases.addAll(Arrays.asList(POSSIBLE_ONLY_CASES)); in testMatchesWithPossibleLeniency()
543 doTestNumberMatchesForLeniency(testCases, Leniency.POSSIBLE); in testMatchesWithPossibleLeniency()
547 List<NumberTest> testCases = new ArrayList<NumberTest>(); in testNonMatchesWithPossibleLeniency() local
548 testCases.addAll(Arrays.asList(IMPOSSIBLE_CASES)); in testNonMatchesWithPossibleLeniency()
549 doTestNumberNonMatchesForLeniency(testCases, Leniency.POSSIBLE); in testNonMatchesWithPossibleLeniency()
553 List<NumberTest> testCases = new ArrayList<NumberTest>(); in testMatchesWithValidLeniency() local
[all …]
/external/deqp/execserver/tools/
DxsTest.cpp205 void runCases (const std::vector<TestCase*>& testCases);
221 void TestExecutor::runCases (const std::vector<TestCase*>& testCases) in runCases() argument
224 int numCases = (int)testCases.size(); in runCases()
226 for (std::vector<TestCase*>::const_iterator i = testCases.begin(); i != testCases.end(); i++) in runCases()
891 std::vector<TestCase*> testCases; in runExecServerTests() local
892 testCases.push_back(new ConnectTest(testCtx)); in runExecServerTests()
893 testCases.push_back(new HelloTest(testCtx)); in runExecServerTests()
894 testCases.push_back(new ExecFailTest(testCtx)); in runExecServerTests()
895 testCases.push_back(new SimpleExecTest(testCtx)); in runExecServerTests()
896 testCases.push_back(new InfoTest(testCtx)); in runExecServerTests()
[all …]
/external/chromium_org/ui/webui/resources/js/
Dwebui_resource_test.js126 var testCases = [];
147 testCases.push(name);
149 if (!testCases.length) {
170 if (testCases.length > 0) {
171 var fn = testCases.pop();
/external/deqp/android/scripts/
DGenAndroidCTSXMLFromTestList.py9 self.testCases = []
37 for test in self.testCases:
43 for test in self.testCases:
49 return len(self.testCases) != 0
55 return self.testCases
66 self.parent.testCases.append(self)
DGenAndroidCTSXML.py9 self.testCases = {}
31 return testName in self.testCases
34 return self.testCases[testName]
37 return len(self.testCases) != 0
43 return self.testCases.values()
53 assert not name in self.parent.testCases
54 self.parent.testCases[name] = self
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
DHTMLSrcsetParserTest.cpp34 TestCase testCases[] = { in TEST() local
93 for (unsigned i = 0; testCases[i].srcInput; ++i) { in TEST()
94 TestCase test = testCases[i]; in TEST()
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitperl/VCSUtils_unittest/
DprepareParsedPatch.pl52 my @testCases = (
124 my $testCasesCount = @testCases;
127 foreach my $testCase (@testCases) {
/external/compiler-rt/test/builtins/Unit/ppc/
Dfixtfdi_test.c12 const struct testVector testCases[] = { variable
450 const int numTestCases = sizeof(testCases) / sizeof(struct testVector);
461 input.hi = testCases[i].xhi; in main()
462 input.lo = testCases[i].xlo; in main()
463 expected_result = testCases[i].result; in main()
/external/skia/tests/
DClipStackTest.cpp1081 } testCases[] = { in test_reduced_clip_stack_genid() local
1121 for (size_t i = 0; i < SK_ARRAY_COUNT(testCases); ++i) { in test_reduced_clip_stack_genid()
1128 testCases[i].testBounds, in test_reduced_clip_stack_genid()
1132testCases[i].tighterBounds.isEmpty() ? NULL : &tightBounds); in test_reduced_clip_stack_genid()
1134 REPORTER_ASSERT(reporter, reducedClips.count() == testCases[i].reducedClipCount); in test_reduced_clip_stack_genid()
1135 SkASSERT(reducedClips.count() == testCases[i].reducedClipCount); in test_reduced_clip_stack_genid()
1136 REPORTER_ASSERT(reporter, reducedGenID == testCases[i].reducedGenID); in test_reduced_clip_stack_genid()
1137 SkASSERT(reducedGenID == testCases[i].reducedGenID); in test_reduced_clip_stack_genid()
1138 REPORTER_ASSERT(reporter, initial == testCases[i].initialState); in test_reduced_clip_stack_genid()
1139 SkASSERT(initial == testCases[i].initialState); in test_reduced_clip_stack_genid()
[all …]

123