| Index: tests/PathTest.cpp
|
| diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
|
| index 5bc3d95b6f4b33b5529c76a759a11420935179ac..03e3459966100cccc0b433039685e10d2bad15a9 100644
|
| --- a/tests/PathTest.cpp
|
| +++ b/tests/PathTest.cpp
|
| @@ -4116,6 +4116,21 @@ public:
|
| }
|
| };
|
|
|
| +static void test_crbug_629455(skiatest::Reporter* reporter) {
|
| + SkPath path;
|
| + path.moveTo(0, 0);
|
| + path.cubicTo(SkBits2Float(0xcdcdcd00), SkBits2Float(0xcdcdcdcd),
|
| + SkBits2Float(0xcdcdcdcd), SkBits2Float(0xcdcdcdcd),
|
| + SkBits2Float(0x423fcdcd), SkBits2Float(0x40ed9341));
|
| +// AKA: cubicTo(-4.31596e+08f, -4.31602e+08f, -4.31602e+08f, -4.31602e+08f, 47.951f, 7.42423f);
|
| + path.lineTo(0, 0);
|
| +
|
| + auto surface = SkSurface::MakeRasterN32Premul(100, 100);
|
| + SkPaint paint;
|
| + paint.setAntiAlias(true);
|
| + surface->getCanvas()->drawPath(path, paint);
|
| +}
|
| +
|
| static void test_interp(skiatest::Reporter* reporter) {
|
| SkPath p1, p2, out;
|
| REPORTER_ASSERT(reporter, p1.isInterpolatable(p2));
|
| @@ -4164,6 +4179,7 @@ DEF_TEST(PathContains, reporter) {
|
| }
|
|
|
| DEF_TEST(Paths, reporter) {
|
| + test_crbug_629455(reporter);
|
| test_path_crbug364224();
|
|
|
| SkTSize<SkScalar>::Make(3,4);
|
|
|