Index: src/pkg/image/image_test.go |
=================================================================== |
old mode 100644 |
new mode 100755 |
--- a/src/pkg/image/image_test.go |
+++ b/src/pkg/image/image_test.go |
@@ -23,15 +23,15 @@ |
func TestImage(t *testing.T) { |
testImage := []image{ |
- NewRGBA(Rect(0, 0, 10, 10)), |
- NewRGBA64(Rect(0, 0, 10, 10)), |
- NewNRGBA(Rect(0, 0, 10, 10)), |
- NewNRGBA64(Rect(0, 0, 10, 10)), |
- NewAlpha(Rect(0, 0, 10, 10)), |
- NewAlpha16(Rect(0, 0, 10, 10)), |
- NewGray(Rect(0, 0, 10, 10)), |
- NewGray16(Rect(0, 0, 10, 10)), |
- NewPaletted(Rect(0, 0, 10, 10), PalettedColorModel{ |
+ NewRGBA(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewRGBA64(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewNRGBA(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewNRGBA64(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewAlpha(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewAlpha16(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewGray(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewGray16(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewPaletted(Rectangle{Point{0, 0}, Point{10, 10}}, PalettedColorModel{ |
Transparent, |
Opaque, |
}), |
@@ -96,10 +96,10 @@ |
} |
} |
testImage := []image{ |
- NewRGBA64(Rect(0, 0, 10, 10)), |
- NewNRGBA64(Rect(0, 0, 10, 10)), |
- NewAlpha16(Rect(0, 0, 10, 10)), |
- NewGray16(Rect(0, 0, 10, 10)), |
+ NewRGBA64(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewNRGBA64(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewAlpha16(Rectangle{Point{0, 0}, Point{10, 10}}), |
+ NewGray16(Rectangle{Point{0, 0}, Point{10, 10}}), |
} |
for _, m := range testImage { |
m.Set(1, 2, NRGBA64Color{0xffff, 0xffff, 0xffff, 0x1357}) // Non-premultiplied alpha. |