diff options
| author | Andrew Balholm <andybalholm@gmail.com> | 2011-10-13 12:40:48 +1100 |
|---|---|---|
| committer | Nigel Tao <nigeltao@golang.org> | 2011-10-13 12:40:48 +1100 |
| commit | c64e8e327ec706c4ac9ac767273e08a5175b5ec8 (patch) | |
| tree | 082fa68fb7b1c7ec720ad299be965836571db012 /src/pkg/html/parse_test.go | |
| parent | 85368292a3fef14303cffb9f422fd723f44a7cd6 (diff) | |
| download | go-c64e8e327ec706c4ac9ac767273e08a5175b5ec8.tar.xz | |
html: insert implied <p> and </p> tags
(test # 25 in tests1.dat)
#data
<p><b><div></p></b></div>X
#document
| <html>
| <head>
| <body>
| <p>
| <b>
| <div>
| <b>
|
| <p>
| "X"
R=nigeltao
CC=golang-dev
https://golang.org/cl/5254060
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 0c1b9f8937..c6fd37a10e 100644 --- a/src/pkg/html/parse_test.go +++ b/src/pkg/html/parse_test.go @@ -123,7 +123,7 @@ func TestParser(t *testing.T) { rc := make(chan io.Reader) go readDat(filename, rc) // TODO(nigeltao): Process all test cases, not just a subset. - for i := 0; i < 25; i++ { + for i := 0; i < 26; i++ { // Parse the #data section. b, err := ioutil.ReadAll(<-rc) if err != nil { |
