aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PathTest.cpp')
-rw-r--r--tests/PathTest.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index b36179000f..b275342e2d 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -4915,31 +4915,3 @@ DEF_TEST(NonFinitePathIteration, reporter) {
REPORTER_ASSERT(reporter, verbs == 0);
}
-
-DEF_TEST(AndroidArc, reporter) {
- const char* tests[] = {
- "M50,0A50,50,0,0 1 100,50 L100,85 A15,15,0,0 1 85,100 L50,100 A50,50,0,0 1 50,0z",
- "M50,0L92,0 A8,8,0,0 1 100,8 L100,92 A8,8,0,0 1 92,100 L8,100"
- " A8,8,0,0 1 0,92 L 0,8 A8,8,0,0 1 8,0z",
- "M50 0A50 50,0,1,1,50 100A50 50,0,1,1,50 0"
- };
- for (auto test : tests) {
- SkPath aPath;
- SkAssertResult(SkParsePath::FromSVGString(test, &aPath));
- SkASSERT(aPath.isConvex());
- for (SkScalar scale = 1; scale < 1000; scale *= 1.1f) {
- SkPath scalePath = aPath;
- SkMatrix matrix;
- matrix.setScale(scale, scale);
- scalePath.transform(matrix);
- SkASSERT(scalePath.isConvex());
- }
- for (SkScalar scale = 1; scale < .001; scale /= 1.1f) {
- SkPath scalePath = aPath;
- SkMatrix matrix;
- matrix.setScale(scale, scale);
- scalePath.transform(matrix);
- SkASSERT(scalePath.isConvex());
- }
- }
-}