/[suikacvs]/markup/html/whatpm/t/tokenizer-test-1.test
Suika

Contents of /markup/html/whatpm/t/tokenizer-test-1.test

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri May 4 09:16:04 2007 UTC (18 years, 2 months ago) by wakaba
Branch: MAIN
Changes since 1.2: +88 -0 lines
++ whatpm/t/ChangeLog	4 May 2007 09:15:43 -0000
2007-05-03  Wakaba  <wakaba@suika.fam.cx>

	* tokenizer-test-1.test: Incorrect DOCTYPE testa
	are added.

	* tree-test-1.dat: |innerHTML| tests are added.

2007-05-03  Wakaba  <wakaba@suika.fam.cx>

	* LICENSE: New document.

++ whatpm/Whatpm/ChangeLog	4 May 2007 09:13:06 -0000
2007-05-04  Wakaba  <wakaba@suika.fam.cx>

	* NanoDOM.pm (manakai_parent_element,
	document_element, manakai_local_name,
	manakai_element_type_match): New method.

2007-05-03  Wakaba  <wakaba@suika.fam.cx>

	* HTML.pm.src: Replace decimal and hexadecimal numeric
	entities in C1 range using Windows-1252 mapping.  Bare LF
	did not count as new line for error reporting.

1 wakaba 1.1 {"tests": [
2    
3 wakaba 1.3 {"description":"<!DOCTYPE",
4     "input":"<!DOCTYPE",
5     "output":["ParseError","ParseError",["DOCTYPE", "", true]]},
6    
7     {"description":"<!DOCTYPE ",
8     "input":"<!DOCTYPE ",
9     "output":["ParseError",["DOCTYPE", "", true]]},
10    
11     {"description":"<!DOCTYPE >",
12     "input":"<!DOCTYPE >",
13     "output":["ParseError",["DOCTYPE", "", true]]},
14    
15     {"description":"<!DOCTYPE h",
16     "input":"<!DOCTYPE h",
17     "output":["ParseError",["DOCTYPE", "H", true]]},
18    
19     {"description":"<!DOCTYPE H",
20     "input":"<!DOCTYPE H",
21     "output":["ParseError",["DOCTYPE", "H", true]]},
22    
23     {"description":"<!DOCTYPE h>",
24     "input":"<!DOCTYPE h>",
25     "output":[["DOCTYPE", "H", true]]},
26    
27     {"description":"<!DOCTYPE H>",
28     "input":"<!DOCTYPE H>",
29     "output":[["DOCTYPE", "H", true]]},
30    
31     {"description":"<!DOCTYPE ht",
32     "input":"<!DOCTYPE ht",
33     "output":["ParseError",["DOCTYPE", "HT", true]]},
34    
35     {"description":"<!DOCTYPE Ht",
36     "input":"<!DOCTYPE Ht",
37     "output":["ParseError",["DOCTYPE", "HT", true]]},
38    
39     {"description":"<!DOCTYPE hT",
40     "input":"<!DOCTYPE hT",
41     "output":["ParseError",["DOCTYPE", "HT", true]]},
42    
43     {"description":"<!DOCTYPE ht>",
44     "input":"<!DOCTYPE ht>",
45     "output":[["DOCTYPE", "HT", true]]},
46    
47     {"description":"<!DOCTYPE Ht>",
48     "input":"<!DOCTYPE Ht>",
49     "output":[["DOCTYPE", "HT", true]]},
50    
51     {"description":"<!DOCTYPE hT>",
52     "input":"<!DOCTYPE hT>",
53     "output":[["DOCTYPE", "HT", true]]},
54    
55     {"description":"<!DOCTYPE hT>",
56     "input":"<!DOCTYPE hT>",
57     "output":[["DOCTYPE", "HT", true]]},
58    
59     {"description":"<!DOCTYPE htm",
60     "input":"<!DOCTYPE htm",
61     "output":["ParseError",["DOCTYPE", "HTM", true]]},
62    
63     {"description":"<!DOCTYPE Htm",
64     "input":"<!DOCTYPE Htm",
65     "output":["ParseError",["DOCTYPE", "HTM", true]]},
66    
67     {"description":"<!DOCTYPE hTM",
68     "input":"<!DOCTYPE hTM",
69     "output":["ParseError",["DOCTYPE", "HTM", true]]},
70    
71     {"description":"<!DOCTYPE htm>",
72     "input":"<!DOCTYPE htm>",
73     "output":[["DOCTYPE", "HTM", true]]},
74    
75     {"description":"<!DOCTYPE Htm>",
76     "input":"<!DOCTYPE Htm>",
77     "output":[["DOCTYPE", "HTM", true]]},
78    
79     {"description":"<!DOCTYPE hTM>",
80     "input":"<!DOCTYPE hTM>",
81     "output":[["DOCTYPE", "HTM", true]]},
82    
83     {"description":"<!DOCTYPE html5",
84     "input":"<!DOCTYPE html5",
85     "output":["ParseError",["DOCTYPE", "HTML5", true]]},
86    
87     {"description":"<!DOCTYPE html5>",
88     "input":"<!DOCTYPE html5>",
89     "output":[["DOCTYPE", "HTML5", true]]},
90    
91 wakaba 1.1 {"description":"non-PCDATA content model flag, start tag-like string",
92     "contentModelFlags":["PLAINTEXT","RCDATA","CDATA"],
93     "input":"<div>",
94 wakaba 1.2 "output":[["Character", "<div>"]]},
95    
96     {"description":"end tag followed by character data",
97     "contentModelFlags":["RCDATA","CDATA"],
98     "lastStartTag":"xxx",
99     "input":"AB</xxx>CD",
100     "output":[["Character", "AB"],["EndTag", "xxx"],["Character", "CD"]]}
101 wakaba 1.1
102     ]}

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24