Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: tests/PathOpsBuilderTest.cpp

Issue 1524803002: path ops: check for deleted ends (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pathops/SkOpCoincidence.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsBuilderTest.cpp
diff --git a/tests/PathOpsBuilderTest.cpp b/tests/PathOpsBuilderTest.cpp
index 5cf49cf6371f803fcc5a22ad1452da83f0781262..a684ccffebb636c0a74f158cd075fd6e60975c81 100644
--- a/tests/PathOpsBuilderTest.cpp
+++ b/tests/PathOpsBuilderTest.cpp
@@ -270,3 +270,34 @@ DEF_TEST(Fuzz846, reporter) {
SkPath result;
builder.resolve(&result);
}
+
+DEF_TEST(Issue569540, reporter) {
+ SkPath path1;
+ path1.moveTo(5, -225);
+ path1.lineTo(-225, 7425);
+ path1.lineTo(7425, 7425);
+ path1.lineTo(7425, -225);
+ path1.lineTo(-225, -225);
+ path1.lineTo(5, -225);
+ path1.close();
+
+ SkPath path2;
+ path2.moveTo(5940, 2790);
+ path2.lineTo(5940, 2160);
+ path2.lineTo(5970, 1980);
+ path2.lineTo(5688, 773669888);
+ path2.lineTo(5688, 2160);
+ path2.lineTo(5688, 2430);
+ path2.lineTo(5400, 4590);
+ path2.lineTo(5220, 4590);
+ path2.lineTo(5220, 4920);
+ path2.cubicTo(5182.22900390625f, 4948.328125f, 5160, 4992.78662109375f, 5160, 5040.00048828125f);
+ path2.lineTo(5940, 2790);
+ path2.close();
+
+ SkOpBuilder builder;
+ builder.add(path1, kUnion_SkPathOp);
+ builder.add(path2, kUnion_SkPathOp);
+ SkPath result;
+ builder.resolve(&result);
+}
« no previous file with comments | « src/pathops/SkOpCoincidence.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698