aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsBuilderTest.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-12-14 08:43:21 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-14 08:43:21 -0800
commit364a0074c33f91ded60232f173f7a57a312e9280 (patch)
treed1afca68ab5c5819e7d8a2fe104c464c97f3439c /tests/PathOpsBuilderTest.cpp
parent6a20871e5aeaa7e61f3348694bf436af16f824b9 (diff)
path ops: check for deleted ends
TBR=fmalita@chromium.org BUG=569540 Review URL: https://codereview.chromium.org/1524803002
Diffstat (limited to 'tests/PathOpsBuilderTest.cpp')
-rw-r--r--tests/PathOpsBuilderTest.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/PathOpsBuilderTest.cpp b/tests/PathOpsBuilderTest.cpp
index 5cf49cf637..e191ecee5e 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);
+}