diff options
| author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-18 15:58:21 +0000 |
|---|---|---|
| committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-18 15:58:21 +0000 |
| commit | 0361032c0b53401030a720bc8b4930c3ec59f19e (patch) | |
| tree | 9bb66d560604ef23c9d015c10d6d73fece0928e7 /tests/PathOpsSimplifyTest.cpp | |
| parent | f707adc4f8b22fd1a59a900b64333480de653c5b (diff) | |
path ops work in progress
fix bugs in tests on 32 bit release
Most changes revolve around pinning computed t values
very close to zero and one.
git-svn-id: http://skia.googlecode.com/svn/trunk@8745 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PathOpsSimplifyTest.cpp')
| -rw-r--r-- | tests/PathOpsSimplifyTest.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/PathOpsSimplifyTest.cpp b/tests/PathOpsSimplifyTest.cpp index e9133ef8ea..356f1723b6 100644 --- a/tests/PathOpsSimplifyTest.cpp +++ b/tests/PathOpsSimplifyTest.cpp @@ -3626,9 +3626,37 @@ static void testQuadratic97(skiatest::Reporter* reporter) { testSimplify(reporter, path); } +static void testTriangles1(skiatest::Reporter* reporter) { + SkPath path; + path.moveTo(0, 0); + path.lineTo(1, 0); + path.lineTo(3, 3); + path.close(); + path.moveTo(0, 0); + path.lineTo(1, 2); + path.lineTo(1, 1); + path.close(); + testSimplify(reporter, path); +} + +static void testTriangles2(skiatest::Reporter* reporter) { + SkPath path; + path.moveTo(0, 0); + path.lineTo(1, 0); + path.lineTo(3, 3); + path.close(); + path.moveTo(1, 1); + path.lineTo(2, 3); + path.lineTo(1, 2); + path.close(); + testSimplify(reporter, path); +} + static void (*firstTest)(skiatest::Reporter* ) = 0; static TestDesc tests[] = { + TEST(testTriangles2), + TEST(testTriangles1), TEST(testQuadratic97), TEST(testQuadratic96), TEST(testQuadratic95), |
