Searched refs:testCases (Results 1 - 25 of 59) sorted by relevance

123

/external/chromium_org/third_party/WebKit/Source/core/css/
H A DMediaValuesTest.cpp27 TestCase testCases[] = { local
47 for (unsigned i = 0; testCases[i].viewportWidth; ++i) {
49 bool success = MediaValues::computeLength(testCases[i].value,
50 testCases[i].type,
51 testCases[i].fontSize,
52 testCases[i].viewportWidth,
53 testCases[i].viewportHeight,
55 ASSERT_EQ(testCases[i].success, success);
57 ASSERT_EQ(testCases[i].output, output);
H A DMediaQuerySetTest.cpp47 TestCase testCases[] = { local
165 for (unsigned i = 0; testCases[i].input; ++i) {
166 RefPtrWillBeRawPtr<MediaQuerySet> oldParserQuerySet = MediaQuerySet::create(testCases[i].input);
167 RefPtrWillBeRawPtr<MediaQuerySet> threadSafeQuerySet = MediaQuerySet::createOffMainThread(testCases[i].input);
168 testMediaQuery(testCases[i], *oldParserQuerySet, true);
169 testMediaQuery(testCases[i], *threadSafeQuerySet, false);
H A DMediaQueryEvaluatorTest.cpp78 void testMQEvaluator(TestCase* testCases, const MediaQueryEvaluator& mediaQueryEvaluator) argument
80 for (unsigned i = 0; testCases[i].input; ++i) {
81 RefPtrWillBeRawPtr<MediaQuerySet> querySet = MediaQuerySet::create(testCases[i].input);
82 ASSERT_EQ(testCases[i].output, mediaQueryEvaluator.eval(querySet.get()));
/external/chromium_org/third_party/WebKit/Source/core/css/parser/
H A DSizesAttributeParserTest.cpp23 TestCase testCases[] = { local
84 for (unsigned i = 0; testCases[i].input; ++i) {
85 SizesAttributeParser parser(mediaValues, testCases[i].input);
86 ASSERT_EQ(testCases[i].effectiveSize, parser.length());
87 ASSERT_EQ(testCases[i].viewportDependant, parser.viewportDependant());
H A DBisonCSSParserTest.cpp39 } testCases[] = { local
50 for (unsigned i = 0; i < ARRAY_SIZE(testCases); ++i) {
51 RefPtrWillBeRawPtr<StyleRuleBase> rule = parser.parseRule(nullptr, String(testCases[i].input));
54 testMediaQuery(testCases[i].output, *static_cast<StyleRuleMedia*>(rule.get())->mediaQueries());
H A DMediaConditionTest.cpp28 TestCase testCases[] = { local
41 for (unsigned i = 0; testCases[i].input; ++i) {
43 MediaQueryTokenizer::tokenize(testCases[i].input, tokens);
50 ASSERT_STREQ(testCases[i].output, queryText.ascii().data());
H A DSizesCalcParserTest.cpp53 TestCase testCases[] = { local
118 for (unsigned i = 0; testCases[i].input; ++i) {
120 MediaQueryTokenizer::tokenize(testCases[i].input, tokens);
122 ASSERT_EQ(testCases[i].valid, calcParser.isValid());
124 ASSERT_EQ(testCases[i].output, calcParser.result());
125 ASSERT_EQ(testCases[i].viewportDependant, calcParser.viewportDependant());
129 for (unsigned i = 0; testCases[i].input; ++i) {
130 if (testCases[i].dontRunInCSSCalc)
132 verifyCSSCalc(testCases[i].input, testCases[
[all...]
H A DMediaQueryTokenizerTest.cpp27 TestCase testCases[] = { local
63 for (int i = 0; testCases[i].input; ++i) {
65 MediaQueryTokenizer::tokenize(testCases[i].input, tokens);
69 ASSERT_STREQ(testCases[i].output, output.toString().ascii().data());
75 BlockTestCase testCases[] = { local
104 for (int i = 0; testCases[i].input; ++i) {
106 MediaQueryTokenizer::tokenize(testCases[i].input, tokens);
116 ASSERT_EQ(testCases[i].maxLevel, maxLevel);
117 ASSERT_EQ(testCases[i].finalLevel, level);
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
H A DHTMLSrcsetParserTest.cpp34 TestCase testCases[] = { local
100 for (unsigned i = 0; testCases[i].srcInput; ++i) {
101 TestCase test = testCases[i];
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitperl/VCSUtils_unittest/
H A DprepareParsedPatch.pl52 my @testCases = (
124 my $testCasesCount = @testCases;
127 foreach my $testCase (@testCases) {
/external/chromium_org/ui/webui/resources/js/
H A 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/
H A 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)
H A 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/icu/source/test/cintltst/
H A Dcg7coll.c67 const static UChar testCases[][MAX_TOKEN_LEN] = { variable
178 doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS);
211 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], UCOL_LESS);
241 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], UCOL_LESS);
271 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], UCOL_LESS);
300 doTest(myCollation, testCases[result
[all...]
H A Dputiltst.c305 const char *testCases[] = { local
320 for(j=0;testCases[j]!=NULL;j+=3) {
321 v1str = testCases[j+0];
322 opstr = testCases[j+1];
323 v2str = testCases[j+2];
550 } testCases[] = { local
568 int32_t count=(sizeof(testCases)/sizeof(testCases[0]));
575 const char *input = STRNULL(testCases[i].inBuf);
576 const char *expect = STRNULL(testCases[
596 } testCases[] = { local
[all...]
H A Dcloctst.c1676 } testCases[] = { local
1715 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
1718 keywords = uloc_openKeywords(testCases[i].localeID, &status);
1720 if(status != testCases[i].expectedStatus) {
1722 testCases[i].localeID,
1723 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1727 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) {
1728 log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
1733 if(strcmp(keyword, testCases[
1770 } testCases[] = { local
1985 } testCases[] = { local
2127 } testCases[] = { local
2190 } testCases[] = { local
2339 } testCases[] = { local
[all...]
/external/chromium_org/third_party/icu/source/test/intltest/
H A Dg7coll.cpp19 static const UChar testCases[][G7CollationTest::MAX_TOKEN_LEN] = { variable
149 doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], Collator::LESS);
184 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS);
218 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS);
252 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS);
281 doTest(myCollation, testCases[result
[all...]
H A Dloctest.cpp1597 } testCases[] = { local
1627 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1629 Locale l(testCases[i].localeID);
1632 if(status != testCases[i].expectedStatus) {
1634 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1638 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) {
1639 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
1647 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) {
1648 err("Expected to get keyword value %s, got %s\n", testCases[
1700 } testCases[] = { local
1730 } testCases[] = { local
1765 } testCases[] = { local
2113 } testCases[] = { local
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dcg7coll.c68 const static UChar testCases[][MAX_TOKEN_LEN] = { variable
190 doTest(myCollation, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS);
222 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], UCOL_LESS);
252 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], UCOL_LESS);
282 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], UCOL_LESS);
311 doTest(myCollation, testCases[result
[all...]
H A Dputiltst.c305 const char *testCases[] = { local
320 for(j=0;testCases[j]!=NULL;j+=3) {
321 v1str = testCases[j+0];
322 opstr = testCases[j+1];
323 v2str = testCases[j+2];
550 } testCases[] = { local
568 int32_t count=(sizeof(testCases)/sizeof(testCases[0]));
575 const char *input = STRNULL(testCases[i].inBuf);
576 const char *expect = STRNULL(testCases[
596 } testCases[] = { local
[all...]
H A Dcloctst.c1677 } testCases[] = { local
1716 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
1719 keywords = uloc_openKeywords(testCases[i].localeID, &status);
1721 if(status != testCases[i].expectedStatus) {
1723 testCases[i].localeID,
1724 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1728 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) {
1729 log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
1734 if(strcmp(keyword, testCases[
1771 } testCases[] = { local
1986 } testCases[] = { local
2128 } testCases[] = { local
2191 } testCases[] = { local
2340 } testCases[] = { local
[all...]
/external/icu/icu4c/source/test/intltest/
H A 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);
174 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS);
208 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS);
242 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS);
271 doTest(myCollation, testCases[result
[all...]
H A Dloctest.cpp1597 } testCases[] = { local
1627 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1629 Locale l(testCases[i].localeID);
1632 if(status != testCases[i].expectedStatus) {
1634 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1638 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) {
1639 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
1647 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) {
1648 err("Expected to get keyword value %s, got %s\n", testCases[
1700 } testCases[] = { local
1730 } testCases[] = { local
1765 } testCases[] = { local
2113 } testCases[] = { local
[all...]
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
H A DPhoneNumberMatcherTest.java542 List<NumberTest> testCases = new ArrayList<NumberTest>();
543 testCases.addAll(Arrays.asList(STRICT_GROUPING_CASES));
544 testCases.addAll(Arrays.asList(EXACT_GROUPING_CASES));
545 testCases.addAll(Arrays.asList(VALID_CASES));
546 testCases.addAll(Arrays.asList(POSSIBLE_ONLY_CASES));
547 doTestNumberMatchesForLeniency(testCases, Leniency.POSSIBLE);
551 List<NumberTest> testCases = new ArrayList<NumberTest>();
552 testCases.addAll(Arrays.asList(IMPOSSIBLE_CASES));
553 doTestNumberNonMatchesForLeniency(testCases, Leniency.POSSIBLE);
557 List<NumberTest> testCases
601 doTestNumberMatchesForLeniency(List<NumberTest> testCases, Leniency leniency) argument
623 doTestNumberNonMatchesForLeniency(List<NumberTest> testCases, Leniency leniency) argument
[all...]
/external/deqp/execserver/tools/
H A DxsTest.cpp205 void runCases (const std::vector<TestCase*>& testCases);
221 void TestExecutor::runCases (const std::vector<TestCase*>& testCases) argument
224 int numCases = (int)testCases.size();
226 for (std::vector<TestCase*>::const_iterator i = testCases.begin(); i != testCases.end(); i++)
891 std::vector<TestCase*> testCases;
892 testCases.push_back(new ConnectTest(testCtx));
893 testCases.push_back(new HelloTest(testCtx));
894 testCases.push_back(new ExecFailTest(testCtx));
895 testCases
[all...]

Completed in 678 milliseconds

123