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

Unified Diff: tests/PathTest.cpp

Issue 2250353004: move private test for sect_with_horizontal into unittests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move test into PathTests Created 4 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/core/SkLineClipper.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathTest.cpp
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index c76276080c959b2c49583f26d7526fa3f961d246..470fb8baf6b605d2f54d887602efd9286df87d17 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -97,6 +97,15 @@ static void make_path_crbug364224_simplified(SkPath* path) {
path->close();
}
+static void make_path_crbug638575(SkPath* path) {
+ // Test that sect_with_horizontal in SkLineClipper.cpp needs to pin after computing the
+ // intersection.
+ path->reset();
+ path->moveTo(-540000, -720000);
+ path->lineTo(-9.10000017e-05f, 9.99999996e-13f);
+ path->lineTo(1, 1);
+}
mtklein 2016/08/17 14:06:23 We've dropped any sort of assert here... is this j
reed1 2016/08/17 14:15:02 The line-clipper itself is loaded with the appropr
+
static void test_path_crbug364224() {
SkPath path;
SkPaint paint;
@@ -108,6 +117,9 @@ static void test_path_crbug364224() {
make_path_crbug364224(&path);
canvas->drawPath(path, paint);
+
+ make_path_crbug638575(&path);
mtklein 2016/08/17 14:06:23 It doesn't look like this has anything to do with
reed1 2016/08/17 14:15:02 True enough. That bug pointed this out, but really
+ canvas->drawPath(path, paint);
}
/**
« no previous file with comments | « src/core/SkLineClipper.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698