aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-11 21:03:05 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-11 21:03:05 +0000
commitcabaf1daf3fdcc151c12d59b05bdbe136c178b3b (patch)
tree067459c81129c45260a8d8c43e89568c043ffabf /tests
parentdc7a506018719c7b640caf6894fab96d41cdaf81 (diff)
reenable direction test, fix handling of degenerate segments in the non-convex case
git-svn-id: http://skia.googlecode.com/svn/trunk@3021 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/PathTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index 038ee0ca72..fadb0d93ca 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -38,7 +38,7 @@ static void test_direction(skiatest::Reporter* reporter) {
}
static const char* gCW[] = {
- "M 10 10 L 10 10 L 20 10 Q 20 20 30 30",
+ "M 10 10 L 10 10 Q 20 10 20 20",
"M 10 10 C 20 10 20 20 20 20",
};
for (i = 0; i < SK_ARRAY_COUNT(gCW); ++i) {
@@ -49,7 +49,7 @@ static void test_direction(skiatest::Reporter* reporter) {
}
static const char* gCCW[] = {
- "M 10 10 L 10 10 L 20 10 Q 20 -20 30 -30",
+ "M 10 10 L 10 10 Q 20 10 20 -20",
"M 10 10 C 20 10 20 -20 20 -20",
};
for (i = 0; i < SK_ARRAY_COUNT(gCCW); ++i) {
@@ -1087,7 +1087,7 @@ void TestPath(skiatest::Reporter* reporter) {
test_isRect(reporter);
test_zero_length_paths(reporter);
-// for now test_direction(reporter);
+ test_direction(reporter);
test_convexity(reporter);
test_convexity2(reporter);
test_close(reporter);