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

Unified Diff: tests/PathOpsExtendedTest.cpp

Issue 1037953004: add conics to path ops (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix linux build Created 5 years, 8 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
Index: tests/PathOpsExtendedTest.cpp
diff --git a/tests/PathOpsExtendedTest.cpp b/tests/PathOpsExtendedTest.cpp
index 5889ac428b5c16d943608fa5eb4d9f825c8dbed8..08fbc170eca8c66d3ed7bba18d47e228605462c2 100644
--- a/tests/PathOpsExtendedTest.cpp
+++ b/tests/PathOpsExtendedTest.cpp
@@ -553,12 +553,15 @@ bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath&
#if DEBUG_SHOW_TEST_NAME
showName(a, b, shapeOp);
#endif
- SkPath out;
+ SkPath orig;
+ orig.lineTo(54, 43);
+ SkPath out = orig;
if (Op(a, b, shapeOp, &out) ) {
SkDebugf("%s test is expected to fail\n", __FUNCTION__);
REPORTER_ASSERT(reporter, 0);
return false;
}
+ SkASSERT(out == orig);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698