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

Unified Diff: tests/PathOpsBuilderTest.cpp

Issue 1323813003: remove duplicate linked list adjustment (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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/SkOpSegment.cpp ('k') | tests/PathOpsOpTest.cpp » ('j') | 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 88684fe18d33637368f2be3f1d0c1386dceffde2..88bfe1e554df4ceb64ac18f9da71ef2b45f2d5ca 100644
--- a/tests/PathOpsBuilderTest.cpp
+++ b/tests/PathOpsBuilderTest.cpp
@@ -271,3 +271,26 @@ DEF_TEST(Fuzz846, reporter) {
builder.resolve(&result);
}
+#include "SkParsePath.h"
+
+DEF_TEST(fuzzTNG, reporter) {
reed1 2015/08/31 21:11:01 can we tie this test to a bug or even CL? Your des
+ const char* pathStrs[] = {
+"M360,-2147483648.000000000000000000000000000000000000000000000000000001 A3240,3240 0.0 0 11 256,256 L100000000,4140 Z",
+"M360,4140 A11,-1 0.0 0 0 6840,4140 L100,512 L32,16 L360,1024 Z",
+"M360,4140 A3240,1000000001 32768 1024 128 100000000.000000000000000000000000000000000000000000000000000001,512 Z",
+"M127,321 L6840,270 L-21474836481,100000000 L2551,64 Z",
+"M-128,4140 Z",
+ };
+ SkPath clip[SK_ARRAY_COUNT(pathStrs)];
+ SkOpBuilder builder;
+ for (size_t i = 0; i < SK_ARRAY_COUNT(pathStrs); ++i) {
+ SkParsePath::FromSVGString(pathStrs[i], &clip[i]);
+ builder.add(clip[i], kUnion_SkPathOp);
+ }
+ SkPath result;
+ builder.resolve(&result);
+ SkPath path;
+ SkParsePath::FromSVGString("M-315,7425 L4096,7425 L-1000000001,-315 L-315,7425 Z", &path);
+ builder.add(path, kDifference_SkPathOp);
+ testPathOp(reporter, result, path, kDifference_SkPathOp, __FUNCTION__);
+}
« no previous file with comments | « src/pathops/SkOpSegment.cpp ('k') | tests/PathOpsOpTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698