What's new? | Help | Directory | Sign in
Google
  
  
  
  
    
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{"tests": [

{"description":"PLAINTEXT content model flag",
"contentModelFlags":["PLAINTEXT"],
"lastStartTag":"plaintext",
"input":"<head>&body;",
"output":[["Character", "<head>&body;"]]},

{"description":"End tag closing RCDATA or CDATA",
"contentModelFlags":["RCDATA", "CDATA"],
"lastStartTag":"pre",
"input":"foo</pre>",
"output":[["Character", "foo"], ["EndTag", "pre"]]},

{"description":"End tag closing RCDATA or CDATA (case-insensitivity)",
"contentModelFlags":["RCDATA", "CDATA"],
"lastStartTag":"pre",
"input":"foo</pRe>",
"output":[["Character", "foo"], ["EndTag", "pre"]]},

{"description":"End tag with incorrect name in RCDATA or CDATA",
"contentModelFlags":["RCDATA", "CDATA"],
"lastStartTag":"pre",
"input":"</foo>bar</pre>",
"output":[["Character", "</foo>bar"], ["EndTag", "pre"]]},

{"description":"End tag with incorrect name in RCDATA or CDATA (starting like correct name)",
"contentModelFlags":["RCDATA", "CDATA"],
"lastStartTag":"pre",
"input":"</foo>bar</preaar>",
"output":[["Character", "</foo>bar</preaar>"]]},

{"description":"End tag closing RCDATA or CDATA, switching back to PCDATA",
"contentModelFlags":["RCDATA", "CDATA"],
"lastStartTag":"pre",
"input":"foo</pre></baz>",
"output":[["Character", "foo"], ["EndTag", "pre"], ["EndTag", "baz"]]},

{"description":"CDATA w/ something looking like an entity",
"contentModelFlags":["CDATA"],
"lastStartTag":"pre",
"input":"&foo;",
"output":[["Character", "&foo;"]]},

{"description":"RCDATA w/ an entity",
"contentModelFlags":["RCDATA"],
"lastStartTag":"textarea",
"input":"&lt;",
"output":[["Character", "<"]]}

]}
Show details Hide details

Change log

r1178 by hsivonen on Jun 13, 2008   Diff
give proper context for all tests
Go to: 
Project members, sign in to write a code review

Older revisions

r1177 by hsivonen on Jun 13, 2008   Diff
give proper context for the PLAINTEXT
test
r1174 by hsivonen on Jun 13, 2008   Diff
Use a real element name for content
model flag tests
r998 by t.broyer on Sep 09, 2007   Diff
svn:eol-style=native
All revisions of this file

File info

Size: 1594 bytes, 51 lines

File properties

svn:eol-style
native