~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/javascript/template-string_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
`foo bar`
 
2
`foo
 
3
bar`
 
4
`40+2=${40+2}`
 
5
`${foo()}`
 
6
 
 
7
----------------------------------------------------
 
8
 
 
9
[
 
10
        ["template-string", [
 
11
                ["string", "`foo bar`"]
 
12
        ]],
 
13
        ["template-string", [
 
14
                ["string", "`foo\r\nbar`"]
 
15
        ]],
 
16
        ["template-string", [
 
17
                ["string", "`40+2="],
 
18
                ["interpolation", [
 
19
                        ["interpolation-punctuation", "${"],
 
20
                        ["number", "40"],
 
21
                        ["operator", "+"],
 
22
                        ["number", "2"],
 
23
                        ["interpolation-punctuation", "}"]
 
24
                ]],
 
25
                ["string", "`"]
 
26
        ]],
 
27
        ["template-string", [
 
28
        ["string", "`"],
 
29
        ["interpolation", [
 
30
            ["interpolation-punctuation", "${"],
 
31
            ["function", "foo"],
 
32
            ["punctuation", "("],
 
33
            ["punctuation", ")"],
 
34
            ["interpolation-punctuation", "}"]
 
35
        ]],
 
36
        ["string", "`"]
 
37
    ]]
 
38
]
 
39
 
 
40
----------------------------------------------------
 
41
 
 
42
Checks for single-line and multi-line template strings.
 
 
b'\\ No newline at end of file'