aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-26 18:16:27 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-26 18:16:27 +0000
commita8a3b3d9a027ad54ce20f8b4ed7c577a176b31ca (patch)
tree180cbc1350a82b98e612c0be12775efb304c63bc /tests
parent5f0add3ad6e1d6129307276c81ba6624f92ca112 (diff)
check for bad enum use when adding contours
Review URL: https://codereview.appspot.com/6849103 git-svn-id: http://skia.googlecode.com/svn/trunk@6547 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/PathTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index f1894c3940..6f9a9e6465 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -375,6 +375,7 @@ static void test_direction(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, !path.cheapComputeDirection(NULL));
REPORTER_ASSERT(reporter, !path.cheapIsDirection(SkPath::kCW_Direction));
REPORTER_ASSERT(reporter, !path.cheapIsDirection(SkPath::kCCW_Direction));
+ REPORTER_ASSERT(reporter, path.cheapIsDirection(SkPath::kUnknown_Direction));
static const char* gDegen[] = {
"M 10 10",