Index: tests/JpegTest.cpp |
diff --git a/tests/JpegTest.cpp b/tests/JpegTest.cpp |
index 2897883da3ad7db15092f979caee2f035924da8f..f8784a2d26cc3d428ea5394165c55aec3807a4a0 100644 |
--- a/tests/JpegTest.cpp |
+++ b/tests/JpegTest.cpp |
@@ -437,8 +437,13 @@ DEF_TEST(Jpeg, reporter) { |
REPORTER_ASSERT(reporter, bm8888.getColor(27, 34) == 0xffffffff); |
REPORTER_ASSERT(reporter, bm8888.getColor(71, 18) == 0xff000000); |
+#ifdef SK_BUILD_FOR_IOS // the iOS jpeg decoder fills to gray |
+ REPORTER_ASSERT(reporter, bm8888.getColor(127, 127) == 0xff808080 |
+ || bm8888.getColor(127, 127) == SK_ColorWHITE); |
+#else |
// This is the fill color |
REPORTER_ASSERT(reporter, bm8888.getColor(127, 127) == SK_ColorWHITE); |
+#endif |
#if JPEG_TEST_WRITE_TO_FILE_FOR_DEBUGGING |
// Check to see that the resulting bitmap is nice |