/[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.3 - (show annotations) (download)
Sat Aug 25 03:04:24 2007 UTC (18 years, 8 months ago) by wakaba
Branch: MAIN
Changes since 1.2: +12 -0 lines
++ whatpm/t/ChangeLog	25 Aug 2007 03:04:11 -0000
	* tokenizer-test-1.test: Two tests removed from |tokenizer/test2.test|
	are added.

	* tree-construction/, tokenizer/: Sync with latest html5lib.

2007-08-25  Wakaba  <wakaba@suika.fam.cx>

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24