~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/markup!+javascript/javascript_inclusion.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
<script type="text/javascript">foo()</script>
 
2
<script>
 
3
"foo bar"
 
4
</script>
 
5
 
 
6
----------------------------------------------------
 
7
 
 
8
[
 
9
 
 
10
        ["tag", [
 
11
                ["tag", [
 
12
                        ["punctuation", "<"],
 
13
                        "script"
 
14
                ]],
 
15
                ["attr-name", [
 
16
                        "type"
 
17
                ]],
 
18
                ["attr-value", [
 
19
                        ["punctuation", "="],
 
20
                        ["punctuation", "\""],
 
21
                        "text/javascript",
 
22
                        ["punctuation", "\""]
 
23
                ]],
 
24
                ["punctuation", ">"]
 
25
        ]],
 
26
        ["script", [
 
27
                ["function", "foo"],
 
28
                ["punctuation", "("],
 
29
                ["punctuation", ")"]
 
30
        ]],
 
31
        ["tag", [
 
32
                ["tag", [
 
33
                        ["punctuation", "</"],
 
34
                        "script"
 
35
                ]],
 
36
                ["punctuation", ">"]
 
37
        ]],
 
38
 
 
39
        ["tag", [
 
40
                ["tag", [
 
41
                        ["punctuation", "<"],
 
42
                        "script"
 
43
                ]],
 
44
                ["punctuation", ">"]
 
45
        ]],
 
46
        ["script", [
 
47
                ["string", "\"foo bar\""]
 
48
        ]],
 
49
        ["tag", [
 
50
                ["tag", [
 
51
                        ["punctuation", "</"],
 
52
                        "script"
 
53
                ]],
 
54
                ["punctuation", ">"]
 
55
        ]]
 
56
]
 
57
 
 
58
----------------------------------------------------
 
59
 
 
60
Checks for Javascript usage inside Markup, using <script> tags.
 
 
b'\\ No newline at end of file'