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

Contents of /markup/html/whatpm/t/css-token-1.test

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Sep 8 05:57:05 2007 UTC (17 years, 10 months ago) by wakaba
Branch: MAIN
++ whatpm/t/ChangeLog	8 Sep 2007 05:56:49 -0000
2007-09-08  Wakaba  <wakaba@suika.fam.cx>

	* css-token-1.test, CSS-Tokenizer.t: New files.

1 wakaba 1.1 {"tests": [
2     {"description": "empty",
3     "input": "",
4     "output": []},
5    
6     {"description": "length=1 IDENT (lowercase)",
7     "input": "a",
8     "output": [["IDENT", "a"]]},
9    
10     {"description": "length=1 IDENT (uppercase)",
11     "input": "A",
12     "output": [["IDENT", "A"]]},
13    
14     {"description": "length=2 IDENT (uppercase)",
15     "input": "AB",
16     "output": [["IDENT", "AB"]]},
17    
18     {"description": "length=2 IDENT (lowercase)",
19     "input": "ab",
20     "output": [["IDENT", "ab"]]},
21    
22     {"description": "IDENT started by escape 1",
23     "input": "\\41",
24     "output": [["IDENT", "A"]]},
25    
26     {"description": "IDENT started by escape 2",
27     "input": "\\041",
28     "output": [["IDENT", "A"]]},
29    
30     {"description": "IDENT started by escape 3",
31     "input": "\\0041",
32     "output": [["IDENT", "A"]]},
33    
34     {"description": "IDENT started by escape 4",
35     "input": "\\00041",
36     "output": [["IDENT", "A"]]},
37    
38     {"description": "IDENT started by escape 5",
39     "input": "\\000041",
40     "output": [["IDENT", "A"]]},
41    
42     {"description": "IDENT started by escape 6",
43     "input": "\\0000041",
44     "output": [["IDENT", "\u00041"]]},
45    
46     {"description": "IDENT started by escape 7",
47     "input": "\\00000041",
48     "output": [["IDENT", "\u000041"]]},
49    
50     {"description": "IDENT started by escape followed by a space 1",
51     "input": "\\41 ",
52     "output": [["IDENT", "A"]]},
53    
54     {"description": "IDENT started by escape followed by a space 2",
55     "input": "\\41 a",
56     "output": [["IDENT", "Aa"]]},
57    
58     {"description": "IDENT started by escape followed by a space 3",
59     "input": "\\41\u0009a",
60     "output": [["IDENT", "Aa"]]},
61    
62     {"description": "IDENT started by escape followed by a space 4",
63     "input": "\\000041 ",
64     "output": [["IDENT", "A"]]},
65    
66     {"description": "IDENT started by escape followed by a space 5",
67     "input": "\\000041\u000D\u000A",
68     "output": [["IDENT", "A"]]}
69     ]}

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24