~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/textile/block-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
h1. Header 1
 
2
 
 
3
h2>. Header 2
 
4
 
 
5
bq. A block quotation
 
6
 
 
7
p<. Foo
 
8
 
 
9
p=. Bar
 
10
 
 
11
p<>. Baz
 
12
 
 
13
p(. Foobar
 
14
baz
 
15
 
 
16
p))). Foo
 
17
 
 
18
h1(foo). Foo
 
19
 
 
20
h2[en]. Bar
 
21
 
 
22
h3{color: red}. Baz
 
23
 
 
24
h4[fr]{text-decoration:underline;}(#bar). Foobar
 
25
 
 
26
----------------------------------------------------
 
27
 
 
28
[
 
29
        ["phrase", [
 
30
                ["block-tag", [["tag", "h1"], ["punctuation", "."]]],
 
31
                " Header 1"
 
32
        ]],
 
33
        ["phrase", [
 
34
                ["block-tag", [
 
35
                        ["tag", "h2"],
 
36
                        ["modifier", [["punctuation", ">"]]],
 
37
                        ["punctuation", "."]
 
38
                ]],
 
39
                " Header 2"
 
40
        ]],
 
41
        ["phrase", [
 
42
                ["block-tag", [["tag", "bq"], ["punctuation", "."]]],
 
43
                " A block quotation"
 
44
        ]],
 
45
        ["phrase", [
 
46
                ["block-tag", [
 
47
                        ["tag", "p"],
 
48
                        ["modifier", [["punctuation", "<"]]],
 
49
                        ["punctuation", "."]
 
50
                ]],
 
51
                " Foo"
 
52
        ]],
 
53
        ["phrase", [
 
54
                ["block-tag", [
 
55
                        ["tag", "p"],
 
56
                        ["modifier", [["punctuation", "="]]],
 
57
                        ["punctuation", "."]
 
58
                ]],
 
59
                " Bar"
 
60
        ]],
 
61
        ["phrase", [
 
62
                ["block-tag", [
 
63
                        ["tag", "p"],
 
64
                        ["modifier", [["punctuation", "<"], ["punctuation", ">"]]],
 
65
                        ["punctuation", "."]
 
66
                ]],
 
67
                " Baz"
 
68
        ]],
 
69
        ["phrase", [
 
70
                ["block-tag", [
 
71
                        ["tag", "p"],
 
72
                        ["modifier", [["punctuation", "("]]],
 
73
                        ["punctuation", "."]
 
74
                ]],
 
75
                " Foobar\r\nbaz"
 
76
        ]],
 
77
        ["phrase", [
 
78
                ["block-tag", [
 
79
                        ["tag", "p"],
 
80
                        ["modifier", [["punctuation", ")"], ["punctuation", ")"], ["punctuation", ")"]]],
 
81
                        ["punctuation", "."]
 
82
                ]],
 
83
                " Foo"
 
84
        ]],
 
85
        ["phrase", [
 
86
                ["block-tag", [
 
87
                        ["tag", "h1"],
 
88
                        ["modifier", [
 
89
                                ["punctuation", "("], ["class-id", "foo"], ["punctuation", ")"]
 
90
                        ]],
 
91
                        ["punctuation", "."]
 
92
                ]],
 
93
                " Foo"
 
94
        ]],
 
95
        ["phrase", [
 
96
                ["block-tag", [
 
97
                        ["tag", "h2"],
 
98
                        ["modifier", [
 
99
                                ["punctuation", "["], ["lang", "en"], ["punctuation", "]"]
 
100
                        ]],
 
101
                        ["punctuation", "."]
 
102
                ]],
 
103
                " Bar"
 
104
        ]],
 
105
        ["phrase", [
 
106
                ["block-tag", [
 
107
                        ["tag", "h3"],
 
108
                        ["modifier", [
 
109
                                ["css", ["{color: red}"]]
 
110
                        ]],
 
111
                        ["punctuation", "."]
 
112
                ]],
 
113
                " Baz"
 
114
        ]],
 
115
        ["phrase", [
 
116
                ["block-tag", [
 
117
                        ["tag", "h4"],
 
118
                        ["modifier", [
 
119
                                ["punctuation", "["], ["lang", "fr"], ["punctuation", "]"],
 
120
                                ["css", ["{text-decoration:underline;}"]],
 
121
                                ["punctuation", "("], ["class-id", "#bar"], ["punctuation", ")"]
 
122
                        ]],
 
123
                        ["punctuation", "."]
 
124
                ]],
 
125
                " Foobar"
 
126
        ]]
 
127
]
 
128
 
 
129
----------------------------------------------------
 
130
 
 
131
Checks for tags at the beginning of a block and alignment modifiers.
 
 
b'\\ No newline at end of file'