diff options
| author | Andrew Balholm <andybalholm@gmail.com> | 2011-11-22 09:27:27 +1100 |
|---|---|---|
| committer | Nigel Tao <nigeltao@golang.org> | 2011-11-22 09:27:27 +1100 |
| commit | 750de28d6ceb5c42637b08fb87f2de2f826ed0eb (patch) | |
| tree | 1ef8d7aad26e9f4f5a284914f3c7221fb03d29ae /src/pkg/html/parse_test.go | |
| parent | 86c08e961136f01d34db7759166433d55e8914b2 (diff) | |
| download | go-750de28d6ceb5c42637b08fb87f2de2f826ed0eb.tar.xz | |
html: ignore whitespace before <head> element
Pass tests2.dat, test 47:
" \n "
(That is, two spaces separated by a newline)
| <html>
| <head>
| <body>
Also pass tests through test 49:
<!DOCTYPE html><script>
</script> <title>x</title> </head>
R=nigeltao
CC=golang-dev
https://golang.org/cl/5422043
Diffstat (limited to 'src/pkg/html/parse_test.go')
| -rw-r--r-- | src/pkg/html/parse_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/html/parse_test.go b/src/pkg/html/parse_test.go index 48918947fc..808300a289 100644 --- a/src/pkg/html/parse_test.go +++ b/src/pkg/html/parse_test.go @@ -134,7 +134,7 @@ func TestParser(t *testing.T) { }{ // TODO(nigeltao): Process all the test cases from all the .dat files. {"tests1.dat", -1}, - {"tests2.dat", 47}, + {"tests2.dat", 50}, {"tests3.dat", 0}, } for _, tf := range testFiles { |
