OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #include "PathOpsExtendedTest.h" | 7 #include "PathOpsExtendedTest.h" |
8 | 8 |
9 #define TEST(name) { name, #name } | 9 #define TEST(name) { name, #name } |
10 | 10 |
(...skipping 3673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3684 pathB.moveTo(81, 1393.33337f); | 3684 pathB.moveTo(81, 1393.33337f); |
3685 pathB.lineTo(341, 1393.33337f); | 3685 pathB.lineTo(341, 1393.33337f); |
3686 pathB.cubicTo(342.840942f, 1393.33337f, 344.333344f, 1394.82568f, 344.333344
f, 1396.66675f); | 3686 pathB.cubicTo(342.840942f, 1393.33337f, 344.333344f, 1394.82568f, 344.333344
f, 1396.66675f); |
3687 pathB.lineTo(344.333344f, 1465.66675f); | 3687 pathB.lineTo(344.333344f, 1465.66675f); |
3688 pathB.cubicTo(344.333344f, 1467.32361f, 342.840942f, 1468.66675f, 341, 1468.
66675f); | 3688 pathB.cubicTo(344.333344f, 1467.32361f, 342.840942f, 1468.66675f, 341, 1468.
66675f); |
3689 pathB.lineTo(81, 1468.66675f); | 3689 pathB.lineTo(81, 1468.66675f); |
3690 pathB.cubicTo(79.15905f, 1468.66675f, 77.6666718f, 1467.32361f, 77.6666718f,
1465.66675f); | 3690 pathB.cubicTo(79.15905f, 1468.66675f, 77.6666718f, 1467.32361f, 77.6666718f,
1465.66675f); |
3691 pathB.lineTo(77.6666718f, 1396.66675f); | 3691 pathB.lineTo(77.6666718f, 1396.66675f); |
3692 pathB.cubicTo(77.6666718f, 1394.82568f, 79.15905f, 1393.33337f, 81, 1393.333
37f); | 3692 pathB.cubicTo(77.6666718f, 1394.82568f, 79.15905f, 1393.33337f, 81, 1393.333
37f); |
3693 pathB.close(); | 3693 pathB.close(); |
3694 testPathOp(reporter, path, pathB, kIntersect_SkPathOp, filename); | 3694 testPathOpCheck(reporter, path, pathB, kIntersect_SkPathOp, filename, FLAGS_
runFail); |
3695 } | 3695 } |
3696 | 3696 |
3697 static void skpwww_shinydemos_com_15(skiatest::Reporter* reporter, const char* f
ilename) { | 3697 static void skpwww_shinydemos_com_15(skiatest::Reporter* reporter, const char* f
ilename) { |
3698 SkPath path; | 3698 SkPath path; |
3699 path.setFillType(SkPath::kEvenOdd_FillType); | 3699 path.setFillType(SkPath::kEvenOdd_FillType); |
3700 path.moveTo(1000, 310.947968f); | 3700 path.moveTo(1000, 310.947968f); |
3701 path.lineTo(771.570374f, 82.5183716f); | 3701 path.lineTo(771.570374f, 82.5183716f); |
3702 path.lineTo(205.884888f, 648.203857f); | 3702 path.lineTo(205.884888f, 648.203857f); |
3703 path.lineTo(448.68103f, 891); | 3703 path.lineTo(448.68103f, 891); |
3704 path.lineTo(641.911255f, 891); | 3704 path.lineTo(641.911255f, 891); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3762 pathB.moveTo(984.546021f, 1478.31494f); | 3762 pathB.moveTo(984.546021f, 1478.31494f); |
3763 pathB.cubicTo(984.546021f, 1478.31494f, 984.543213f, 1478.32239f, 984.537598f, 1
478.33655f); | 3763 pathB.cubicTo(984.546021f, 1478.31494f, 984.543213f, 1478.32239f, 984.537598f, 1
478.33655f); |
3764 pathB.cubicTo(984.419006f, 1478.63477f, 983.044373f, 1481.90405f, 980.026001f, 1
481.276f); | 3764 pathB.cubicTo(984.419006f, 1478.63477f, 983.044373f, 1481.90405f, 980.026001f, 1
481.276f); |
3765 pathB.cubicTo(980.026001f, 1481.276f, 980.02594f, 1481.27576f, 980.025879f, 1481
.27527f); | 3765 pathB.cubicTo(980.026001f, 1481.276f, 980.02594f, 1481.27576f, 980.025879f, 1481
.27527f); |
3766 pathB.cubicTo(980.018494f, 1481.22131f, 979.602478f, 1478.38831f, 984.546021f, 1
478.31494f); | 3766 pathB.cubicTo(980.018494f, 1481.22131f, 979.602478f, 1478.38831f, 984.546021f, 1
478.31494f); |
3767 testPathOp(reporter, path, pathB, kIntersect_SkPathOp, filename); | 3767 testPathOp(reporter, path, pathB, kIntersect_SkPathOp, filename); |
3768 | 3768 |
3769 } | 3769 } |
3770 | 3770 |
3771 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; | 3771 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; |
3772 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; | 3772 static void (*firstTest)(skiatest::Reporter* , const char* filename) = skpwww_ma
crumors_com_131; |
3773 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; | 3773 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; |
3774 | 3774 |
3775 static struct TestDesc tests[] = { | 3775 static struct TestDesc tests[] = { |
3776 TEST(skpwww_educationalcraft_com_4a), | 3776 TEST(skpwww_educationalcraft_com_4a), |
3777 TEST(skpwww_lptemp_com_3), | 3777 TEST(skpwww_lptemp_com_3), |
3778 TEST(skpwww_shinydemos_com_5), | 3778 TEST(skpwww_shinydemos_com_5), |
3779 TEST(skpwww_lptemp_com_5), | 3779 TEST(skpwww_lptemp_com_5), |
3780 TEST(skpwww_shinydemos_com_15), | 3780 TEST(skpwww_shinydemos_com_15), |
3781 TEST(skpwww_familysurvivalprotocol_wordpress_com_61), | 3781 TEST(skpwww_familysurvivalprotocol_wordpress_com_61), |
3782 TEST(skpwww_alamdi_com_3), | 3782 TEST(skpwww_alamdi_com_3), |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3893 static const size_t testCount = SK_ARRAY_COUNT(tests); | 3893 static const size_t testCount = SK_ARRAY_COUNT(tests); |
3894 | 3894 |
3895 static bool runReverse = false; | 3895 static bool runReverse = false; |
3896 | 3896 |
3897 DEF_TEST(PathOpsSkp, reporter) { | 3897 DEF_TEST(PathOpsSkp, reporter) { |
3898 #if DEBUG_SHOW_TEST_NAME | 3898 #if DEBUG_SHOW_TEST_NAME |
3899 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); | 3899 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); |
3900 #endif | 3900 #endif |
3901 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
erse); | 3901 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
erse); |
3902 } | 3902 } |
OLD | NEW |