~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/markup+css+wiki/table-tag_feature.test

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{|
 
2
| Foo
 
3
| Bar
 
4
|-
 
5
| Baz
 
6
| Foobar
 
7
|}
 
8
 
 
9
{|
 
10
|Foo
 
11
bar
 
12
 
 
13
baz
 
14
|
 
15
''Foobar''
 
16
|}
 
17
 
 
18
{|
 
19
| Foo || Bar || Baz
 
20
|-
 
21
| Baz || Bar || Foo
 
22
|}
 
23
 
 
24
{|
 
25
! style="text-align:left;"| Foo
 
26
! Bar
 
27
! Baz
 
28
|-
 
29
| foo
 
30
| bar
 
31
| baz
 
32
|}
 
33
 
 
34
{|
 
35
! style="color:red;"| Foo !! style="color:blue;"| Bar !! Baz
 
36
|-
 
37
| foo || style="font-weight:bold;"| bar || baz
 
38
|}
 
39
 
 
40
----------------------------------------------------
 
41
 
 
42
[
 
43
        ["punctuation", "{|"],
 
44
        ["punctuation", "|"], " Foo\r\n",
 
45
        ["punctuation", "|"], " Bar\r\n",
 
46
        ["punctuation", "|-"],
 
47
        ["punctuation", "|"], " Baz\r\n",
 
48
        ["punctuation", "|"], " Foobar\r\n",
 
49
        ["punctuation", "|}"],
 
50
 
 
51
        ["punctuation", "{|"],
 
52
        ["punctuation", "|"], "Foo\r\nbar\r\n\r\nbaz\r\n",
 
53
        ["punctuation", "|"],
 
54
        ["emphasis", [["punctuation", "''"], ["italic", "Foobar"], ["punctuation", "''"]]],
 
55
        ["punctuation", "|}"],
 
56
 
 
57
        ["punctuation", "{|"],
 
58
        ["punctuation", "|"], " Foo ",
 
59
        ["punctuation", "||"], " Bar ",
 
60
        ["punctuation", "||"], " Baz\r\n",
 
61
        ["punctuation", "|-"],
 
62
        ["punctuation", "|"], " Baz ",
 
63
        ["punctuation", "||"], " Bar ",
 
64
        ["punctuation", "||"], " Foo\r\n",
 
65
        ["punctuation", "|}"],
 
66
 
 
67
        ["punctuation", "{|"],
 
68
        ["punctuation", "!"],
 
69
        ["table-tag", [
 
70
                ["style-attr", [
 
71
                        ["attr-name", [["attr-name", ["style"]]]],
 
72
                        ["punctuation", "=\""],
 
73
                        ["attr-value", [
 
74
                                ["property", "text-align"],
 
75
                                ["punctuation", ":"],
 
76
                                "left",
 
77
                                ["punctuation", ";"]
 
78
                        ]],
 
79
                        ["punctuation", "\""]
 
80
                ]],
 
81
                ["table-bar", "|"]
 
82
        ]], " Foo\r\n",
 
83
        ["punctuation", "!"], " Bar\r\n",
 
84
        ["punctuation", "!"], " Baz\r\n",
 
85
        ["punctuation", "|-"],
 
86
        ["punctuation", "|"], " foo\r\n",
 
87
        ["punctuation", "|"], " bar\r\n",
 
88
        ["punctuation", "|"], " baz\r\n",
 
89
        ["punctuation", "|}"],
 
90
 
 
91
        ["punctuation", "{|"],
 
92
        ["punctuation", "!"],
 
93
        ["table-tag", [
 
94
                ["style-attr", [
 
95
                        ["attr-name", [["attr-name", ["style"]]]],
 
96
                        ["punctuation", "=\""],
 
97
                        ["attr-value", [
 
98
                                ["property", "color"],
 
99
                                ["punctuation", ":"],
 
100
                                "red",
 
101
                                ["punctuation", ";"]
 
102
                        ]],
 
103
                        ["punctuation", "\""]
 
104
                ]],
 
105
                ["table-bar", "|"]
 
106
        ]], " Foo ",
 
107
        ["punctuation", "!!"],
 
108
        ["table-tag", [
 
109
                ["style-attr", [
 
110
                        ["attr-name", [["attr-name", ["style"]]]],
 
111
                        ["punctuation", "=\""],
 
112
                        ["attr-value", [
 
113
                                ["property", "color"],
 
114
                                ["punctuation", ":"],
 
115
                                "blue",
 
116
                                ["punctuation", ";"]
 
117
                        ]],
 
118
                        ["punctuation", "\""]
 
119
                ]],
 
120
                ["table-bar", "|"]
 
121
        ]], " Bar ",
 
122
        ["punctuation", "!!"], " Baz\r\n",
 
123
        ["punctuation", "|-"],
 
124
        ["punctuation", "|"], " foo ",
 
125
        ["punctuation", "||"],
 
126
        ["table-tag", [
 
127
                ["style-attr", [
 
128
                        ["attr-name", [["attr-name", ["style"]]]],
 
129
                        ["punctuation", "=\""],
 
130
                        ["attr-value", [
 
131
                                ["property", "font-weight"],
 
132
                                ["punctuation", ":"],
 
133
                                "bold",
 
134
                                ["punctuation", ";"]
 
135
                        ]],
 
136
                        ["punctuation", "\""]
 
137
                ]],
 
138
                ["table-bar", "|"]
 
139
        ]], " bar ",
 
140
        ["punctuation", "||"], " baz\r\n",
 
141
        ["punctuation", "|}"]
 
142
]
 
143
 
 
144
----------------------------------------------------
 
145
 
 
146
Checks for tables and cell attributes.
 
147
Note: Markup is loaded before CSS so that inline styles are added into grammar.
 
 
b'\\ No newline at end of file'