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

Unified Diff: tests/PathOpsBuilderTest.cpp

Issue 2058773002: add fail condition to addexpanded (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove debug change Created 4 years, 6 months 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 e29b4bc473706550bc4c6aff0de3a1370815914c..a111b6145d6806a63703454455f98e32834eb1e2 100644
--- a/tests/PathOpsBuilderTest.cpp
+++ b/tests/PathOpsBuilderTest.cpp
@@ -323,3 +323,24 @@ path.lineTo(SkBits2Float(0x42e33333), SkBits2Float(0x42940000)); // 113.6f, 74
SkPath result;
builder.resolve(&result);
}
+
+DEF_TEST(SkOpBuilder618991, reporter) {
+ SkPath path0;
+ path0.moveTo(140, 40);
+ path0.lineTo(200, 210);
+ path0.lineTo(40, 100);
+ path0.lineTo(2.22223e+07f, 2.22222e+14f);
+ path0.lineTo(2.22223e+07f, 2.22222e+14f);
+
+ SkPath path1;
+ path1.moveTo(160, 60);
+ path1.lineTo(220, 230);
+ path1.lineTo(60, 120);
+ path1.lineTo(2.22223e+07f, 2.22222e+14f);
+ path1.lineTo(2.22223e+07f, 2.22222e+14f);
+
+ SkOpBuilder builder;
+ builder.add(path0, SkPathOp::kUnion_SkPathOp);
+ builder.add(path1, SkPathOp::kUnion_SkPathOp);
+ builder.resolve(&path0);
+}
« 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