1
0
mirror of https://github.com/golang/go synced 2024-10-02 10:28:34 -06:00
go/src
Nigel Tao 75ce33068d image/gif: re-enable some invalid-palette tests.
These tests were broken by https://go-review.googlesource.com/#/c/11227/
which fixed the LZW encoder to reject invalid input.

For TestNoPalette, the LZW encoder with a litWidth of 2 now rejects an
input byte of 128, so we change 128 to 3, as 3 <= (1<<2 - 1).

For TestPixelOutsidePaletteRange, the LZW encoder similarly rejects an
input byte of 255. Prior to golang.org/cl/11227, the encoder (again with
a litWidth of 2) accepted the 255 input byte, but masked it with (1<<2 -
1), so that the 255 test case was effectively the same as the 3 test
case. After that LZW CL, the 255 input byte is simply invalid, so we
remove it as a test case. The test still tests pixels outside of the
palette range, since 3 >= the length of the global palette, which is 2.

Change-Id: I50be9623ace016740e34801549c15f83671103eb
Reviewed-on: https://go-review.googlesource.com/11273
Reviewed-by: David Symonds <dsymonds@golang.org>
2015-06-19 06:14:38 +00:00
..
archive all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
bufio
builtin
bytes bytes, strings: add LastIndexByte 2015-04-30 07:13:18 +00:00
cmd runtime: rename cgocall_errno and asmcgocall_errno into cgocall and asmcgocall 2015-06-19 01:47:11 +00:00
compress compress/lzw: reject writing bytes that don't fit into litWidth. 2015-06-18 22:17:11 +00:00
container
crypto all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
database/sql database/sql: refer correct issue in TestErrBadConnReconnect comment 2015-06-06 02:17:49 +00:00
debug all: fix misprints in comments 2015-06-11 14:18:57 +00:00
encoding xml: add check of version in document declaration 2015-06-18 18:06:01 +00:00
errors
expvar
flag flag: Describe the ErrorHandling enum values. 2015-06-05 13:53:26 +00:00
fmt fmt: scanning widths apply after leading spaces 2015-06-13 04:33:26 +00:00
go go/parser: document that parser accepts a wider language than specified 2015-06-18 20:31:26 +00:00
hash hash/crc32: speedup crc32 of IEEE using slicingBy8 2015-06-18 18:14:24 +00:00
html html: add examples to the functions 2015-06-19 05:15:22 +00:00
image image/gif: re-enable some invalid-palette tests. 2015-06-19 06:14:38 +00:00
index/suffixarray
internal internal/testenv: skip network tests only when -short is specified 2015-06-18 21:10:44 +00:00
io io: minor improvements to doc comment on WriteString. 2015-05-29 04:33:15 +00:00
log log: fix flaky test 2015-06-18 18:08:17 +00:00
math math/big: refine Fibonacci example 2015-06-18 22:16:16 +00:00
mime mime: add mime.types paths for BSDs 2015-06-12 15:51:21 +00:00
net net: fix build on android 2015-06-18 00:45:12 +00:00
os os: fix nits found by vet 2015-06-19 00:44:13 +00:00
path path: fix a typo in documentation of Split 2015-05-31 22:08:38 +00:00
reflect runtime: use type-based write barrier for remote stack write during chansend 2015-06-15 16:50:30 +00:00
regexp regexp: small correction to test comment 2015-06-14 17:09:13 +00:00
runtime runtime: rename cgocall_errno and asmcgocall_errno into cgocall and asmcgocall 2015-06-19 01:47:11 +00:00
sort
strconv strconv: minor internal comment fix 2015-05-27 22:02:02 +00:00
strings strings: mention UTF-8 in the package comment. 2015-06-03 19:28:41 +00:00
sync all: use RET instead of RETURN on ppc64 2015-06-06 00:07:23 +00:00
syscall all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
testing testing: don't print CPU count for tests, only benchmarks 2015-06-15 18:11:06 +00:00
text all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
time time: correct unrepresentable Unix time comment 2015-06-18 18:21:59 +00:00
unicode
unsafe
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: clean up stale GOROOT 2015-05-25 20:53:26 +00:00
bootstrap.bash
buildall.bash buildall.bash: exit 1 when make.bash fails 2015-05-17 01:40:33 +00:00
clean.bash build: fix clean scripts 2015-06-18 16:13:13 +00:00
clean.bat build: fix clean scripts 2015-06-18 16:13:13 +00:00
clean.rc build: fix clean scripts 2015-06-18 16:13:13 +00:00
iostest.bash iostest.bash: run detect.go as part of iostest 2015-04-16 12:59:54 +00:00
make.bash doc: replace references to {5..9}{g,l} with go tool compile and go tool link 2015-06-17 04:05:50 +00:00
make.bat doc: replace references to {5..9}{g,l} with go tool compile and go tool link 2015-06-17 04:05:50 +00:00
Make.dist
make.rc doc: replace references to {5..9}{g,l} with go tool compile and go tool link 2015-06-17 04:05:50 +00:00
nacltest.bash nacltest.bash: remove syscall/fstest_nacl.go after test 2015-05-02 02:48:32 +00:00
race.bash cmd/dist: move guts of race.bash into dist 2015-06-09 05:22:37 +00:00
race.bat cmd/dist: move guts of race.bash into dist 2015-06-09 05:22:37 +00:00
run.bash build: correct quoting of args in run.bash 2015-05-09 04:23:47 +00:00
run.bat
run.rc