Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(869)

Unified Diff: src/pkg/image/image_test.go

Issue 5136050: code review 5136050: This changes are due to change in the color.go file. Ne...
Patch Set: diff -r 6c5c19791fae https://code.google.com/p/go/ Created 12 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/image/image.go ('k') | src/pkg/image/jpeg/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « src/pkg/image/image.go ('k') | src/pkg/image/jpeg/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b