From 180fbb16c46e32cc49220946cdfa29520017f4a6 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Fri, 27 Mar 2015 11:28:33 +1100 Subject: [PATCH] image/draw: fix golden test for YCbCr.RGBA change. The previous change was https://go-review.googlesource.com/#/c/8073/ Change-Id: I0c48502d1ba90fb5d41c5e66346a8e7f4ee87ce7 Reviewed-on: https://go-review.googlesource.com/8151 Reviewed-by: Nigel Tao --- src/image/draw/draw_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image/draw/draw_test.go b/src/image/draw/draw_test.go index a58f0f49849..29951bf05b3 100644 --- a/src/image/draw/draw_test.go +++ b/src/image/draw/draw_test.go @@ -163,8 +163,8 @@ var drawTests = []drawTest{ // The source pixel is {0, 0, 136} in YCbCr-space, which is {11, 38, 0, 255} in RGB-space. {"ycbcr", vgradCr(), fillAlpha(255), Over, color.RGBA{11, 38, 0, 255}}, {"ycbcrSrc", vgradCr(), fillAlpha(255), Src, color.RGBA{11, 38, 0, 255}}, - {"ycbcrAlpha", vgradCr(), fillAlpha(192), Over, color.RGBA{42, 28, 0, 255}}, - {"ycbcrAlphaSrc", vgradCr(), fillAlpha(192), Src, color.RGBA{8, 28, 0, 192}}, + {"ycbcrAlpha", vgradCr(), fillAlpha(192), Over, color.RGBA{42, 29, 0, 255}}, + {"ycbcrAlphaSrc", vgradCr(), fillAlpha(192), Src, color.RGBA{8, 29, 0, 192}}, {"ycbcrNil", vgradCr(), nil, Over, color.RGBA{11, 38, 0, 255}}, {"ycbcrNilSrc", vgradCr(), nil, Src, color.RGBA{11, 38, 0, 255}}, // Uniform mask (100%, 75%, nil) and variable Gray source.