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

Contents of /markup/html/whatpm/t/tokenizer/contentModelFlags.test

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sat Oct 4 17:16:02 2008 UTC (16 years, 9 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +18 -15 lines
++ whatpm/t/ChangeLog	4 Oct 2008 17:15:55 -0000
2008-10-05  Wakaba  <wakaba@suika.fam.cx>

	* HTML-tree.t: New test files added.

	* Makefile: New test files added.

++ whatpm/Whatpm/ChangeLog	4 Oct 2008 17:15:20 -0000
2008-10-05  Wakaba  <wakaba@suika.fam.cx>

	* HTML.pm.src: An AAA bug fixed.

1 wakaba 1.1 {"tests": [
2    
3     {"description":"PLAINTEXT content model flag",
4     "contentModelFlags":["PLAINTEXT"],
5 wakaba 1.4 "lastStartTag":"plaintext",
6 wakaba 1.1 "input":"<head>&body;",
7     "output":[["Character", "<head>&body;"]]},
8    
9     {"description":"End tag closing RCDATA or CDATA",
10     "contentModelFlags":["RCDATA", "CDATA"],
11 wakaba 1.4 "lastStartTag":"pre",
12     "input":"foo</pre>",
13     "output":[["Character", "foo"], ["EndTag", "pre"]]},
14 wakaba 1.1
15 wakaba 1.3 {"description":"End tag closing RCDATA or CDATA (case-insensitivity)",
16     "contentModelFlags":["RCDATA", "CDATA"],
17 wakaba 1.4 "lastStartTag":"pre",
18     "input":"foo</pRe>",
19     "output":[["Character", "foo"], ["EndTag", "pre"]]},
20 wakaba 1.3
21 wakaba 1.1 {"description":"End tag with incorrect name in RCDATA or CDATA",
22     "contentModelFlags":["RCDATA", "CDATA"],
23 wakaba 1.4 "lastStartTag":"pre",
24     "input":"</foo>bar</pre>",
25     "output":[["Character", "</foo>bar"], ["EndTag", "pre"]]},
26 wakaba 1.3
27     {"description":"End tag with incorrect name in RCDATA or CDATA (starting like correct name)",
28     "contentModelFlags":["RCDATA", "CDATA"],
29 wakaba 1.4 "lastStartTag":"pre",
30     "input":"</foo>bar</preaar>",
31     "output":[["Character", "</foo>bar</preaar>"]]},
32 wakaba 1.1
33     {"description":"End tag closing RCDATA or CDATA, switching back to PCDATA",
34     "contentModelFlags":["RCDATA", "CDATA"],
35 wakaba 1.4 "lastStartTag":"pre",
36     "input":"foo</pre></baz>",
37     "output":[["Character", "foo"], ["EndTag", "pre"], ["EndTag", "baz"]]},
38 wakaba 1.1
39     {"description":"CDATA w/ something looking like an entity",
40     "contentModelFlags":["CDATA"],
41 wakaba 1.4 "lastStartTag":"pre",
42 wakaba 1.1 "input":"&foo;",
43     "output":[["Character", "&foo;"]]},
44    
45     {"description":"RCDATA w/ an entity",
46     "contentModelFlags":["RCDATA"],
47 wakaba 1.4 "lastStartTag":"textarea",
48 wakaba 1.1 "input":"&lt;",
49     "output":[["Character", "<"]]}
50    
51     ]}

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24