From 28d219c5682af6dfacea2460b5ba2f9e98702de6 Mon Sep 17 00:00:00 2001 From: "caryclark@google.com" Date: Mon, 25 Nov 2013 13:39:12 +0000 Subject: fix pathops quad line intersection git-svn-id: http://skia.googlecode.com/svn/trunk@12374 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/PathOpsSimplifyTest.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests') 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), -- cgit v1.2.3