}
func TestNoPalette(t *testing.T) {
+ // https://go-review.googlesource.com/#/c/11227/
+ // changed the lzw encoder to reject input bytes that are too large,
+ // so that this test code no longer generates the right invalid GIF.
+ // TODO(nigeltao): re-enable this test somehow.
+ return
+
b := &bytes.Buffer{}
// Manufacture a GIF with no palette, so any pixel at all
}
func TestPixelOutsidePaletteRange(t *testing.T) {
+ // https://go-review.googlesource.com/#/c/11227/
+ // changed the lzw encoder to reject input bytes that are too large,
+ // so that this test code no longer generates the right invalid GIF.
+ // TODO(nigeltao): re-enable this test somehow.
+ return
+
for _, pval := range []byte{0, 1, 2, 3, 255} {
b := &bytes.Buffer{}