1..472
# Running under perl version 5.008007 for linux
# Current time local: Sat Jun 23 17:13:47 2007
# Current time GMT: Sat Jun 23 08:13:47 2007
# Using Test.pm version 1.25
# t/tokenizer-test-2.dat
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
# t/tree-construction/tests1.dat
ok 29
ok 30
ok 31
ok 32
ok 33
ok 34
ok 35
not ok 36
# Test 36 got: "| \n" (t/HTML-tree.t at line 135 fail #18)
# Expected: "| \n|
\n| \n" (Document tree: )
# Lines 2-2 are missing:
# - "| \n"
# - "| \n"
# t/HTML-tree.t line 135 is: ok $result, $test->{document}, 'Document tree: ' . $test->{data};
not ok 37
# Test 37 got: "2" (t/HTML-tree.t at line 133 fail #19)
# Expected: "1" (Parse error: ; 1:6:missing DOCTYPE, 1:6:not closed:head;6: missing document type declaration)
# t/HTML-tree.t line 133 is: join (', ', @errors) . ';' . join (', ', @{$test->{errors}});
not ok 38
# Test 38 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #19)
# Expected: "| \n| \n| \n" (Document tree: )
# Line 3 is missing:
# - "| \n"
ok 39
ok 40
not ok 41
# Test 41 got: "2" (t/HTML-tree.t at line 133 fail #21)
# Expected: "1" (Parse error: ; 1:7:missing DOCTYPE, 1:12:not closed:head;6: missing document type declaration)
not ok 42
# Test 42 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #21)
# Expected: "| \n| \n| \n" (Document tree: )
# Line 3 is missing:
# - "| \n"
ok 43
not ok 44
# Test 44 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #22)
# Expected: "| \n| \n| \n" (Document tree: )
# Line 3 is missing:
# - "| \n"
ok 45
ok 46
ok 47
ok 48
ok 49
ok 50
ok 51
ok 52
ok 53
ok 54
ok 55
ok 56
ok 57
ok 58
ok 59
ok 60
ok 61
not ok 62
# Test 62 got: "| \n" (t/HTML-tree.t at line 135 fail #31)
# Expected: "| \n| \n| \n" (Document tree: )
# Lines 2-2 are missing:
# - "| \n"
# - "| \n"
ok 63
not ok 64
# Test 64 got: "| \n" (t/HTML-tree.t at line 135 fail #32)
# Expected: "| \n| \n| \n" (Document tree: )
# Lines 2-2 are missing:
# - "| \n"
# - "| \n"
ok 65
ok 66
ok 67
ok 68
ok 69
ok 70
not ok 71
# Test 71 got: "3" (t/HTML-tree.t at line 133 fail #36)
# Expected: "2" (Parse error:
Hello
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?))
not ok 72
# Test 72 got: "| \n| \n| \n|
\n| \"Hello\"\n|
\n| \"World\"\n" (t/HTML-tree.t at line 135 fail #36)
# Expected: "| \n| \n| \n|
\n| \"Hello\"\n|
\n| \"World\"\n" (Document tree:
Hello
World)
# Lines 6-7 are changed:
# - "|
\n"
# + "|
\n"
# - "| \"World\"\n"
# + "| \"World\"\n"
ok 73
ok 74
ok 75
ok 76
ok 77
ok 78
ok 79
ok 80
not ok 81
# Test 81 got: "2" (t/HTML-tree.t at line 133 fail #41)
# Expected: "4" (Parse error:
--; 1:13:dash in comment, 1:17:missing DOCTYPE;Incorrect comment token, Missing document type declaration, Incorrect comment token, Unexpected end of file)
not ok 82
# Test 82 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #41)
# Expected: "| \n| \n| \n| \n|
\n| \"--\"\n| \n" (Document tree:
--)
# Line 1 is changed:
# - "| \n"
# + "| \n"
# Lines 3-3 are missing:
# - "| \n"
# - "| \n"
# - "|
\n"
# - "| \"--\"\n"
# - "| \n"
ok 83
ok 84
ok 85
ok 86
ok 87
ok 88
ok 89
ok 90
not ok 91
# Test 91 got: "17" (t/HTML-tree.t at line 133 fail #46)
# Expected: "9" (Parse error:
hello
excite!me!
please!; 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?))
ok 92
not ok 93
# Test 93 got: "2" (t/HTML-tree.t at line 133 fail #47)
# Expected: "0" (Parse error:
hello
world
how
do
you; 1:62:not closed:li, 1:70:after body:/li;)
ok 94
ok 95
ok 96
ok 97
ok 98
ok 99
ok 100
ok 101
ok 102
ok 103
not ok 104
# Test 104 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #52)
# Expected: "| \n| \n| \n| \n" (Document tree: #)
# Lines 3-3 are missing:
# - "| \n"
# - "| \n"
ok 105
not ok 106
# Test 106 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #53)
# Expected: "| \n| \n| \n| \n" (Document tree: )
# Lines 3-3 are missing:
# - "| \n"
# - "| \n"
ok 107
not ok 108
# Test 108 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #54)
# Expected: "| \n| \n| \n| \n" (Document tree: #)
# Lines 3-3 are missing:
# - "| \n"
# - "| \n"
ok 109
not ok 110
# Test 110 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #55)
# Expected: "| \n| \n| \n| \n" (Document tree: \n"
# - "| \n"
ok 111
not ok 112
# Test 112 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #56)
# Expected: "| \n| \n| \n| \n" (Document tree: \n"
# - "| \n"
ok 113
not ok 114
# Test 114 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #57)
# Expected: "| \n| \n| \n| \n" (Document tree: )
# Lines 3-3 are missing:
# - "| \n"
# - "| \n"
ok 115
not ok 116
# Test 116 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #58)
# Expected: "| \n| \n| \n| \n" (Document tree: )
# Lines 3-3 are missing:
# - "| \n"
# - "| \n"
ok 117
not ok 118
# Test 118 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #59)
# Expected: "| \n| \n| \n| \n" (Document tree: COMMENT >)
# Lines 3-3 are missing:
# - "| \n"
# - "| \n"
ok 119
not ok 120
# Test 120 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #60)
# Expected: "| \n| \n| \n| \n" (Document tree: )
# Lines 3-3 are missing:
# - "| \n"
# - "| \n"
ok 121
not ok 122
# Test 122 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #61)
# Expected: "| \n| \n| \n| \n" (Document tree: )
# Lines 3-3 are missing:
# - "| \n"
# - "| \n"
ok 123
not ok 124
# Test 124 got: "| \n| \n" (t/HTML-tree.t at line 135 fail #62)
# Expected: "| \n| \n| \n| \n" (Document tree: COM--MENT >)
# Lines 3-3 are missing:
# - "| \n"
# - "| \n"
not ok 125
# Test 125 got: "2" (t/HTML-tree.t at line 133 fail #63)
# Expected: "1" (Parse error: ; 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)
not ok 196
# Test 196 got: "| \n| \n| \"\n" (t/HTML-tree.t at line 135 fail #98)
# Expected: "| \n| \n| \"\n| \n" (Document tree: )
# Line 5 is missing:
# - "| \n"
ok 197
not ok 198
# Test 198 got: "| \n| \n| \n| \n" (t/HTML-tree.t at line 135 fail #99)
# Expected: "| \n| \n| \n| \n| \n" (Document tree: )
# Line 5 is missing:
# - "| \n"
ok 199
ok 200
not ok 201
# Test 201 got: "9" (t/HTML-tree.t at line 133 fail #101)
# Expected: "7" (Parse error:
; 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)
not ok 202
# Test 202 got: "| \n|
\n| \n| \n| \n| \n| \"
\"\n|
\n|
\n" (t/HTML-tree.t at line 135 fail #101)
# Expected: "| \n|
\n| \n| \"
\"\n|
\n| \n| \n| \n|
\n" (Document tree:
)
# Got 3 extra lines at line 3:
# + "| \n"
# + "| \n"
# + "| \n"
# Lines 9-9 are missing:
# - "| \n"
# - "| \n"
# - "| \n"
ok 203
ok 204
ok 205
ok 206
not ok 207
# Test 207 got: "11" (t/HTML-tree.t at line 133 fail #104)
# Expected: "12" (Parse error:
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?))
ok 208
ok 209
ok 210
not ok 211
# Test 211 got: "4" (t/HTML-tree.t at line 133 fail #106)
# Expected: "3" (Parse error:
; 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)
not ok 212
# Test 212 got: "| \n|
\n| \n| \n|
\n" (t/HTML-tree.t at line 135 fail #106)
# Expected: "| \n|
\n| \n| \n|
\n" (Document tree:
)
# Got 1 extra line at line 3:
# + "| \n"
# Line 5 is missing:
# - "| \n"
ok 213
ok 214
ok 215
ok 216
not ok 217
# Test 217 got: "3" (t/HTML-tree.t at line 133 fail #109)
# Expected: "2" (Parse error:
; 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?))
not ok 218
# Test 218 got: "| \n| \n| \n|
\n|
\n" (t/HTML-tree.t at line 135 fail #109)
# Expected: "| \n| \n| \n|
\n|
\n" (Document tree:
)
# Line 5 is changed:
# - "|
\n"
# + "|
\n"
ok 219
ok 220
ok 221
ok 222
ok 223
ok 224
ok 225
ok 226
ok 227
ok 228
ok 229
ok 230
ok 231
ok 232
ok 233
ok 234
not ok 235
# Test 235 got: "4" (t/HTML-tree.t at line 133 fail #118)
# Expected: "2" (Parse error:
; 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))
ok 236
ok 237
ok 238
ok 239
ok 240
not ok 241
# Test 241 got: "5" (t/HTML-tree.t at line 133 fail #121)
# Expected: "4" (Parse error:
; 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)
not ok 242
# Test 242 got: "| \n| \n| \n|
\n|
\n| \n|
\n|
\n|
\n|
\n" (t/HTML-tree.t at line 135 fail #121)
# Expected: "| \n| \n| \n|
\n|
\n| \n|
\n|
\n|
\n|
\n" (Document tree:
)
# Line 10 is changed:
# - "|
\n"
# + "|
\n"
ok 243
ok 244
ok 245
ok 246
ok 247
ok 248
ok 249
not ok 250
# Test 250 got: "| \n| \n| \n" (t/HTML-tree.t at line 135 fail #125)
# Expected: "| \n| \n| \n| \n" (Document tree:
)
# Line 4 is missing:
# - "| \n"
not ok 251
# Test 251 got: "112" (t/HTML-tree.t at line 133 fail #126)
# Expected: "109" (Parse error:
; 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)
not ok 252
# Test 252 got: "| \n| \n| \n|
\n| \n|
\n" (t/HTML-tree.t at line 135 fail #126)
# Expected: "| \n| \n| \n| \n|
\n| \n|
\n" (Document tree:
)
# Line 4 is missing:
# - "| \n"
# t/tree-construction/tests2.dat
ok 253
ok 254
ok 255
ok 256
ok 257
ok 258
ok 259
ok 260
ok 261
ok 262
not ok 263
# Test 263 got: "5" (t/HTML-tree.t at line 133 fail #132)
# Expected: "2" (Parse error: