diff options
| author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-13 13:47:39 +0000 |
|---|---|---|
| committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-13 13:47:39 +0000 |
| commit | 20fb0c7f22a0bee68bf620f765836a60ca80f9b5 (patch) | |
| tree | 640cf22ed67caf5470ce1dec73014a853b009ba8 /tests/PathTest.cpp | |
| parent | 57f7abc8659f17e58fc2d1410117033ad524f9d3 (diff) | |
add tests for degenerate serifs to computeDirection
git-svn-id: http://skia.googlecode.com/svn/trunk@6391 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PathTest.cpp')
| -rw-r--r-- | tests/PathTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index e52296d016..df2c7e4bd4 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -387,7 +387,8 @@ static void test_direction(skiatest::Reporter* reporter) { "M 20 10 Q 20 20 30 20 L 10 20", // test double-back at y-max // rect with top two corners replaced by cubics with identical middle // control points - "M 10 10 C 10 0 10 0 20 0 L 40 0 C 50 0 50 0 50 10" + "M 10 10 C 10 0 10 0 20 0 L 40 0 C 50 0 50 0 50 10", + "M 20 10 L 0 10 Q 10 10 20 0", // left, degenerate serif }; for (i = 0; i < SK_ARRAY_COUNT(gCW); ++i) { path.reset(); @@ -402,7 +403,8 @@ static void test_direction(skiatest::Reporter* reporter) { "M 20 10 Q 20 20 10 20 L 30 20", // test double-back at y-max // rect with top two corners replaced by cubics with identical middle // control points - "M 50 10 C 50 0 50 0 40 0 L 20 0 C 10 0 10 0 10 10" + "M 50 10 C 50 0 50 0 40 0 L 20 0 C 10 0 10 0 10 10", + "M 10 10 L 30 10 Q 20 10 10 0", // right, degenerate serif }; for (i = 0; i < SK_ARRAY_COUNT(gCCW); ++i) { path.reset(); |
