diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-30 13:37:48 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-30 13:37:48 +0000 |
commit | 91fc81c972c5ac4090f106d3b3fd9b26a3235ce1 (patch) | |
tree | 977d8c67df4ec1096a30bc08ddc09763342d4cc5 /tests/PathOpsSkpTest.cpp | |
parent | a90c6803865766d28e92091f56f718f5e41fe80f (diff) |
fix cubic/line intersection; add skp tests
BUG=skia:2488
TBR=reed
Author: caryclark@google.com
Review URL: https://codereview.chromium.org/252243003
git-svn-id: http://skia.googlecode.com/svn/trunk@14458 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PathOpsSkpTest.cpp')
-rwxr-xr-x | tests/PathOpsSkpTest.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/PathOpsSkpTest.cpp b/tests/PathOpsSkpTest.cpp index 290b19ac39..5b10a1f736 100755 --- a/tests/PathOpsSkpTest.cpp +++ b/tests/PathOpsSkpTest.cpp @@ -2962,9 +2962,57 @@ static void skpwww_defense_studies_blogspot_com_64(skiatest::Reporter* reporter, testPathOp(reporter, path, pathB, kIntersect_PathOp, filename); } +// checkSmall / addTPair / addT assert +#if TRY_NEW_TESTS +static void skpwww_uniquefx_net_442(skiatest::Reporter* reporter, const char* filename) { + SkPath path; + path.setFillType(SkPath::kEvenOdd_FillType); + path.moveTo(960, 306); + path.lineTo(960, 305); + path.lineTo(1000, 305); + path.lineTo(1000, 306.708527f); + path.lineTo(960, 306); + path.close(); + SkPath pathB; + pathB.setFillType(SkPath::kWinding_FillType); + pathB.moveTo(960, 305); + pathB.lineTo(958.997253f, 306.002747f); + pathB.lineTo(1017, 307); + pathB.lineTo(1019, 305); + testPathOp(reporter, path, pathB, kIntersect_PathOp, filename); +} +#endif + +// rightAngleWinding +#if TRY_NEW_TESTS +static void skpwww_kitcheninspirations_wordpress_com_32(skiatest::Reporter* reporter, const char* filename) { + SkPath path; + path.setFillType(SkPath::kEvenOdd_FillType); + path.moveTo(47.1666679f, 19651.334f); + path.lineTo(65.8333359f, 19651.332f); + path.lineTo(65.8333359f, 19651.5f); + path.lineTo(47.1666679f, 19651.5f); + path.lineTo(47.1666679f, 19651.334f); + path.close(); + SkPath pathB; + pathB.setFillType(SkPath::kWinding_FillType); + pathB.moveTo(47.1666679f, 19651.5f); + pathB.lineTo(47.1666679f, 19651.332f); + pathB.lineTo(65.8333359f, 19651.334f); + pathB.lineTo(65.8333359f, 19651.5f); + testPathOp(reporter, path, pathB, kIntersect_PathOp, filename); +} +#endif + static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; static struct TestDesc tests[] = { +#if TRY_NEW_TESTS + TEST(skpwww_kitcheninspirations_wordpress_com_32), // rightanglewinding +#endif +#if TRY_NEW_TESTS + TEST(skpwww_uniquefx_net_442), // checkSmall / addTPair / addT assert +#endif TEST(skpwww_defense_studies_blogspot_com_64), TEST(skpwww_kenlevine_blogspot_com_28), TEST(skpwww_fashionscandal_com_94), |