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
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index 038ee0c..fadb0d9 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -38,7 +38,7 @@
}
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 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 @@
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);