diff options
Diffstat (limited to 'tests/PathTest.cpp')
-rw-r--r-- | tests/PathTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index 1b8071e013..a3fcb3a574 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -1496,6 +1496,10 @@ static void test_convexity(skiatest::Reporter* reporter) { check_convexity(reporter, path, SkPath::kConvex_Convexity); REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCW_FirstDirection)); + path.reset(); + path.quadTo(100, 100, 50, 50); // This is a convex path from GM:convexpaths + check_convexity(reporter, path, SkPath::kConvex_Convexity); + static const struct { const char* fPathStr; SkPath::Convexity fExpectedConvexity; |