~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/jade/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
div
 
2
        span&attributes({'data-foo': 'bar'})
 
3
 
 
4
input(data-bar="foo", type='checkbox', checked)
 
5
 
 
6
a(style={color: 'red', background: 'green'})
 
7
 
 
8
div(unescaped!="<code>")
 
9
 
 
10
a.button
 
11
.content
 
12
 
 
13
a#main-link
 
14
#content
 
15
 
 
16
a: span
 
17
 
 
18
----------------------------------------------------
 
19
 
 
20
[
 
21
        ["tag", ["div"]],
 
22
        ["tag", [
 
23
                "span",
 
24
                ["attributes", [
 
25
                        ["operator", "&"],
 
26
                        ["function", "attributes"],
 
27
                        ["punctuation", "("],
 
28
                        ["punctuation", "{"],
 
29
                        ["string", "'data-foo'"],
 
30
                        ["punctuation", ":"],
 
31
                        ["string", "'bar'"],
 
32
                        ["punctuation", "}"],
 
33
                        ["punctuation", ")"]
 
34
                ]]
 
35
        ]],
 
36
 
 
37
        ["tag", [
 
38
                "input",
 
39
                ["attributes", [
 
40
                        ["punctuation", "("],
 
41
                        ["attr-name", "data-bar"],
 
42
                        ["punctuation", "="],
 
43
                        ["attr-value", [["string", "\"foo\""]]],
 
44
                        ["punctuation", ","],
 
45
                        ["attr-name", "type"],
 
46
                        ["punctuation", "="],
 
47
                        ["attr-value", [["string", "'checkbox'"]]],
 
48
                        ["punctuation", ","],
 
49
                        ["attr-name", "checked"],
 
50
                        ["punctuation", ")"]
 
51
                ]]
 
52
        ]],
 
53
 
 
54
        ["tag", [
 
55
                "a",
 
56
                ["attributes", [
 
57
                        ["punctuation", "("],
 
58
                        ["attr-name", "style"],
 
59
                        ["punctuation", "="],
 
60
                        ["attr-value", [
 
61
                                ["punctuation", "{"],
 
62
                                "color",
 
63
                                ["punctuation", ":"],
 
64
                                ["string", "'red'"],
 
65
                                ["punctuation", ","],
 
66
                                " background",
 
67
                                ["punctuation", ":"],
 
68
                                ["string", "'green'"],
 
69
                                ["punctuation", "}"]
 
70
                        ]],
 
71
                        ["punctuation", ")"]
 
72
                ]]
 
73
        ]],
 
74
 
 
75
        ["tag", [
 
76
                "div",
 
77
                ["attributes", [
 
78
                        ["punctuation", "("],
 
79
                        ["attr-name", "unescaped"],
 
80
                        ["punctuation", "!="],
 
81
                        ["attr-value", [["string", "\"<code>\""]]],
 
82
                        ["punctuation", ")"]
 
83
                ]]
 
84
        ]],
 
85
 
 
86
        ["tag", ["a.button"]],
 
87
        ["tag", [".content"]],
 
88
        ["tag", ["a#main-link"]],
 
89
        ["tag", ["#content"]],
 
90
 
 
91
        ["tag", ["a", ["punctuation", ":"]]],
 
92
        ["tag", ["span"]]
 
93
]
 
94
 
 
95
----------------------------------------------------
 
96
 
 
97
Checks for tags and attributes.
 
 
b'\\ No newline at end of file'