bmp: remove unused testing.T arg

Change-Id: I53954db3e83d3a5bb155fec24c7da0dc31b8ea2d
Reviewed-on: https://go-review.googlesource.com/122418
Reviewed-by: David Symonds <dsymonds@golang.org>
This commit is contained in:
Nigel Tao 2018-07-06 15:06:37 +10:00
parent e7c2a4f042
commit c73c2afc3b
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ import (
const testdataDir = "../testdata/"
func compare(t *testing.T, img0, img1 image.Image) error {
func compare(img0, img1 image.Image) error {
b := img1.Bounds()
if !b.Eq(img0.Bounds()) {
return fmt.Errorf("wrong image size: want %s, got %s", img0.Bounds(), b)
@ -67,7 +67,7 @@ func TestDecode(t *testing.T) {
continue
}
if err := compare(t, img0, img1); err != nil {
if err := compare(img0, img1); err != nil {
t.Errorf("%s: %v", tc, err)
continue
}

View File

@ -64,7 +64,7 @@ func TestEncode(t *testing.T) {
continue
}
err = compare(t, img0, img1)
err = compare(img0, img1)
if err != nil {
t.Errorf("%s: Compare BMP: %v", tc, err)
continue
@ -88,7 +88,7 @@ func TestEncode(t *testing.T) {
// the conversion process is lossy.
img3 := convertToNRGBA(rgba)
err = compare(t, img3, img2)
err = compare(img3, img2)
if err != nil {
t.Errorf("%s: Compare pre-multiplied BMP: %v", tc, err)
}