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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24