Home | History | Annotate | Download | only in gif

Lines Matching defs:gif

5 package gif
16 // header, palette and trailer are parts of a valid 2x1 GIF image.
51 // then this should result in an invalid GIF image. First, write a
139 // testGIF is a simple GIF that we can modify to test different scenarios.
169 gif := make([]byte, len(testGIF))
170 copy(gif, testGIF)
172 gif[32] = 2
173 want := "gif: frame bounds larger than image bounds"
174 try(t, gif, want)
178 gif[32] = 0
179 want = "gif: too much image data"
180 try(t, gif, want)
181 gif[32] = 1
184 want = "gif: frame bounds larger than image bounds"
186 gif[32+i] = 0xff
188 try(t, gif, want)
194 // Manufacture a GIF with no palette, so any pixel at all
218 try(t, b.Bytes(), "gif: no color table")
225 // Manufacture a GIF with a 2 color palette.
251 want = "gif: invalid pixel value"