diff options
author | 2013-11-25 13:39:12 +0000 | |
---|---|---|
committer | 2013-11-25 13:39:12 +0000 | |
commit | 28d219c5682af6dfacea2460b5ba2f9e98702de6 (patch) | |
tree | c2df00bd4d9c30852afb90942e2a598e838349ca /tests | |
parent | 27346f52cb0d5094732cb8154814b3b4d6c70cef (diff) |
fix pathops quad line intersection
git-svn-id: http://skia.googlecode.com/svn/trunk@12374 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PathOpsSimplifyTest.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/PathOpsSimplifyTest.cpp b/tests/PathOpsSimplifyTest.cpp index 93d75d9aea..66fe08713d 100644 --- a/tests/PathOpsSimplifyTest.cpp +++ b/tests/PathOpsSimplifyTest.cpp @@ -3946,9 +3946,23 @@ static void testQuad10(skiatest::Reporter* reporter) { testSimplify(reporter, path); } +static void testQuad11(skiatest::Reporter* reporter) { + SkPath path; + path.moveTo(2, 0);
+ path.quadTo(0, 1, 1, 2);
+ path.lineTo(1, 2);
+ path.close();
+ path.moveTo(0, 0);
+ path.lineTo(1, 1);
+ path.quadTo(1, 3, 3, 3);
+ path.close();
+ testSimplify(reporter, path); +}
+ static void (*firstTest)(skiatest::Reporter* ) = 0; static TestDesc tests[] = { + TEST(testQuad11), TEST(testQuad10), TEST(testQuad9), TEST(testTriangles4x), |