From: msarett Date: Mon, 15 Aug 2016 16:41:59 +0000 (-0700) Subject: Add regression test X-Git-Tag: submit/tizen/20180928.044319~116^2~222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcae9d3d15d34a59d279c34e187e6101975500c0;p=platform%2Fupstream%2FlibSkiaSharp.git Add regression test Original bug fix was in: https://codereview.chromium.org/2230163002 BUG:636268 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2243143002 Review-Url: https://codereview.chromium.org/2243143002 --- diff --git a/resources/invalid_images/crbug636268.png b/resources/invalid_images/crbug636268.png new file mode 100644 index 0000000000..bdb982846b Binary files /dev/null and b/resources/invalid_images/crbug636268.png differ diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp index 66860da590..1c6ad8a6a7 100644 --- a/tests/ColorSpaceTest.cpp +++ b/tests/ColorSpaceTest.cpp @@ -259,3 +259,10 @@ DEF_TEST(ColorSpace_Equals, r) { REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), upperRight.get())); REPORTER_ASSERT(r, !SkColorSpace::Equals(upperRight.get(), adobe.get())); } + +DEF_TEST(ColorSpace_CRBug, r) { + sk_sp data = SkData::MakeFromFileName( + GetResourcePath("invalid_images/crbug636268.png").c_str()); + SkAutoTDelete codec(SkCodec::NewFromData(data.get())); + REPORTER_ASSERT(r, codec.get()); +}