aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/html/parse_test.go
diff options
context:
space:
mode:
authorAndrew Balholm <andybalholm@gmail.com>2011-11-30 11:44:54 +1100
committerNigel Tao <nigeltao@golang.org>2011-11-30 11:44:54 +1100
commite32f4ba77d920411e916cece41b3a40e0db0a074 (patch)
tree8c861f198f0179ff5bc4dd246887d8fadb388ea8 /src/pkg/html/parse_test.go
parent72a2979ef07e309f1168ed5a5e144ceeddb25472 (diff)
downloadgo-e32f4ba77d920411e916cece41b3a40e0db0a074.tar.xz
html: parse the contents of <iframe> elements as raw text
Pass tests5.dat, test 4: <iframe> <!---> </iframe>x | <html> | <head> | <body> | <iframe> | " <!---> " | "x" Also pass tests through test 9: <style> <!</-- </style>x R=nigeltao CC=golang-dev https://golang.org/cl/5450044
Diffstat (limited to 'src/pkg/html/parse_test.go')
-rw-r--r--src/pkg/html/parse_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/html/parse_test.go b/src/pkg/html/parse_test.go
index 3805bd7e9e..1e39f3ed70 100644
--- a/src/pkg/html/parse_test.go
+++ b/src/pkg/html/parse_test.go
@@ -153,6 +153,8 @@ func TestParser(t *testing.T) {
{"tests1.dat", -1},
{"tests2.dat", -1},
{"tests3.dat", -1},
+ // tests4.dat is fragment cases.
+ {"tests5.dat", 10},
}
for _, tf := range testFiles {
f, err := os.Open("testdata/webkit/" + tf.filename)