Lines Matching defs:tests
27 #include "tests/Test.h"
710 // As written these tests were failing on LLVM 4.2 MacMini Release mysteriously, so we've
2033 // passing tests (all moveTo / lineTo...
2050 // failing tests
2079 } tests[] = {
2117 const size_t testCount = SK_ARRAY_COUNT(tests);
2121 path.moveTo(tests[testIndex].fPoints[0].fX, tests[testIndex].fPoints[0].fY);
2122 for (index = 1; index < tests[testIndex].fPointCount; ++index) {
2123 path.lineTo(tests[testIndex].fPoints[index].fX, tests[testIndex].fPoints[index].fY);
2125 if (tests[testIndex].fClose) {
2128 REPORTER_ASSERT(reporter, tests[testIndex].fIsRect == path.isRect(nullptr));
2130 if (tests[testIndex].fIsRect) {
2134 int pointCount = tests[testIndex].fPointCount - (d2 == tests[testIndex].fPoints);
2135 expected.setBounds(tests[testIndex].fPoints, pointCount);
2140 REPORTER_ASSERT(reporter, isClosed == tests[testIndex].fClose);
2357 // passing tests (all moveTo / lineTo...
2373 // failing tests
2393 } tests[] = {
2422 const size_t testCount = SK_ARRAY_COUNT(tests);
2430 path.moveTo(tests[testIndex].fPoints[0].fX, tests[testIndex].fPoints[0].fY);
2431 for (index = 1; index < tests[testIndex].fPointCount; ++index) {
2432 path.lineTo(tests[testIndex].fPoints[index].fX, tests[testIndex].fPoints[index].fY);
2434 if (tests[testIndex].fClose) {
2441 tests[testIndex].fIsNestedRect == SkPathPriv::IsNestedFillRects(path, nullptr));
2442 if (tests[testIndex].fIsNestedRect) {
2447 testBounds.setBounds(tests[testIndex].fPoints, tests[testIndex].fPointCount);
2455 expectedDirs[1] = tests[testIndex].fDirection;
5117 const char* tests[] = {
5123 for (auto test : tests) {