1 |
wakaba |
1.6 |
1..472 |
2 |
wakaba |
1.1 |
# Running under perl version 5.008007 for linux |
3 |
wakaba |
1.16 |
# Current time local: Sat Jun 23 15:30:39 2007 |
4 |
|
|
# Current time GMT: Sat Jun 23 06:30:39 2007 |
5 |
wakaba |
1.1 |
# Using Test.pm version 1.25 |
6 |
wakaba |
1.16 |
# t/tokenizer-test-2.dat |
7 |
wakaba |
1.1 |
ok 1 |
8 |
wakaba |
1.12 |
ok 2 |
9 |
wakaba |
1.1 |
ok 3 |
10 |
|
|
ok 4 |
11 |
|
|
ok 5 |
12 |
|
|
ok 6 |
13 |
|
|
ok 7 |
14 |
wakaba |
1.11 |
ok 8 |
15 |
|
|
ok 9 |
16 |
wakaba |
1.16 |
ok 10 |
17 |
|
|
ok 11 |
18 |
|
|
ok 12 |
19 |
wakaba |
1.11 |
ok 13 |
20 |
|
|
ok 14 |
21 |
wakaba |
1.16 |
ok 15 |
22 |
|
|
ok 16 |
23 |
wakaba |
1.11 |
ok 17 |
24 |
wakaba |
1.16 |
ok 18 |
25 |
wakaba |
1.1 |
ok 19 |
26 |
|
|
ok 20 |
27 |
|
|
ok 21 |
28 |
|
|
ok 22 |
29 |
|
|
ok 23 |
30 |
|
|
ok 24 |
31 |
wakaba |
1.16 |
# t/tree-construction/tests1.dat |
32 |
wakaba |
1.1 |
ok 25 |
33 |
|
|
ok 26 |
34 |
|
|
ok 27 |
35 |
|
|
ok 28 |
36 |
|
|
ok 29 |
37 |
|
|
ok 30 |
38 |
|
|
ok 31 |
39 |
wakaba |
1.16 |
not ok 32 |
40 |
|
|
# Test 32 got: "| <html>\n" (t/HTML-tree.t at line 135 fail #16) |
41 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: <html>) |
42 |
wakaba |
1.1 |
# Lines 2-2 are missing: |
43 |
|
|
# - "| <head>\n" |
44 |
|
|
# - "| <body>\n" |
45 |
wakaba |
1.16 |
# t/HTML-tree.t line 135 is: ok $result, $test->{document}, 'Document tree: ' . $test->{data}; |
46 |
|
|
not ok 33 |
47 |
|
|
# Test 33 got: "2" (t/HTML-tree.t at line 133 fail #17) |
48 |
|
|
# Expected: "1" (Parse error: <head>; 1:6:missing DOCTYPE, 1:6:not closed:head;6: missing document type declaration) |
49 |
|
|
# t/HTML-tree.t line 133 is: join (', ', @errors) . ';' . join (', ', @{$test->{errors}}); |
50 |
|
|
not ok 34 |
51 |
|
|
# Test 34 got: "| <html>\n| <head>\n" (t/HTML-tree.t at line 135 fail #17) |
52 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: <head>) |
53 |
|
|
# Line 3 is missing: |
54 |
|
|
# - "| <body>\n" |
55 |
|
|
ok 35 |
56 |
|
|
ok 36 |
57 |
|
|
not ok 37 |
58 |
|
|
# Test 37 got: "2" (t/HTML-tree.t at line 133 fail #19) |
59 |
|
|
# Expected: "1" (Parse error: <html><head>; 1:7:missing DOCTYPE, 1:12:not closed:head;6: missing document type declaration) |
60 |
wakaba |
1.11 |
not ok 38 |
61 |
wakaba |
1.16 |
# Test 38 got: "| <html>\n| <head>\n" (t/HTML-tree.t at line 135 fail #19) |
62 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: <html><head>) |
63 |
|
|
# Line 3 is missing: |
64 |
wakaba |
1.1 |
# - "| <body>\n" |
65 |
|
|
ok 39 |
66 |
wakaba |
1.16 |
not ok 40 |
67 |
|
|
# Test 40 got: "| <html>\n| <head>\n" (t/HTML-tree.t at line 135 fail #20) |
68 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: <html><head></head>) |
69 |
|
|
# Line 3 is missing: |
70 |
|
|
# - "| <body>\n" |
71 |
wakaba |
1.1 |
ok 41 |
72 |
|
|
ok 42 |
73 |
wakaba |
1.11 |
ok 43 |
74 |
|
|
ok 44 |
75 |
wakaba |
1.16 |
ok 45 |
76 |
|
|
ok 46 |
77 |
wakaba |
1.1 |
ok 47 |
78 |
|
|
ok 48 |
79 |
|
|
ok 49 |
80 |
|
|
ok 50 |
81 |
|
|
ok 51 |
82 |
|
|
ok 52 |
83 |
wakaba |
1.11 |
ok 53 |
84 |
|
|
ok 54 |
85 |
wakaba |
1.16 |
ok 55 |
86 |
|
|
ok 56 |
87 |
|
|
ok 57 |
88 |
|
|
not ok 58 |
89 |
|
|
# Test 58 got: "| <html>\n" (t/HTML-tree.t at line 135 fail #29) |
90 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: </head>) |
91 |
|
|
# Lines 2-2 are missing: |
92 |
wakaba |
1.1 |
# - "| <head>\n" |
93 |
|
|
# - "| <body>\n" |
94 |
|
|
ok 59 |
95 |
wakaba |
1.16 |
not ok 60 |
96 |
|
|
# Test 60 got: "| <html>\n" (t/HTML-tree.t at line 135 fail #30) |
97 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: </body>) |
98 |
|
|
# Lines 2-2 are missing: |
99 |
|
|
# - "| <head>\n" |
100 |
|
|
# - "| <body>\n" |
101 |
wakaba |
1.1 |
ok 61 |
102 |
|
|
ok 62 |
103 |
wakaba |
1.11 |
ok 63 |
104 |
wakaba |
1.1 |
ok 64 |
105 |
wakaba |
1.16 |
ok 65 |
106 |
wakaba |
1.11 |
ok 66 |
107 |
|
|
not ok 67 |
108 |
wakaba |
1.16 |
# Test 67 got: "3" (t/HTML-tree.t at line 133 fail #34) |
109 |
|
|
# Expected: "2" (Parse error: <h1>Hello<h2>World; 1:5:missing DOCTYPE, 1:14:in hn:hn, 1:18:not closed:h2;4: missing document type declaration, 19: mismatched body element end tag (premature end of file?)) |
110 |
|
|
not ok 68 |
111 |
|
|
# Test 68 got: "| <html>\n| <head>\n| <body>\n| <h1>\n| \"Hello\"\n| <h2>\n| \"World\"\n" (t/HTML-tree.t at line 135 fail #34) |
112 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| \"Hello\"\n| <h2>\n| \"World\"\n" (Document tree: <h1>Hello<h2>World) |
113 |
|
|
# Lines 6-7 are changed: |
114 |
|
|
# - "| <h2>\n" |
115 |
|
|
# + "| <h2>\n" |
116 |
|
|
# - "| \"World\"\n" |
117 |
|
|
# + "| \"World\"\n" |
118 |
wakaba |
1.1 |
ok 69 |
119 |
|
|
ok 70 |
120 |
|
|
ok 71 |
121 |
|
|
ok 72 |
122 |
|
|
ok 73 |
123 |
|
|
ok 74 |
124 |
|
|
ok 75 |
125 |
wakaba |
1.11 |
ok 76 |
126 |
wakaba |
1.16 |
not ok 77 |
127 |
|
|
# Test 77 got: "2" (t/HTML-tree.t at line 133 fail #39) |
128 |
|
|
# Expected: "4" (Parse error: <!--><div>--<!-->; 1:13:dash in comment, 1:17:missing DOCTYPE;Incorrect comment token, Missing document type declaration, Incorrect comment token, Unexpected end of file) |
129 |
wakaba |
1.1 |
not ok 78 |
130 |
wakaba |
1.16 |
# Test 78 got: "| <!-- ><div>--<! -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #39) |
131 |
|
|
# Expected: "| <!-- -->\n| <html>\n| <head>\n| <body>\n| <div>\n| \"--\"\n| <!-- -->\n" (Document tree: <!--><div>--<!-->) |
132 |
|
|
# Line 1 is changed: |
133 |
|
|
# - "| <!-- -->\n" |
134 |
|
|
# + "| <!-- ><div>--<! -->\n" |
135 |
wakaba |
1.1 |
# Lines 3-3 are missing: |
136 |
|
|
# - "| <head>\n" |
137 |
|
|
# - "| <body>\n" |
138 |
wakaba |
1.16 |
# - "| <div>\n" |
139 |
|
|
# - "| \"--\"\n" |
140 |
|
|
# - "| <!-- -->\n" |
141 |
wakaba |
1.1 |
ok 79 |
142 |
wakaba |
1.16 |
ok 80 |
143 |
wakaba |
1.1 |
ok 81 |
144 |
wakaba |
1.16 |
ok 82 |
145 |
wakaba |
1.1 |
ok 83 |
146 |
wakaba |
1.16 |
ok 84 |
147 |
wakaba |
1.1 |
ok 85 |
148 |
wakaba |
1.16 |
ok 86 |
149 |
|
|
not ok 87 |
150 |
|
|
# Test 87 got: "17" (t/HTML-tree.t at line 133 fail #44) |
151 |
|
|
# Expected: "9" (Parse error: <!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X-->; 1:7:dash in comment, 1:9:missing DOCTYPE, 1:33:in table:#character, 1:34:in table:#character, 1:35:in table:#character, 1:36:in table:#character, 1:37:in table:#character, 1:38:in table:#character, 1:39:in table:#character, 1:42:in table:b, 1:43:in table:#character, 1:44:in table:#character, 1:45:in table:#character, 1:49:not closed:b, 1:49:missing start tag:tr, 1:64:not closed:i, 1:71:not closed:tbody;7: unexpected '-' character after two '-' characters while parsing comment, 14: missing document type declaration, 40: unexpected node in table context, 41: unexpected node in table context, 46: unexpected node in table context, 48: required tr element start tag implied by unexpected th element start tag, 63: unexpected th element end tag implied other end tags, 72: unexpected end of file implied table element end tag, 72: mismatched body element end tag (premature end of file?)) |
152 |
|
|
ok 88 |
153 |
|
|
not ok 89 |
154 |
|
|
# Test 89 got: "2" (t/HTML-tree.t at line 133 fail #45) |
155 |
|
|
# Expected: "0" (Parse error: <!DOCTYPE HTML><li>hello<li>world<ul>how<li>do</ul>you</body><!--do-->; 1:62:not closed:li, 1:70:after body:/li;) |
156 |
|
|
ok 90 |
157 |
wakaba |
1.1 |
ok 91 |
158 |
wakaba |
1.16 |
ok 92 |
159 |
wakaba |
1.1 |
ok 93 |
160 |
wakaba |
1.16 |
ok 94 |
161 |
wakaba |
1.1 |
ok 95 |
162 |
wakaba |
1.16 |
ok 96 |
163 |
wakaba |
1.11 |
ok 97 |
164 |
wakaba |
1.16 |
ok 98 |
165 |
|
|
ok 99 |
166 |
wakaba |
1.8 |
not ok 100 |
167 |
wakaba |
1.16 |
# Test 100 got: "| <!-- # -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #50) |
168 |
|
|
# Expected: "| <!-- # -->\n| <html>\n| <head>\n| <body>\n" (Document tree: </#) |
169 |
|
|
# Lines 3-3 are missing: |
170 |
|
|
# - "| <head>\n" |
171 |
|
|
# - "| <body>\n" |
172 |
|
|
ok 101 |
173 |
|
|
not ok 102 |
174 |
|
|
# Test 102 got: "| <!-- ? -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #51) |
175 |
|
|
# Expected: "| <!-- ? -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <?) |
176 |
|
|
# Lines 3-3 are missing: |
177 |
|
|
# - "| <head>\n" |
178 |
wakaba |
1.11 |
# - "| <body>\n" |
179 |
wakaba |
1.1 |
ok 103 |
180 |
wakaba |
1.16 |
not ok 104 |
181 |
|
|
# Test 104 got: "| <!-- ?# -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #52) |
182 |
|
|
# Expected: "| <!-- ?# -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <?#) |
183 |
|
|
# Lines 3-3 are missing: |
184 |
|
|
# - "| <head>\n" |
185 |
|
|
# - "| <body>\n" |
186 |
wakaba |
1.1 |
ok 105 |
187 |
wakaba |
1.16 |
not ok 106 |
188 |
|
|
# Test 106 got: "| <!-- -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #53) |
189 |
|
|
# Expected: "| <!-- -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!) |
190 |
|
|
# Lines 3-3 are missing: |
191 |
|
|
# - "| <head>\n" |
192 |
|
|
# - "| <body>\n" |
193 |
wakaba |
1.1 |
ok 107 |
194 |
wakaba |
1.16 |
not ok 108 |
195 |
|
|
# Test 108 got: "| <!-- # -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #54) |
196 |
|
|
# Expected: "| <!-- # -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!#) |
197 |
|
|
# Lines 3-3 are missing: |
198 |
|
|
# - "| <head>\n" |
199 |
|
|
# - "| <body>\n" |
200 |
wakaba |
1.1 |
ok 109 |
201 |
wakaba |
1.16 |
not ok 110 |
202 |
|
|
# Test 110 got: "| <!-- ?COMMENT? -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #55) |
203 |
|
|
# Expected: "| <!-- ?COMMENT? -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <?COMMENT?>) |
204 |
|
|
# Lines 3-3 are missing: |
205 |
|
|
# - "| <head>\n" |
206 |
|
|
# - "| <body>\n" |
207 |
wakaba |
1.1 |
ok 111 |
208 |
wakaba |
1.16 |
not ok 112 |
209 |
|
|
# Test 112 got: "| <!-- COMMENT -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #56) |
210 |
|
|
# Expected: "| <!-- COMMENT -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!COMMENT>) |
211 |
|
|
# Lines 3-3 are missing: |
212 |
|
|
# - "| <head>\n" |
213 |
|
|
# - "| <body>\n" |
214 |
wakaba |
1.1 |
ok 113 |
215 |
wakaba |
1.16 |
not ok 114 |
216 |
|
|
# Test 114 got: "| <!-- COMMENT -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #57) |
217 |
|
|
# Expected: "| <!-- COMMENT -->\n| <html>\n| <head>\n| <body>\n" (Document tree: </ COMMENT >) |
218 |
|
|
# Lines 3-3 are missing: |
219 |
|
|
# - "| <head>\n" |
220 |
|
|
# - "| <body>\n" |
221 |
wakaba |
1.1 |
ok 115 |
222 |
wakaba |
1.16 |
not ok 116 |
223 |
|
|
# Test 116 got: "| <!-- ?COM--MENT? -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #58) |
224 |
|
|
# Expected: "| <!-- ?COM--MENT? -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <?COM--MENT?>) |
225 |
|
|
# Lines 3-3 are missing: |
226 |
|
|
# - "| <head>\n" |
227 |
|
|
# - "| <body>\n" |
228 |
wakaba |
1.1 |
ok 117 |
229 |
wakaba |
1.16 |
not ok 118 |
230 |
|
|
# Test 118 got: "| <!-- COM--MENT -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #59) |
231 |
|
|
# Expected: "| <!-- COM--MENT -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!COM--MENT>) |
232 |
|
|
# Lines 3-3 are missing: |
233 |
|
|
# - "| <head>\n" |
234 |
|
|
# - "| <body>\n" |
235 |
wakaba |
1.1 |
ok 119 |
236 |
wakaba |
1.16 |
not ok 120 |
237 |
|
|
# Test 120 got: "| <!-- COM--MENT -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #60) |
238 |
|
|
# Expected: "| <!-- COM--MENT -->\n| <html>\n| <head>\n| <body>\n" (Document tree: </ COM--MENT >) |
239 |
|
|
# Lines 3-3 are missing: |
240 |
|
|
# - "| <head>\n" |
241 |
|
|
# - "| <body>\n" |
242 |
|
|
not ok 121 |
243 |
|
|
# Test 121 got: "2" (t/HTML-tree.t at line 133 fail #61) |
244 |
|
|
# Expected: "1" (Parse error: <!DOCTYPE HTML><style> EOF; 1:26:in CDATA:#end-of-file, 1:26:not closed:head;27: unexpected end of file while parsing CDATA section for element style) |
245 |
|
|
not ok 122 |
246 |
|
|
# Test 122 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <style>\n| \" EOF\"\n" (t/HTML-tree.t at line 135 fail #61) |
247 |
|
|
# Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <style>\n| \" EOF\"\n| <body>\n" (Document tree: <!DOCTYPE HTML><style> EOF) |
248 |
|
|
# Line 6 is missing: |
249 |
|
|
# - "| <body>\n" |
250 |
|
|
not ok 123 |
251 |
|
|
# Test 123 got: "0" (t/HTML-tree.t at line 133 fail #62) |
252 |
|
|
# Expected: "1" (Parse error: <!DOCTYPE HTML><script> <!-- </script> --> </script> EOF; ;52: unexpected script element end tag) |
253 |
wakaba |
1.11 |
ok 124 |
254 |
|
|
ok 125 |
255 |
wakaba |
1.16 |
ok 126 |
256 |
wakaba |
1.1 |
ok 127 |
257 |
|
|
ok 128 |
258 |
|
|
ok 129 |
259 |
|
|
ok 130 |
260 |
|
|
ok 131 |
261 |
|
|
ok 132 |
262 |
|
|
ok 133 |
263 |
|
|
ok 134 |
264 |
|
|
ok 135 |
265 |
|
|
ok 136 |
266 |
|
|
ok 137 |
267 |
|
|
ok 138 |
268 |
|
|
ok 139 |
269 |
|
|
ok 140 |
270 |
|
|
ok 141 |
271 |
|
|
ok 142 |
272 |
|
|
ok 143 |
273 |
|
|
ok 144 |
274 |
|
|
ok 145 |
275 |
|
|
ok 146 |
276 |
|
|
ok 147 |
277 |
wakaba |
1.16 |
not ok 148 |
278 |
|
|
# Test 148 got: "| <html>\n" (t/HTML-tree.t at line 135 fail #74) |
279 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: ) |
280 |
|
|
# Lines 2-2 are missing: |
281 |
|
|
# - "| <head>\n" |
282 |
|
|
# - "| <body>\n" |
283 |
wakaba |
1.1 |
ok 149 |
284 |
|
|
ok 150 |
285 |
|
|
ok 151 |
286 |
|
|
ok 152 |
287 |
|
|
ok 153 |
288 |
|
|
ok 154 |
289 |
wakaba |
1.11 |
ok 155 |
290 |
|
|
ok 156 |
291 |
wakaba |
1.16 |
ok 157 |
292 |
wakaba |
1.1 |
ok 158 |
293 |
wakaba |
1.11 |
ok 159 |
294 |
|
|
ok 160 |
295 |
wakaba |
1.16 |
ok 161 |
296 |
wakaba |
1.1 |
ok 162 |
297 |
|
|
ok 163 |
298 |
|
|
ok 164 |
299 |
wakaba |
1.11 |
ok 165 |
300 |
|
|
ok 166 |
301 |
wakaba |
1.16 |
ok 167 |
302 |
|
|
ok 168 |
303 |
|
|
ok 169 |
304 |
|
|
ok 170 |
305 |
|
|
ok 171 |
306 |
|
|
ok 172 |
307 |
|
|
ok 173 |
308 |
|
|
ok 174 |
309 |
|
|
ok 175 |
310 |
|
|
ok 176 |
311 |
|
|
ok 177 |
312 |
|
|
ok 178 |
313 |
|
|
not ok 179 |
314 |
|
|
# Test 179 got: "10" (t/HTML-tree.t at line 133 fail #90) |
315 |
|
|
# Expected: "8" (Parse error: <a href="blah">aba<table><a href="foo">br<tr><td></td></tr>x</table>aoe; 1:16:missing DOCTYPE, 1:40:in table:a, 1:40:in a:a, 1:40:unmatched end tag:a, 1:41:in table:#character, 1:42:in table:#character, 1:46:not closed:a, 1:61:in table:#character, 1:69:not closed:a, 1:71:not closed:a;15: missing document type declaration, 39: unexpected node in table context, 39: a element start tag implying a element end tag, 39: unexpected node in table context, 39: mismatched a element end tag (misnested tags across <table> tag), 43: unexpected node in table context, 63: unexpected node in table context, 72: mismatched body element end tag (premature end of file?)) |
316 |
|
|
ok 180 |
317 |
|
|
ok 181 |
318 |
|
|
ok 182 |
319 |
|
|
not ok 183 |
320 |
|
|
# Test 183 got: "10" (t/HTML-tree.t at line 133 fail #92) |
321 |
|
|
# Expected: "6" (Parse error: <table><a href="blah">aba<tr><td><a href="foo">br</td></tr>x</table>aoe; 1:8:missing DOCTYPE, 1:23:in table:a, 1:24:in table:#character, 1:25:in table:#character, 1:26:in table:#character, 1:30:not closed:a, 1:55:not closed:a, 1:61:in table:#character, 1:69:not closed:a, 1:71:not closed:a;7: missing document type declaration, 22: unexpected node in table context, 27: unexpected node in table context, 54: unexpected td element end tag implied other end tags, 63: unexpected node in table context, 72: mismatched body element end tag (premature end of file?)) |
322 |
|
|
ok 184 |
323 |
|
|
ok 185 |
324 |
|
|
ok 186 |
325 |
|
|
ok 187 |
326 |
|
|
ok 188 |
327 |
|
|
not ok 189 |
328 |
|
|
# Test 189 got: "2" (t/HTML-tree.t at line 133 fail #95) |
329 |
wakaba |
1.1 |
# Expected: "1" (Parse error: <title><meta></title><link><title><meta></title>; 1:8:missing DOCTYPE, 1:48:not closed:head;7: missing document type declaration) |
330 |
wakaba |
1.16 |
not ok 190 |
331 |
|
|
# Test 190 got: "| <html>\n| <head>\n| <title>\n| \"<meta>\"\n| <link>\n| <title>\n| \"<meta>\"\n" (t/HTML-tree.t at line 135 fail #95) |
332 |
wakaba |
1.1 |
# Expected: "| <html>\n| <head>\n| <title>\n| \"<meta>\"\n| <link>\n| <title>\n| \"<meta>\"\n| <body>\n" (Document tree: <title><meta></title><link><title><meta></title>) |
333 |
|
|
# Line 8 is missing: |
334 |
|
|
# - "| <body>\n" |
335 |
wakaba |
1.16 |
not ok 191 |
336 |
|
|
# Test 191 got: "4" (t/HTML-tree.t at line 133 fail #96) |
337 |
wakaba |
1.15 |
# Expected: "2" (Parse error: <style><!--</style><meta><script>--><link></script>; 1:8:missing DOCTYPE, 1:46:unmatched end tag, 1:51:in CDATA:#end-of-file, 1:51:not closed:head;missing document type declaration, unexpected EOF) |
338 |
wakaba |
1.16 |
not ok 192 |
339 |
|
|
# Test 192 got: "| <html>\n| <head>\n| <style>\n| \"<!--</style><meta><script>--><link></script>\"\n" (t/HTML-tree.t at line 135 fail #96) |
340 |
wakaba |
1.8 |
# Expected: "| <html>\n| <head>\n| <style>\n| \"<!--</style><meta><script>--><link></script>\"\n| <body>\n" (Document tree: <style><!--</style><meta><script>--><link></script>) |
341 |
wakaba |
1.15 |
# Line 5 is missing: |
342 |
wakaba |
1.1 |
# - "| <body>\n" |
343 |
wakaba |
1.16 |
ok 193 |
344 |
|
|
not ok 194 |
345 |
|
|
# Test 194 got: "| <html>\n| <head>\n| <meta>\n| <link>\n" (t/HTML-tree.t at line 135 fail #97) |
346 |
wakaba |
1.1 |
# Expected: "| <html>\n| <head>\n| <meta>\n| <link>\n| <body>\n" (Document tree: <head><meta></head><link>) |
347 |
|
|
# Line 5 is missing: |
348 |
|
|
# - "| <body>\n" |
349 |
wakaba |
1.16 |
ok 195 |
350 |
|
|
ok 196 |
351 |
|
|
not ok 197 |
352 |
|
|
# Test 197 got: "9" (t/HTML-tree.t at line 133 fail #99) |
353 |
wakaba |
1.1 |
# Expected: "7" (Parse error: <body><body><base><link><meta><title><p></title><body><p></body>; 1:7:missing DOCTYPE, 1:13:in body:body, 1:19:in body:base, 1:25:in body:link, 1:31:in body:meta, 1:38:in body:title, 1:55:in body:body, 1:64:not closed:p, 1:64:after body:/p;6: missing document type declaration, 12: unexpected body element start tag, 18: base element start tag out of place, 24: link element start tag out of place, 30: meta element start tag out of place, 37: title element start tag out of place, 54: unexpected body element start tag) |
354 |
wakaba |
1.16 |
not ok 198 |
355 |
|
|
# Test 198 got: "| <html>\n| <head>\n| <base>\n| <link>\n| <meta>\n| <title>\n| \"<p>\"\n| <body>\n| <p>\n" (t/HTML-tree.t at line 135 fail #99) |
356 |
wakaba |
1.8 |
# Expected: "| <html>\n| <head>\n| <title>\n| \"<p>\"\n| <body>\n| <base>\n| <link>\n| <meta>\n| <p>\n" (Document tree: <body><body><base><link><meta><title><p></title><body><p></body>) |
357 |
|
|
# Got 3 extra lines at line 3: |
358 |
|
|
# + "| <base>\n" |
359 |
|
|
# + "| <link>\n" |
360 |
|
|
# + "| <meta>\n" |
361 |
|
|
# Lines 9-9 are missing: |
362 |
|
|
# - "| <base>\n" |
363 |
|
|
# - "| <link>\n" |
364 |
|
|
# - "| <meta>\n" |
365 |
wakaba |
1.16 |
ok 199 |
366 |
|
|
ok 200 |
367 |
|
|
ok 201 |
368 |
|
|
ok 202 |
369 |
|
|
not ok 203 |
370 |
|
|
# Test 203 got: "11" (t/HTML-tree.t at line 133 fail #102) |
371 |
wakaba |
1.1 |
# Expected: "12" (Parse error: <a><table><a></table><p><a><div><a>; 1:4:missing DOCTYPE, 1:14:in table:a, 1:14:in a:a, 1:14:unmatched end tag:a, 1:22:not closed:a, 1:28:in a:a, 1:28:unmatched end tag:a, 1:33:not closed:a, 1:35:in a:a, 1:35:unmatched end tag:a, 1:35:not closed:a;3: missing document type declaration, 13: unexpected node in table context, 13: a element start tag implying a element end tag, 13: unexpected node in table context, 13: mismatched a element end tag (misnested tags across <table> tag), 21: mismatched table element end tag, 27: a element start tag implying a element end tag, 27: mismatched a element end tag (out-of-order end tags), 32: mismatched p element end tag, 35: a element start tag implying a element end tag, 35: mismatched a element end tag (out-of-order end tags), 36: mismatched body element end tag (premature end of file?)) |
372 |
wakaba |
1.16 |
ok 204 |
373 |
|
|
ok 205 |
374 |
|
|
ok 206 |
375 |
|
|
not ok 207 |
376 |
|
|
# Test 207 got: "4" (t/HTML-tree.t at line 133 fail #104) |
377 |
wakaba |
1.8 |
# Expected: "3" (Parse error: <head></html><meta><p>; 1:7:missing DOCTYPE, 1:20:after html:meta, 1:20:after body:meta, 1:20:in body:meta;6: missing document type declaration, 19: unexpected node at end of document, 19: unexpected node after body element end tag) |
378 |
wakaba |
1.16 |
not ok 208 |
379 |
|
|
# Test 208 got: "| <html>\n| <head>\n| <meta>\n| <body>\n| <p>\n" (t/HTML-tree.t at line 135 fail #104) |
380 |
wakaba |
1.8 |
# Expected: "| <html>\n| <head>\n| <body>\n| <meta>\n| <p>\n" (Document tree: <head></html><meta><p>) |
381 |
|
|
# Got 1 extra line at line 3: |
382 |
|
|
# + "| <meta>\n" |
383 |
|
|
# Line 5 is missing: |
384 |
|
|
# - "| <meta>\n" |
385 |
wakaba |
1.16 |
ok 209 |
386 |
|
|
ok 210 |
387 |
|
|
ok 211 |
388 |
|
|
ok 212 |
389 |
|
|
not ok 213 |
390 |
|
|
# Test 213 got: "3" (t/HTML-tree.t at line 133 fail #107) |
391 |
wakaba |
1.8 |
# Expected: "2" (Parse error: <h1><h2>; 1:5:missing DOCTYPE, 1:8:in hn:hn, 1:8:not closed:h2;4: missing document type declaration, 9: mismatched body element end tag (premature end of file?)) |
392 |
wakaba |
1.16 |
not ok 214 |
393 |
|
|
# Test 214 got: "| <html>\n| <head>\n| <body>\n| <h1>\n| <h2>\n" (t/HTML-tree.t at line 135 fail #107) |
394 |
wakaba |
1.8 |
# Expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| <h2>\n" (Document tree: <h1><h2>) |
395 |
|
|
# Line 5 is changed: |
396 |
|
|
# - "| <h2>\n" |
397 |
|
|
# + "| <h2>\n" |
398 |
wakaba |
1.16 |
ok 215 |
399 |
|
|
ok 216 |
400 |
wakaba |
1.1 |
ok 217 |
401 |
|
|
ok 218 |
402 |
|
|
ok 219 |
403 |
|
|
ok 220 |
404 |
|
|
ok 221 |
405 |
wakaba |
1.11 |
ok 222 |
406 |
|
|
ok 223 |
407 |
wakaba |
1.16 |
ok 224 |
408 |
|
|
ok 225 |
409 |
|
|
ok 226 |
410 |
wakaba |
1.1 |
ok 227 |
411 |
|
|
ok 228 |
412 |
|
|
ok 229 |
413 |
|
|
ok 230 |
414 |
wakaba |
1.16 |
not ok 231 |
415 |
|
|
# Test 231 got: "4" (t/HTML-tree.t at line 133 fail #116) |
416 |
|
|
# Expected: "2" (Parse error: <ul><li></li><div><li></div><li><li><div><li><address><li><b><em></b><li></ul>; 1:5:missing DOCTYPE, 1:46:end tag missing:div, 1:59:end tag missing:address, 1:70:not closed:em;4: missing document type declaration, 69: mismatched b element end tag (misnested tags)) |
417 |
wakaba |
1.1 |
ok 232 |
418 |
|
|
ok 233 |
419 |
|
|
ok 234 |
420 |
wakaba |
1.11 |
ok 235 |
421 |
|
|
ok 236 |
422 |
|
|
not ok 237 |
423 |
wakaba |
1.16 |
# Test 237 got: "5" (t/HTML-tree.t at line 133 fail #119) |
424 |
|
|
# Expected: "4" (Parse error: <h1><table><td><h3></table><h3></h1>; 1:5:missing DOCTYPE, 1:16:missing start tag:tr, 1:28:not closed:h3, 1:32:in hn:hn, 1:36:not closed:h3;4: missing document type declaration, 15: required tr element start tag implied by unexpected td element start tag, 27: unexpected td element end tag implied other end tags, Unexpected EOF) |
425 |
|
|
not ok 238 |
426 |
|
|
# Test 238 got: "| <html>\n| <head>\n| <body>\n| <h1>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <h3>\n| <h3>\n" (t/HTML-tree.t at line 135 fail #119) |
427 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <h3>\n| <h3>\n" (Document tree: <h1><table><td><h3></table><h3></h1>) |
428 |
|
|
# Line 10 is changed: |
429 |
|
|
# - "| <h3>\n" |
430 |
|
|
# + "| <h3>\n" |
431 |
wakaba |
1.11 |
ok 239 |
432 |
wakaba |
1.1 |
ok 240 |
433 |
wakaba |
1.16 |
ok 241 |
434 |
|
|
ok 242 |
435 |
|
|
ok 243 |
436 |
|
|
ok 244 |
437 |
|
|
ok 245 |
438 |
|
|
not ok 246 |
439 |
|
|
# Test 246 got: "| <html>\n| <head>\n| <body>\n" (t/HTML-tree.t at line 135 fail #123) |
440 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n| <br>\n" (Document tree: </strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea>) |
441 |
|
|
# Line 4 is missing: |
442 |
|
|
# - "| <br>\n" |
443 |
|
|
not ok 247 |
444 |
|
|
# Test 247 got: "112" (t/HTML-tree.t at line 133 fail #124) |
445 |
|
|
# Expected: "109" (Parse error: <table><tr></strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea>; 1:8:missing DOCTYPE, 1:21:in table:strong, 1:21:unmatched end tag:strong, 1:25:in table:b, 1:25:unmatched end tag:b, 1:30:in table:em, 1:30:unmatched end tag:em, 1:34:in table:i, 1:34:unmatched end tag:i, 1:38:in table:u, 1:38:unmatched end tag:u, 1:47:in table:strike, 1:47:not closed:tr, 1:51:in table:s, 1:51:unmatched end tag:s, 1:59:in table:blink, 1:59:not closed:tr, 1:64:in table:tt, 1:64:unmatched end tag:tt, 1:70:in table:pre, 1:70:not closed:tr, 1:76:in table:big, 1:76:unmatched end tag:big, 1:84:in table:small, 1:84:unmatched end tag:small, 1:91:in table:font, 1:91:unmatched end tag:font, 1:100:in table:select, 1:100:unmatched end tag:select, 1:105:in table:h1, 1:105:not closed:tr, 1:110:in table:h2, 1:110:not closed:tr, 1:115:in table:h3, 1:115:not closed:tr, 1:120:in table:h4, 1:120:not closed:tr, 1:125:in table:h5, 1:125:not closed:tr, 1:130:in table:h6, 1:130:not closed:tr, 1:137:unmatched end tag:body, 1:142:in table:br, 1:142:unmatched end tag:br, 1:146:in table:a, 1:146:unmatched end tag:a, 1:152:in table:img, 1:152:unmatched end tag:img, 1:160:in table:title, 1:160:not closed:tr, 1:167:in table:span, 1:167:not closed:tr, 1:175:in table:style, 1:175:not closed:tr, 1:184:in table:script, 1:184:not closed:tr, 1:197:unmatched end tag:th, 1:202:unmatched end tag:td, 1:207:unmatched end tag:tr, 1:215:unmatched end tag:frame, 1:222:unmatched end tag:area, 1:229:not closed:body, 1:237:unmatched end tag:param, 1:242:unmatched end tag:hr, 1:250:unmatched end tag:input, 1:256:unmatched end tag:col, 1:263:not closed:body, 1:270:not closed:body, 1:281:unmatched end tag:basefont, 1:291:unmatched end tag:bgsound, 1:299:unmatched end tag:embed, 1:308:unmatched end tag:spacer, 1:312:not closed:body, 1:317:not closed:body, 1:322:not closed:body, 1:332:unmatched end tag:caption, 1:343:unmatched end tag:colgroup, 1:351:unmatched end tag:tbody, 1:359:unmatched end tag:tfoot, 1:367:unmatched end tag:thead, 1:377:not closed:body, 1:390:not closed:body, 1:399:not closed:body, 1:405:not closed:body, 1:411:not closed:body, 1:416:not closed:body, 1:427:not closed:body, 1:437:not closed:body, 1:444:not closed:body, 1:449:not closed:body, 1:454:not closed:body, 1:459:not closed:body, 1:466:unmatched end tag:nobr, 1:472:unmatched end tag:wbr, 1:479:not closed:body, 1:488:not closed:body, 1:498:not closed:body, 1:507:not closed:body, 1:525:after html:frameset, 1:525:after body:/frameset, 1:525:unmatched end tag:frameset, 1:532:unmatched end tag:head, 1:541:unmatched end tag:iframe, 1:549:unmatched end tag:image, 1:559:unmatched end tag:isindex, 1:569:unmatched end tag:noembed, 1:580:unmatched end tag:noframes, 1:591:not closed:body, 1:602:unmatched end tag:optgroup, 1:611:unmatched end tag:option, 1:623:not closed:body, 1:633:unmatched end tag:textarea;7: missing document type declaration, 20: unexpected node in table context, 20: mismatched strong element end tag (no matching start tag), 24: unexpected node in table context, 24: mismatched b element end tag (no matching start tag), 29: unexpected node in table context, 29: mismatched em element end tag (no matching start tag), 33: unexpected node in table context, 33: mismatched i element end tag (no matching start tag), 37: unexpected node in table context, 37: mismatched u element end tag (no matching start tag), 46: unexpected node in table context, 46: mismatched strike element end tag (no matching start tag), 50: unexpected node in table context, 50: mismatched s element end tag (no matching start tag), 58: unexpected node in table context, 58: unexpected blink element end tag, 63: unexpected node in table context, 63: mismatched tt element end tag (no matching start tag), 69: unexpected node in table context, 69: mismatched pre element end tag, 75: unexpected node in table context, 75: mismatched big element end tag (no matching start tag), 83: unexpected node in table context, 83: mismatched small element end tag (no matching start tag), 90: unexpected node in table context, 90: mismatched font element end tag (no matching start tag), 99: unexpected node in table context, 99: mismatched special end tag select, 104: unexpected node in table context, 104: mismatched h1 element end tag, 109: unexpected node in table context, 109: mismatched h2 element end tag, 114: unexpected node in table context, 114: mismatched h3 element end tag, 119: unexpected node in table context, 119: mismatched h4 element end tag, 124: unexpected node in table context, 124: mismatched h5 element end tag, 129: unexpected node in table context, 129: mismatched h6 element end tag, 136: unexpected body element end tag, 141: unexpected node in table context, 141: unexpected br end tag (that element has no end tag, ever), 145: unexpected node in table context, 145: mismatched a element end tag (no matching start tag), 151: unexpected node in table context, 151: unexpected img end tag (that element has no end tag, ever), 159: unexpected node in table context, 159: unexpected title element end tag, 166: unexpected node in table context, 166: unexpected span element end tag, 174: unexpected node in table context, 174: unexpected style element end tag, 183: unexpected node in table context, 183: unexpected script element end tag, 196: unexpected th element end tag, 201: unexpected td element end tag, 206: unexpected tr element end tag, 214: unexpected frame element end tag, 221: unexpected area end tag (that element has no end tag, ever), 228: unexpected link element end tag, 236: unexpected param end tag (that element has no end tag, ever), 241: unexpected hr end tag (that element has no end tag, ever), 249: unexpected input end tag (that element has no end tag, ever), 255: unexpected col element end tag, 262: unexpected base element end tag, 269: unexpected meta element end tag, 280: unexpected basefont end tag (that element has no end tag, ever), 290: unexpected bgsound end tag (that element has no end tag, ever), 298: unexpected embed end tag (that element has no end tag, ever), 307: unexpected spacer end tag (that element has no end tag, ever), 311: mismatched p element end tag, 316: mismatched dd element end tag, 321: mismatched dt element end tag, 331: unexpected caption element end tag, 342: unexpected colgroup element end tag, 350: unexpected tbody element end tag, 358: unexpected tfoot element end tag, 366: unexpected thead element end tag, 376: mismatched address element end tag, 389: mismatched blockquote element end tag, 398: mismatched center element end tag, 404: mismatched dir element end tag, 410: mismatched div element end tag, 415: mismatched dl element end tag, 426: mismatched fieldset element end tag, 436: mismatched listing element end tag, 443: mismatched menu element end tag, 448: mismatched ol element end tag, 453: mismatched ul element end tag, 458: mismatched li element end tag, 465: mismatched nobr element end tag (no matching start tag), 471: unexpected wbr end tag (that element has no end tag, ever), 478: mismatched form element end tag, 524: unexpected node at end of document, 524: unexpected node after body element end tag, 524: unexpected frameset element end tag, 531: unexpected head element end tag, 540: mismatched special end tag iframe, 548: unexpected image end tag (that element has no end tag, ever), 558: unexpected isindex end tag (that element has no end tag, ever), 568: mismatched special end tag noembed, 579: mismatched special end tag noframes, 590: mismatched special end tag noscript, 601: unexpected optgroup element end tag, 610: unexpected option element end tag, 622: unexpected plaintext element end tag, 633: mismatched special end tag textarea) |
446 |
|
|
not ok 248 |
447 |
|
|
# Test 248 got: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n" (t/HTML-tree.t at line 135 fail #124) |
448 |
|
|
# Expected: "| <html>\n| <head>\n| <body>\n| <br>\n| <table>\n| <tbody>\n| <tr>\n" (Document tree: <table><tr></strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea>) |
449 |
|
|
# Line 4 is missing: |
450 |
|
|
# - "| <br>\n" |
451 |
|
|
# t/tree-construction/tests2.dat |
452 |
|
|
ok 249 |
453 |
|
|
ok 250 |
454 |
|
|
ok 251 |
455 |
|
|
ok 252 |
456 |
|
|
ok 253 |
457 |
|
|
ok 254 |
458 |
|
|
ok 255 |
459 |
|
|
ok 256 |
460 |
|
|
ok 257 |
461 |
|
|
ok 258 |
462 |
|
|
not ok 259 |
463 |
|
|
# Test 259 got: "5" (t/HTML-tree.t at line 133 fail #130) |
464 |
|
|
# Expected: "2" (Parse error: <!DOCTYPE HTML><frameset>test; 1:27:in frameset:#character, 1:28:in frameset:#character, 1:29:in frameset:#character, 1:29:in frameset:#character, 1:29:not closed:frameset;frameset can't contain text, Unexpected end of file) |
465 |
|
|
ok 260 |
466 |
|
|
ok 261 |
467 |
|
|
ok 262 |
468 |
|
|
not ok 263 |
469 |
|
|
# Test 263 got: "1" (t/HTML-tree.t at line 133 fail #132) |
470 |
wakaba |
1.11 |
# Expected: "0" (Parse error: <!DOCTYPE HTML><font><p><b>test</font>; 1:38:not closed:b;) |
471 |
wakaba |
1.16 |
ok 264 |
472 |
|
|
not ok 265 |
473 |
|
|
# Test 265 got: "1" (t/HTML-tree.t at line 133 fail #133) |
474 |
wakaba |
1.11 |
# Expected: "0" (Parse error: <!DOCTYPE HTML><dt><div><dd>; 1:28:end tag missing:div;) |
475 |
wakaba |
1.16 |
ok 266 |
476 |
|
|
not ok 267 |
477 |
|
|
# Test 267 got: "4" (t/HTML-tree.t at line 133 fail #134) |
478 |
wakaba |
1.1 |
# Expected: "3" (Parse error: <script></x; 1:9:missing DOCTYPE, 1:11:unmatched end tag, 1:11:in CDATA:#end-of-file, 1:11:not closed:head;no document type, </ in script, Unexpected end of file. Expected </script> end tag.) |
479 |
wakaba |
1.16 |
not ok 268 |
480 |
|
|
# Test 268 got: "| <html>\n| <head>\n| <script>\n| \"</x\"\n" (t/HTML-tree.t at line 135 fail #134) |
481 |
wakaba |
1.1 |
# Expected: "| <html>\n| <head>\n| <script>\n| \"</x\"\n| <body>\n" (Document tree: <script></x) |
482 |
|
|
# Line 5 is missing: |
483 |
|
|
# - "| <body>\n" |
484 |
wakaba |
1.16 |
not ok 269 |
485 |
|
|
# Test 269 got: "7" (t/HTML-tree.t at line 133 fail #135) |
486 |
wakaba |
1.1 |
# Expected: "4" (Parse error: <table><plaintext><td>; 1:8:missing DOCTYPE, 1:19:in table:plaintext, 1:20:in table:#character, 1:21:in table:#character, 1:22:in table:#character, 1:22:in table:#character, 1:22:not closed:plaintext;no document type, <plaintext> directly inside table, Characters inside table., Unexpected end of file.) |
487 |
wakaba |
1.16 |
ok 270 |
488 |
|
|
ok 271 |
489 |
|
|
ok 272 |
490 |
|
|
not ok 273 |
491 |
|
|
# Test 273 got: "5" (t/HTML-tree.t at line 133 fail #137) |
492 |
wakaba |
1.8 |
# Expected: "2" (Parse error: <!DOCTYPE HTML><table><tr>TEST; 1:28:in table:#character, 1:29:in table:#character, 1:30:in table:#character, 1:30:in table:#character, 1:30:not closed:tbody;TEST can't occur in <tr>, Unexpected end of file.) |
493 |
wakaba |
1.16 |
ok 274 |
494 |
|
|
ok 275 |
495 |
|
|
not ok 276 |
496 |
|
|
# Test 276 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| t1=\"1\"\n| t2=\"2\"\n| t3=\"3\"\n| t4=\"4\"\n" (t/HTML-tree.t at line 135 fail #138) |
497 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| t4=\"4\"\n| t2=\"2\"\n| t3=\"3\"\n| t1=\"1\"\n" (Document tree: <!DOCTYPE HTML><body t1=1><body t2=2><body t3=3 t4=4>) |
498 |
wakaba |
1.1 |
# Line 5 is changed: |
499 |
|
|
# - "| t4=\"4\"\n" |
500 |
|
|
# + "| t1=\"1\"\n" |
501 |
|
|
# Line 8 is changed: |
502 |
|
|
# - "| t1=\"1\"\n" |
503 |
|
|
# + "| t4=\"4\"\n" |
504 |
wakaba |
1.16 |
ok 277 |
505 |
|
|
not ok 278 |
506 |
|
|
# Test 278 got: "| <html>\n" (t/HTML-tree.t at line 135 fail #139) |
507 |
wakaba |
1.1 |
# Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: </b test) |
508 |
|
|
# Lines 2-2 are missing: |
509 |
|
|
# - "| <head>\n" |
510 |
|
|
# - "| <body>\n" |
511 |
wakaba |
1.16 |
not ok 279 |
512 |
|
|
# Test 279 got: "5" (t/HTML-tree.t at line 133 fail #140) |
513 |
wakaba |
1.8 |
# Expected: "4" (Parse error: <!DOCTYPE HTML></b test<b &=&>X; 1:24:unclosed tag, 1:24:end tag attribute, 1:24:unmatched end tag:b, 1:33:refc, 1:34:not closed:b;Unexpected < in attribute, End tag contains attributes., Unexpected end tag., Named entity didn't end with ;) |
514 |
wakaba |
1.16 |
not ok 280 |
515 |
|
|
# Test 280 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <b>\n| &=\"&\"\n| \"X\"\n" (t/HTML-tree.t at line 135 fail #140) |
516 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| \"X\"\n" (Document tree: <!DOCTYPE HTML></b test<b &=&>X) |
517 |
|
|
# Line 5 is changed: |
518 |
|
|
# - "| \"X\"\n" |
519 |
|
|
# + "| <b>\n" |
520 |
|
|
# Got 2 extra lines at line 6: |
521 |
|
|
# + "| &=\"&\"\n" |
522 |
|
|
# + "| \"X\"\n" |
523 |
wakaba |
1.16 |
not ok 281 |
524 |
|
|
# Test 281 got: "3" (t/HTML-tree.t at line 133 fail #141) |
525 |
wakaba |
1.1 |
# Expected: "2" (Parse error: <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt; 1:10:no space before DOCTYPE name, 1:54:unclosed tag, 1:54:not closed:head;No space after literal DOCTYPE., Unexpected EOF in (end) tag name) |
526 |
wakaba |
1.16 |
not ok 282 |
527 |
|
|
# Test 282 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <script>\n| type=\"text/x-foobar;baz\"\n| \"X\"\n" (t/HTML-tree.t at line 135 fail #141) |
528 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| type=\"text/x-foobar;baz\"\n| \"X\"\n| <body>\n" (Document tree: <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt) |
529 |
|
|
# Line 1 is changed: |
530 |
|
|
# - "| <!DOCTYPE html>\n" |
531 |
|
|
# + "| <!DOCTYPE HTML>\n" |
532 |
wakaba |
1.1 |
# Line 7 is missing: |
533 |
|
|
# - "| <body>\n" |
534 |
wakaba |
1.16 |
ok 283 |
535 |
|
|
ok 284 |
536 |
|
|
ok 285 |
537 |
|
|
ok 286 |
538 |
|
|
ok 287 |
539 |
|
|
ok 288 |
540 |
|
|
ok 289 |
541 |
|
|
ok 290 |
542 |
|
|
ok 291 |
543 |
|
|
ok 292 |
544 |
|
|
ok 293 |
545 |
|
|
ok 294 |
546 |
|
|
ok 295 |
547 |
|
|
not ok 296 |
548 |
|
|
# Test 296 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <p>\n| <li>\n" (t/HTML-tree.t at line 135 fail #148) |
549 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <li>\n" (Document tree: <!doctypehtml><p><li>) |
550 |
|
|
# Line 1 is changed: |
551 |
|
|
# - "| <!DOCTYPE html>\n" |
552 |
|
|
# + "| <!DOCTYPE HTML>\n" |
553 |
wakaba |
1.16 |
ok 297 |
554 |
|
|
ok 298 |
555 |
|
|
ok 299 |
556 |
|
|
not ok 300 |
557 |
|
|
# Test 300 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <p>\n| <dd>\n" (t/HTML-tree.t at line 135 fail #150) |
558 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htmL>\n| <html>\n| <head>\n| <body>\n| <p>\n| <dd>\n" (Document tree: <!doctypehtmL><p><dd>) |
559 |
|
|
# Line 1 is changed: |
560 |
|
|
# - "| <!DOCTYPE htmL>\n" |
561 |
|
|
# + "| <!DOCTYPE HTML>\n" |
562 |
wakaba |
1.16 |
ok 301 |
563 |
|
|
not ok 302 |
564 |
|
|
# Test 302 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <p>\n| <form>\n" (t/HTML-tree.t at line 135 fail #151) |
565 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <form>\n" (Document tree: <!doctypehtml><p><form>) |
566 |
|
|
# Line 1 is changed: |
567 |
|
|
# - "| <!DOCTYPE html>\n" |
568 |
|
|
# + "| <!DOCTYPE HTML>\n" |
569 |
wakaba |
1.16 |
ok 303 |
570 |
|
|
not ok 304 |
571 |
|
|
# Test 304 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <i>\n| <u>\n| <b>\n| <i>\n| <u>\n| \" \"\n| <p>\n| \"X\"\n" (t/HTML-tree.t at line 135 fail #152) |
572 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <i>\n| <u>\n| \" \"\n| <p>\n| <b>\n| <i>\n| <u>\n| \"X\"\n" (Document tree: <!DOCTYPE HTML><p><b><i><u></p> <p>X) |
573 |
wakaba |
1.1 |
# Lines 9-13 are changed: |
574 |
|
|
# - "| \" \"\n" |
575 |
|
|
# + "| <b>\n" |
576 |
|
|
# - "| <p>\n" |
577 |
|
|
# + "| <i>\n" |
578 |
|
|
# - "| <b>\n" |
579 |
|
|
# + "| <u>\n" |
580 |
|
|
# - "| <i>\n" |
581 |
|
|
# + "| \" \"\n" |
582 |
|
|
# - "| <u>\n" |
583 |
|
|
# + "| <p>\n" |
584 |
wakaba |
1.16 |
ok 305 |
585 |
|
|
ok 306 |
586 |
|
|
ok 307 |
587 |
|
|
ok 308 |
588 |
|
|
ok 309 |
589 |
|
|
ok 310 |
590 |
|
|
ok 311 |
591 |
|
|
ok 312 |
592 |
|
|
ok 313 |
593 |
|
|
ok 314 |
594 |
|
|
ok 315 |
595 |
|
|
not ok 316 |
596 |
|
|
# Test 316 got: "| <!DOCTYPE HTML>\n| <!-- X -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #158) |
597 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <!-- X -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><!-- X) |
598 |
wakaba |
1.1 |
# Lines 4-4 are missing: |
599 |
|
|
# - "| <head>\n" |
600 |
|
|
# - "| <body>\n" |
601 |
wakaba |
1.16 |
ok 317 |
602 |
|
|
ok 318 |
603 |
|
|
ok 319 |
604 |
|
|
ok 320 |
605 |
|
|
ok 321 |
606 |
|
|
ok 322 |
607 |
|
|
ok 323 |
608 |
|
|
ok 324 |
609 |
|
|
ok 325 |
610 |
|
|
ok 326 |
611 |
|
|
ok 327 |
612 |
|
|
not ok 328 |
613 |
|
|
# Test 328 got: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #164) |
614 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><!-- XXX - XXX -->) |
615 |
wakaba |
1.1 |
# Lines 4-4 are missing: |
616 |
|
|
# - "| <head>\n" |
617 |
|
|
# - "| <body>\n" |
618 |
wakaba |
1.16 |
ok 329 |
619 |
|
|
not ok 330 |
620 |
|
|
# Test 330 got: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #165) |
621 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><!-- XXX - XXX) |
622 |
wakaba |
1.1 |
# Lines 4-4 are missing: |
623 |
|
|
# - "| <head>\n" |
624 |
|
|
# - "| <body>\n" |
625 |
wakaba |
1.16 |
ok 331 |
626 |
|
|
not ok 332 |
627 |
|
|
# Test 332 got: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX - XXX -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #166) |
628 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX - XXX -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><!-- XXX - XXX - XXX -->) |
629 |
wakaba |
1.1 |
# Lines 4-4 are missing: |
630 |
|
|
# - "| <head>\n" |
631 |
|
|
# - "| <body>\n" |
632 |
wakaba |
1.16 |
ok 333 |
633 |
|
|
not ok 334 |
634 |
|
|
# Test 334 got: "| <html>\n| <head>\n| <body>\n| <form>\n| <hr>\n| <p>\n| <label>\n| \"This is a searchable index. Insert your search keywords here: \"\n| <input>\n| name=\"isindex\"\n| test=\"x\"\n| <hr>\n" (t/HTML-tree.t at line 135 fail #167) |
635 |
wakaba |
1.1 |
# Expected: "| <html>\n| <head>\n| <body>\n| <form>\n| <hr>\n| <p>\n| <label>\n| \"This is a searchable index. Insert your search keywords here:\"\n| <input>\n| test=\"x\"\n| name=\"isindex\"\n| <hr>\n" (Document tree: <isindex test=x name=x>) |
636 |
|
|
# Line 8 is changed: |
637 |
|
|
# - "| \"This is a searchable index. Insert your search keywords here:\"\n" |
638 |
|
|
# + "| \"This is a searchable index. Insert your search keywords here: \"\n" |
639 |
|
|
# Got 1 extra line at line 10: |
640 |
|
|
# + "| name=\"isindex\"\n" |
641 |
|
|
# Line 12 is missing: |
642 |
|
|
# - "| name=\"isindex\"\n" |
643 |
wakaba |
1.16 |
ok 335 |
644 |
|
|
ok 336 |
645 |
|
|
ok 337 |
646 |
|
|
not ok 338 |
647 |
|
|
# Test 338 got: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <i>\n| <u>\n| <b>\n| <i>\n| <u>\n| \"\n\"\n| <p>\n| \"X\"\n" (t/HTML-tree.t at line 135 fail #169) |
648 |
wakaba |
1.1 |
# Expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <i>\n| <u>\n| \"\n\"\n| <p>\n| <b>\n| <i>\n| <u>\n| \"X\"\n" (Document tree: <p><b><i><u></p> |
649 |
|
|
#<p>X) |
650 |
|
|
# Line 8 is changed: |
651 |
|
|
# - "| \"\n" |
652 |
|
|
# + "| <b>\n" |
653 |
|
|
# Got 3 extra lines at line 9: |
654 |
|
|
# + "| <i>\n" |
655 |
|
|
# + "| <u>\n" |
656 |
|
|
# + "| \"\n" |
657 |
|
|
# Line 13 is changed: |
658 |
|
|
# - "| <p>\n" |
659 |
|
|
# + "| <p>\n" |
660 |
|
|
# Lines 14-14 are missing: |
661 |
|
|
# - "| <b>\n" |
662 |
|
|
# - "| <i>\n" |
663 |
|
|
# - "| <u>\n" |
664 |
wakaba |
1.16 |
ok 339 |
665 |
|
|
ok 340 |
666 |
|
|
ok 341 |
667 |
|
|
not ok 342 |
668 |
|
|
# Test 342 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <title>\n| \"X\"\n| <meta>\n| name=\"z\"\n| <link>\n| rel=\"foo\"\n| <body>\n| <style>\n| \"\nx { content:\"</style\" } \"\n" (t/HTML-tree.t at line 135 fail #171) |
669 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <title>\n| \"X\"\n| <body>\n| <meta>\n| name=\"z\"\n| <link>\n| rel=\"foo\"\n| <style>\n| \"\nx { content:\"</style\" } \"\n" (Document tree: <!DOCTYPE HTML><body><title>X</title><meta name=z><link rel=foo><style> |
670 |
|
|
#x { content:"</style" } </style>) |
671 |
|
|
# Line 6 is missing: |
672 |
|
|
# - "| <body>\n" |
673 |
|
|
# Got 1 extra line at line 10: |
674 |
|
|
# + "| <body>\n" |
675 |
wakaba |
1.16 |
ok 343 |
676 |
|
|
ok 344 |
677 |
|
|
ok 345 |
678 |
|
|
not ok 346 |
679 |
|
|
# Test 346 got: "| \" \n \"\n| <html>\n" (t/HTML-tree.t at line 135 fail #173) |
680 |
wakaba |
1.1 |
# Expected: "| \" \n \"\n| <html>\n| <head>\n| <body>\n" (Document tree: |
681 |
|
|
# ) |
682 |
|
|
# Lines 4-4 are missing: |
683 |
|
|
# - "| <head>\n" |
684 |
|
|
# - "| <body>\n" |
685 |
wakaba |
1.16 |
ok 347 |
686 |
|
|
not ok 348 |
687 |
|
|
# Test 348 got: "| <!DOCTYPE HTML>\n| \" \"\n| <html>\n" (t/HTML-tree.t at line 135 fail #174) |
688 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| \" \"\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML> <html>) |
689 |
wakaba |
1.1 |
# Lines 4-4 are missing: |
690 |
|
|
# - "| <head>\n" |
691 |
|
|
# - "| <body>\n" |
692 |
wakaba |
1.16 |
ok 349 |
693 |
|
|
not ok 350 |
694 |
|
|
# Test 350 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <script>\n| \"\n\"\n| \" \"\n| <title>\n| \"x\"\n| \" \"\n" (t/HTML-tree.t at line 135 fail #175) |
695 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <script>\n| \"\n\"\n| \" \"\n| <title>\n| \"x\"\n| \" \"\n| <body>\n" (Document tree: <!DOCTYPE HTML><script> |
696 |
wakaba |
1.1 |
#</script> <title>x</title> </head>) |
697 |
|
|
# Line 11 is missing: |
698 |
|
|
# - "| <body>\n" |
699 |
wakaba |
1.16 |
not ok 351 |
700 |
|
|
# Test 351 got: "0" (t/HTML-tree.t at line 133 fail #176) |
701 |
wakaba |
1.8 |
# Expected: "1" (Parse error: <!DOCTYPE HTML><html><body><html id=x>; ;duplicate html start tag) |
702 |
wakaba |
1.16 |
ok 352 |
703 |
|
|
not ok 353 |
704 |
|
|
# Test 353 got: "0" (t/HTML-tree.t at line 133 fail #177) |
705 |
wakaba |
1.8 |
# Expected: "2" (Parse error: <!DOCTYPE HTML>X</body><html id="x">; ;Unexpected html start tag in the after body phase., html needs to be the first start tag.) |
706 |
wakaba |
1.16 |
ok 354 |
707 |
|
|
ok 355 |
708 |
|
|
not ok 356 |
709 |
|
|
# Test 356 got: "| <!DOCTYPE HTML>\n| <html>\n| id=\"x\"\n| <head>\n" (t/HTML-tree.t at line 135 fail #178) |
710 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <html>\n| id=\"x\"\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><head><html id=x>) |
711 |
wakaba |
1.1 |
# Line 5 is missing: |
712 |
|
|
# - "| <body>\n" |
713 |
wakaba |
1.16 |
ok 357 |
714 |
|
|
ok 358 |
715 |
|
|
ok 359 |
716 |
|
|
ok 360 |
717 |
|
|
ok 361 |
718 |
|
|
ok 362 |
719 |
|
|
ok 363 |
720 |
|
|
not ok 364 |
721 |
|
|
# Test 364 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <p>\n| x=\"\"\n| y=\"\"\n| z=\"\"\n" (t/HTML-tree.t at line 135 fail #182) |
722 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <p>\n| y=\"\"\n| x=\"\"\n| z=\"\"\n" (Document tree: <!DOCTYPE HTML>X<p/x/y/z>) |
723 |
wakaba |
1.1 |
# Got 1 extra line at line 7: |
724 |
|
|
# + "| x=\"\"\n" |
725 |
|
|
# Line 9 is missing: |
726 |
|
|
# - "| x=\"\"\n" |
727 |
wakaba |
1.16 |
ok 365 |
728 |
|
|
not ok 366 |
729 |
|
|
# Test 366 got: "| <!DOCTYPE HTML>\n| <!-- x -->\n| <html>\n" (t/HTML-tree.t at line 135 fail #183) |
730 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE HTML>\n| <!-- x -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><!--x--) |
731 |
wakaba |
1.1 |
# Lines 4-4 are missing: |
732 |
|
|
# - "| <head>\n" |
733 |
|
|
# - "| <body>\n" |
734 |
wakaba |
1.16 |
ok 367 |
735 |
|
|
ok 368 |
736 |
|
|
# t/tree-construction/tests3.dat |
737 |
|
|
ok 369 |
738 |
|
|
not ok 370 |
739 |
|
|
# Test 370 got: "| <html>\n| <head>\n| <style>\n" (t/HTML-tree.t at line 135 fail #185) |
740 |
wakaba |
1.1 |
# Expected: "| <html>\n| <head>\n| <style>\n| <body>\n" (Document tree: <head></head><style></style>) |
741 |
|
|
# Line 4 is missing: |
742 |
|
|
# - "| <body>\n" |
743 |
wakaba |
1.16 |
ok 371 |
744 |
|
|
not ok 372 |
745 |
|
|
# Test 372 got: "| <html>\n| <head>\n| <script>\n" (t/HTML-tree.t at line 135 fail #186) |
746 |
wakaba |
1.1 |
# Expected: "| <html>\n| <head>\n| <script>\n| <body>\n" (Document tree: <head></head><script></script>) |
747 |
|
|
# Line 4 is missing: |
748 |
|
|
# - "| <body>\n" |
749 |
wakaba |
1.16 |
ok 373 |
750 |
|
|
not ok 374 |
751 |
|
|
# Test 374 got: "| <html>\n| <head>\n| <style>\n| <script>\n| <!-- -->\n| <!-- -->\n" (t/HTML-tree.t at line 135 fail #187) |
752 |
wakaba |
1.1 |
# Expected: "| <html>\n| <head>\n| <style>\n| <script>\n| <!-- -->\n| <!-- -->\n| <body>\n" (Document tree: <head></head><!-- --><style></style><!-- --><script></script>) |
753 |
|
|
# Line 7 is missing: |
754 |
|
|
# - "| <body>\n" |
755 |
wakaba |
1.16 |
ok 375 |
756 |
|
|
ok 376 |
757 |
|
|
ok 377 |
758 |
|
|
not ok 378 |
759 |
|
|
# Test 378 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n" (t/HTML-tree.t at line 135 fail #189) |
760 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre> |
761 |
|
|
#</pre></body></html>) |
762 |
|
|
# Line 1 is changed: |
763 |
|
|
# - "| <!DOCTYPE htML>\n" |
764 |
|
|
# + "| <!DOCTYPE HTML>\n" |
765 |
wakaba |
1.16 |
ok 379 |
766 |
|
|
not ok 380 |
767 |
|
|
# Test 380 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"\nfoo\"\n" (t/HTML-tree.t at line 135 fail #190) |
768 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"foo\"\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre> |
769 |
wakaba |
1.1 |
# |
770 |
|
|
#foo</pre></body></html>) |
771 |
wakaba |
1.8 |
# Line 1 is changed: |
772 |
|
|
# - "| <!DOCTYPE htML>\n" |
773 |
|
|
# + "| <!DOCTYPE HTML>\n" |
774 |
wakaba |
1.1 |
# Line 6 is changed: |
775 |
|
|
# - "| \"foo\"\n" |
776 |
|
|
# + "| \"\n" |
777 |
|
|
# Got 1 extra line at line 7: |
778 |
|
|
# + "foo\"\n" |
779 |
wakaba |
1.16 |
ok 381 |
780 |
|
|
not ok 382 |
781 |
|
|
# Test 382 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"\nfoo\n\"\n" (t/HTML-tree.t at line 135 fail #191) |
782 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"foo\n\"\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre> |
783 |
wakaba |
1.1 |
# |
784 |
|
|
#foo |
785 |
|
|
#</pre></body></html>) |
786 |
wakaba |
1.8 |
# Line 1 is changed: |
787 |
|
|
# - "| <!DOCTYPE htML>\n" |
788 |
|
|
# + "| <!DOCTYPE HTML>\n" |
789 |
wakaba |
1.1 |
# Line 6 is changed: |
790 |
|
|
# - "| \"foo\n" |
791 |
|
|
# + "| \"\n" |
792 |
|
|
# Got 1 extra line at line 7: |
793 |
|
|
# + "foo\n" |
794 |
wakaba |
1.16 |
ok 383 |
795 |
|
|
not ok 384 |
796 |
|
|
# Test 384 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <span>\n| \"\n\"\n" (t/HTML-tree.t at line 135 fail #192) |
797 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <span>\n| \"\n\"\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre>x</pre><span> |
798 |
|
|
#</span></body></html>) |
799 |
|
|
# Line 1 is changed: |
800 |
|
|
# - "| <!DOCTYPE htML>\n" |
801 |
|
|
# + "| <!DOCTYPE HTML>\n" |
802 |
wakaba |
1.16 |
ok 385 |
803 |
|
|
not ok 386 |
804 |
|
|
# Test 386 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\ny\"\n" (t/HTML-tree.t at line 135 fail #193) |
805 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\ny\"\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre>x |
806 |
|
|
#y</pre></body></html>) |
807 |
|
|
# Line 1 is changed: |
808 |
|
|
# - "| <!DOCTYPE htML>\n" |
809 |
|
|
# + "| <!DOCTYPE HTML>\n" |
810 |
wakaba |
1.16 |
not ok 387 |
811 |
|
|
# Test 387 got: "1" (t/HTML-tree.t at line 133 fail #194) |
812 |
wakaba |
1.8 |
# Expected: "0" (Parse error: <!DOCTYPE htML><html><head></head><body><pre>x<div> |
813 |
wakaba |
1.1 |
#y</pre></body></html>; 2:8:not closed:div;) |
814 |
wakaba |
1.16 |
not ok 388 |
815 |
|
|
# Test 388 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <div>\n| \"\ny\"\n" (t/HTML-tree.t at line 135 fail #194) |
816 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <div>\n| \"\n| y\"\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre>x<div> |
817 |
wakaba |
1.1 |
#y</pre></body></html>) |
818 |
wakaba |
1.8 |
# Line 1 is changed: |
819 |
|
|
# - "| <!DOCTYPE htML>\n" |
820 |
|
|
# + "| <!DOCTYPE HTML>\n" |
821 |
wakaba |
1.1 |
# Line 9 is changed: |
822 |
|
|
# - "| y\"\n" |
823 |
|
|
# + "y\"\n" |
824 |
wakaba |
1.16 |
not ok 389 |
825 |
|
|
# Test 389 got: "1" (t/HTML-tree.t at line 133 fail #195) |
826 |
wakaba |
1.8 |
# Expected: "0" (Parse error: <!DOCTYPE htML><HTML><META><HEAD></HEAD></HTML>; 1:34:in head:head;) |
827 |
wakaba |
1.16 |
not ok 390 |
828 |
|
|
# Test 390 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <meta>\n| <body>\n" (t/HTML-tree.t at line 135 fail #195) |
829 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <meta>\n| <body>\n" (Document tree: <!DOCTYPE htML><HTML><META><HEAD></HEAD></HTML>) |
830 |
|
|
# Line 1 is changed: |
831 |
|
|
# - "| <!DOCTYPE htML>\n" |
832 |
|
|
# + "| <!DOCTYPE HTML>\n" |
833 |
wakaba |
1.16 |
not ok 391 |
834 |
|
|
# Test 391 got: "1" (t/HTML-tree.t at line 133 fail #196) |
835 |
wakaba |
1.8 |
# Expected: "0" (Parse error: <!DOCTYPE htML><HTML><HEAD><head></HEAD></HTML>; 1:34:in head:head;) |
836 |
wakaba |
1.16 |
not ok 392 |
837 |
|
|
# Test 392 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n" (t/HTML-tree.t at line 135 fail #196) |
838 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE htML><HTML><HEAD><head></HEAD></HTML>) |
839 |
|
|
# Line 1 is changed: |
840 |
|
|
# - "| <!DOCTYPE htML>\n" |
841 |
|
|
# + "| <!DOCTYPE HTML>\n" |
842 |
wakaba |
1.16 |
not ok 393 |
843 |
|
|
# Test 393 got: "3" (t/HTML-tree.t at line 133 fail #197) |
844 |
wakaba |
1.11 |
# Expected: "0" (Parse error: <textarea>foo<span>bar</span><i>baz; 1:11:missing DOCTYPE, 1:25:unmatched end tag, 1:35:in CDATA:#end-of-file;) |
845 |
wakaba |
1.16 |
ok 394 |
846 |
|
|
not ok 395 |
847 |
|
|
# Test 395 got: "4" (t/HTML-tree.t at line 133 fail #198) |
848 |
wakaba |
1.1 |
# Expected: "0" (Parse error: <title>foo<span>bar</em><i>baz; 1:8:missing DOCTYPE, 1:22:unmatched end tag, 1:30:in RCDATA:#end-of-file, 1:30:not closed:head;) |
849 |
wakaba |
1.16 |
not ok 396 |
850 |
|
|
# Test 396 got: "| <html>\n| <head>\n| <title>\n| \"foo<span>bar</em><i>baz\"\n" (t/HTML-tree.t at line 135 fail #198) |
851 |
wakaba |
1.1 |
# Expected: "| <html>\n| <head>\n| <title>\n| \"foo<span>bar</em><i>baz\"\n| <body>\n" (Document tree: <title>foo<span>bar</em><i>baz) |
852 |
|
|
# Line 5 is missing: |
853 |
|
|
# - "| <body>\n" |
854 |
wakaba |
1.16 |
ok 397 |
855 |
|
|
not ok 398 |
856 |
|
|
# Test 398 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <textarea>\n" (t/HTML-tree.t at line 135 fail #199) |
857 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <textarea>\n" (Document tree: <!DOCTYPE htML><textarea> |
858 |
|
|
#</textarea>) |
859 |
|
|
# Line 1 is changed: |
860 |
|
|
# - "| <!DOCTYPE htML>\n" |
861 |
|
|
# + "| <!DOCTYPE HTML>\n" |
862 |
wakaba |
1.16 |
ok 399 |
863 |
|
|
not ok 400 |
864 |
|
|
# Test 400 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"\nfoo\"\n" (t/HTML-tree.t at line 135 fail #200) |
865 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"foo\"\n" (Document tree: <!DOCTYPE htML><textarea> |
866 |
|
|
# |
867 |
|
|
#foo</textarea>) |
868 |
|
|
# Line 1 is changed: |
869 |
|
|
# - "| <!DOCTYPE htML>\n" |
870 |
|
|
# + "| <!DOCTYPE HTML>\n" |
871 |
|
|
# Line 6 is changed: |
872 |
|
|
# - "| \"foo\"\n" |
873 |
|
|
# + "| \"\n" |
874 |
wakaba |
1.9 |
# Got 1 extra line at line 7: |
875 |
wakaba |
1.8 |
# + "foo\"\n" |
876 |
wakaba |
1.16 |
ok 401 |
877 |
|
|
not ok 402 |
878 |
|
|
# Test 402 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| <div>\n| <p>\n| <li>\n" (t/HTML-tree.t at line 135 fail #201) |
879 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| <div>\n| <p>\n| <li>\n" (Document tree: <!DOCTYPE htML><html><head></head><body><ul><li><div><p><li></ul></body></html>) |
880 |
|
|
# Line 1 is changed: |
881 |
|
|
# - "| <!DOCTYPE htML>\n" |
882 |
|
|
# + "| <!DOCTYPE HTML>\n" |
883 |
wakaba |
1.16 |
ok 403 |
884 |
|
|
not ok 404 |
885 |
|
|
# Test 404 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n" (t/HTML-tree.t at line 135 fail #202) |
886 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n" (Document tree: <!doctype html><nobr><nobr><nobr>) |
887 |
|
|
# Line 1 is changed: |
888 |
|
|
# - "| <!DOCTYPE html>\n" |
889 |
|
|
# + "| <!DOCTYPE HTML>\n" |
890 |
|
|
# Lines 6-7 are changed: |
891 |
|
|
# - "| <nobr>\n" |
892 |
|
|
# + "| <nobr>\n" |
893 |
|
|
# - "| <nobr>\n" |
894 |
|
|
# + "| <nobr>\n" |
895 |
wakaba |
1.16 |
ok 405 |
896 |
|
|
not ok 406 |
897 |
|
|
# Test 406 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n" (t/HTML-tree.t at line 135 fail #203) |
898 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n" (Document tree: <!doctype html><nobr><nobr></nobr><nobr>) |
899 |
|
|
# Line 1 is changed: |
900 |
|
|
# - "| <!DOCTYPE html>\n" |
901 |
|
|
# + "| <!DOCTYPE HTML>\n" |
902 |
|
|
# Lines 6-7 are changed: |
903 |
|
|
# - "| <nobr>\n" |
904 |
|
|
# + "| <nobr>\n" |
905 |
|
|
# - "| <nobr>\n" |
906 |
|
|
# + "| <nobr>\n" |
907 |
wakaba |
1.16 |
# t/tree-construction/tests4.dat |
908 |
wakaba |
1.11 |
ok 407 |
909 |
|
|
ok 408 |
910 |
wakaba |
1.15 |
ok 409 |
911 |
|
|
ok 410 |
912 |
wakaba |
1.16 |
not ok 411 |
913 |
|
|
# Test 411 got: "1" (t/HTML-tree.t at line 133 fail #206) |
914 |
|
|
# Expected: "0" (Parse error: textarea content with <em>pseudo</em> <foo>markup; 1:35:unmatched end tag;) |
915 |
wakaba |
1.15 |
ok 412 |
916 |
|
|
ok 413 |
917 |
|
|
ok 414 |
918 |
|
|
ok 415 |
919 |
|
|
ok 416 |
920 |
wakaba |
1.11 |
ok 417 |
921 |
|
|
ok 418 |
922 |
|
|
not ok 419 |
923 |
wakaba |
1.16 |
# Test 419 got: "1" (t/HTML-tree.t at line 133 fail #210) |
924 |
|
|
# Expected: "0" (Parse error: <title>setting head's innerHTML</title>; 1:8:in body:title;) |
925 |
|
|
ok 420 |
926 |
|
|
# t/tree-construction/tests5.dat |
927 |
|
|
not ok 421 |
928 |
|
|
# Test 421 got: "3" (t/HTML-tree.t at line 133 fail #211) |
929 |
|
|
# Expected: "2" (Parse error: <style> <!-- </style>x; 1:8:missing DOCTYPE, 1:22:in CDATA:#end-of-file, 1:22:not closed:head;No DOCTYPE, Unexpected end of file) |
930 |
|
|
not ok 422 |
931 |
|
|
# Test 422 got: "| <html>\n| <head>\n| <style>\n| \" <!-- </style>x\"\n" (t/HTML-tree.t at line 135 fail #211) |
932 |
|
|
# Expected: "| <html>\n| <head>\n| <style>\n| \" <!-- </style>x\"\n| <body>\n" (Document tree: <style> <!-- </style>x) |
933 |
|
|
# Line 5 is missing: |
934 |
|
|
# - "| <body>\n" |
935 |
|
|
ok 423 |
936 |
|
|
ok 424 |
937 |
|
|
ok 425 |
938 |
|
|
ok 426 |
939 |
|
|
ok 427 |
940 |
|
|
ok 428 |
941 |
|
|
ok 429 |
942 |
|
|
ok 430 |
943 |
|
|
ok 431 |
944 |
|
|
ok 432 |
945 |
|
|
ok 433 |
946 |
|
|
ok 434 |
947 |
|
|
ok 435 |
948 |
|
|
ok 436 |
949 |
|
|
ok 437 |
950 |
|
|
ok 438 |
951 |
|
|
ok 439 |
952 |
|
|
ok 440 |
953 |
|
|
# t/tree-construction/tests6.dat |
954 |
|
|
not ok 441 |
955 |
|
|
# Test 441 got: "2" (t/HTML-tree.t at line 133 fail #221) |
956 |
wakaba |
1.8 |
# Expected: "0" (Parse error: <!doctype html></head> <head>; 1:23:unmatched end tag:head, 1:29:not closed:head;) |
957 |
wakaba |
1.16 |
not ok 442 |
958 |
|
|
# Test 442 got: "| <!DOCTYPE HTML>\n| <html>\n| \" \"\n| <head>\n" (t/HTML-tree.t at line 135 fail #221) |
959 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| \" \"\n| <body>\n" (Document tree: <!doctype html></head> <head>) |
960 |
|
|
# Line 1 is changed: |
961 |
|
|
# - "| <!DOCTYPE html>\n" |
962 |
|
|
# + "| <!DOCTYPE HTML>\n" |
963 |
|
|
# Got 1 extra line at line 3: |
964 |
|
|
# + "| \" \"\n" |
965 |
|
|
# Lines 5-5 are missing: |
966 |
|
|
# - "| \" \"\n" |
967 |
|
|
# - "| <body>\n" |
968 |
wakaba |
1.16 |
not ok 443 |
969 |
|
|
# Test 443 got: "3" (t/HTML-tree.t at line 133 fail #222) |
970 |
wakaba |
1.8 |
# Expected: "0" (Parse error: <!doctype html></html> <head>; 1:29:after html:head, 1:29:after body:head, 1:29:in body:head;) |
971 |
wakaba |
1.16 |
not ok 444 |
972 |
|
|
# Test 444 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| \" \"\n" (t/HTML-tree.t at line 135 fail #222) |
973 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" \"\n" (Document tree: <!doctype html></html> <head>) |
974 |
|
|
# Line 1 is changed: |
975 |
|
|
# - "| <!DOCTYPE html>\n" |
976 |
|
|
# + "| <!DOCTYPE HTML>\n" |
977 |
wakaba |
1.16 |
not ok 445 |
978 |
|
|
# Test 445 got: "2" (t/HTML-tree.t at line 133 fail #223) |
979 |
wakaba |
1.8 |
# Expected: "0" (Parse error: <!doctype html></body><meta>; 1:23:unmatched end tag:body, 1:28:not closed:head;) |
980 |
wakaba |
1.16 |
not ok 446 |
981 |
|
|
# Test 446 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <meta>\n" (t/HTML-tree.t at line 135 fail #223) |
982 |
wakaba |
1.8 |
# Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <meta>\n" (Document tree: <!doctype html></body><meta>) |
983 |
|
|
# Line 1 is changed: |
984 |
|
|
# - "| <!DOCTYPE html>\n" |
985 |
|
|
# + "| <!DOCTYPE HTML>\n" |
986 |
|
|
# Line 4 is missing: |
987 |
|
|
# - "| <body>\n" |
988 |
wakaba |
1.16 |
# t/tree-test-1.dat |
989 |
wakaba |
1.1 |
ok 447 |
990 |
|
|
ok 448 |
991 |
|
|
ok 449 |
992 |
|
|
ok 450 |
993 |
|
|
ok 451 |
994 |
|
|
ok 452 |
995 |
|
|
ok 453 |
996 |
|
|
ok 454 |
997 |
|
|
ok 455 |
998 |
|
|
ok 456 |
999 |
|
|
ok 457 |
1000 |
|
|
ok 458 |
1001 |
wakaba |
1.3 |
ok 459 |
1002 |
|
|
ok 460 |
1003 |
|
|
ok 461 |
1004 |
|
|
ok 462 |
1005 |
|
|
ok 463 |
1006 |
|
|
ok 464 |
1007 |
|
|
ok 465 |
1008 |
|
|
ok 466 |
1009 |
|
|
ok 467 |
1010 |
|
|
ok 468 |
1011 |
|
|
ok 469 |
1012 |
|
|
ok 470 |
1013 |
wakaba |
1.6 |
ok 471 |
1014 |
|
|
ok 472 |
1015 |
wakaba |
1.8 |
ok 473 |
1016 |
|
|
ok 474 |
1017 |
|
|
ok 475 |
1018 |
|
|
ok 476 |
1019 |
|
|
ok 477 |
1020 |
|
|
ok 478 |
1021 |
|
|
ok 479 |
1022 |
|
|
ok 480 |
1023 |
|
|
ok 481 |
1024 |
|
|
ok 482 |
1025 |
|
|
ok 483 |
1026 |
|
|
ok 484 |
1027 |
|
|
ok 485 |
1028 |
|
|
ok 486 |
1029 |
|
|
ok 487 |
1030 |
|
|
ok 488 |
1031 |
|
|
ok 489 |
1032 |
|
|
ok 490 |
1033 |
|
|
ok 491 |
1034 |
|
|
ok 492 |
1035 |
|
|
ok 493 |
1036 |
|
|
ok 494 |
1037 |
|
|
ok 495 |
1038 |
|
|
ok 496 |
1039 |
|
|
ok 497 |
1040 |
|
|
ok 498 |
1041 |
|
|
ok 499 |
1042 |
|
|
ok 500 |
1043 |
|
|
ok 501 |
1044 |
|
|
ok 502 |
1045 |
|
|
ok 503 |
1046 |
|
|
ok 504 |
1047 |
|
|
ok 505 |
1048 |
|
|
ok 506 |
1049 |
|
|
ok 507 |
1050 |
|
|
ok 508 |
1051 |
wakaba |
1.11 |
ok 509 |
1052 |
|
|
ok 510 |
1053 |
wakaba |
1.12 |
ok 511 |
1054 |
|
|
ok 512 |
1055 |
|
|
ok 513 |
1056 |
|
|
ok 514 |
1057 |
|
|
ok 515 |
1058 |
|
|
ok 516 |
1059 |
|
|
ok 517 |
1060 |
|
|
ok 518 |
1061 |
|
|
ok 519 |
1062 |
|
|
ok 520 |
1063 |
|
|
ok 521 |
1064 |
|
|
ok 522 |
1065 |
|
|
ok 523 |
1066 |
|
|
ok 524 |
1067 |
|
|
ok 525 |
1068 |
|
|
ok 526 |
1069 |
|
|
ok 527 |
1070 |
|
|
ok 528 |
1071 |
|
|
ok 529 |
1072 |
|
|
ok 530 |
1073 |
wakaba |
1.14 |
ok 531 |
1074 |
|
|
ok 532 |
1075 |
wakaba |
1.16 |
ok 533 |
1076 |
|
|
ok 534 |
1077 |
|
|
ok 535 |
1078 |
|
|
ok 536 |
1079 |
|
|
ok 537 |
1080 |
|
|
ok 538 |
1081 |
|
|
ok 539 |
1082 |
|
|
ok 540 |
1083 |
|
|
ok 541 |
1084 |
|
|
ok 542 |
1085 |
|
|
ok 543 |
1086 |
|
|
ok 544 |
1087 |
|
|
ok 545 |
1088 |
|
|
ok 546 |
1089 |
|
|
ok 547 |
1090 |
|
|
ok 548 |
1091 |
|
|
ok 549 |
1092 |
|
|
ok 550 |
1093 |
|
|
ok 551 |
1094 |
|
|
ok 552 |
1095 |
|
|
ok 553 |
1096 |
|
|
ok 554 |