Index: tests/DashPathEffectTest.cpp |
diff --git a/tests/DashPathEffectTest.cpp b/tests/DashPathEffectTest.cpp |
index f55bcf8a850c61546d622230a59277878de691eb..7f04e8ead2542dd64983533ffaac81d1b3c03e0f 100644 |
--- a/tests/DashPathEffectTest.cpp |
+++ b/tests/DashPathEffectTest.cpp |
@@ -87,3 +87,20 @@ DEF_TEST(DashPathEffectTest_asPoints, r) { |
} |
} |
} |
+ |
+DEF_TEST(DashPath_bug4871, r) { |
+ SkPath path; |
+ path.moveTo(30, 24); |
+ path.cubicTo(30.002f, 24, 30, 24, 30, 24); |
+ path.close(); |
+ |
+ SkScalar intervals[2] = { 1, 1 }; |
+ SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, 2, 0)); |
+ |
+ SkPaint paint; |
+ paint.setStyle(SkPaint::kStroke_Style); |
+ paint.setPathEffect(dash); |
+ |
+ SkPath fill; |
+ paint.getFillPath(path, &fill); |
+} |