diff options
| author | Andrew Balholm <andybalholm@gmail.com> | 2011-11-23 09:26:37 +1100 |
|---|---|---|
| committer | Nigel Tao <nigeltao@golang.org> | 2011-11-23 09:26:37 +1100 |
| commit | 57ed39fd3bca9c69c32e55eb0a1873ab7f20bcfc (patch) | |
| tree | 26f4d1497d5af54e3509f450ba0a4fdbb0a5205d /src/pkg/html/parse_test.go | |
| parent | 79bce499a336471638f5aa02bd258e516019ad6f (diff) | |
| download | go-57ed39fd3bca9c69c32e55eb0a1873ab7f20bcfc.tar.xz | |
html: on EOF in a comment, ignore final dashes (up to 2)
Pass tests2.dat, test 57:
<!DOCTYPE html><!--x--
| <!DOCTYPE html>
| <!-- x -->
| <html>
| <head>
| <body>
Also pass test 58:
<!DOCTYPE html><table><tr><td></p></table>
R=nigeltao
CC=golang-dev
https://golang.org/cl/5436048
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 3566f9f941..c1347c9dc1 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", 57}, + {"tests2.dat", 59}, {"tests3.dat", 0}, } for _, tf := range testFiles { |
