Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: lib/src/prism/tests/languages/css+textile/css_inclusion.test

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 h3{color: red}. Baz
2
3 h4[fr]{text-decoration:underline;}(#bar). Foobar
4
5 *{color:red}bold*
6 "(foo)[en]{color:blue;}Foo":bar
7
8 #[fr](#foo){background:pink} Foobar
9
10 !(foo)[en]{border:1px solid #ccc}foo.png!
11
12 {color: blue}.|{font-weight:bold}.Baz|
13 (foo#bar){font-style:italic}[fr].|{background:red;}(bar#baz)[en].Baz|
14
15 ----------------------------------------------------
16
17 [
18 ["phrase", [
19 ["block-tag", [
20 ["tag", "h3"],
21 ["modifier", [
22 ["css", [["punctuation", "{"], ["property", "col or"], ["punctuation", ":"], " red", ["punctuation", "}"]]]
23 ]],
24 ["punctuation", "."]
25 ]],
26 " Baz"
27 ]],
28 ["phrase", [
29 ["block-tag", [
30 ["tag", "h4"],
31 ["modifier", [
32 ["punctuation", "["], ["lang", "fr"], ["punctuat ion", "]"],
33 ["css", [["punctuation", "{"], ["property", "tex t-decoration"], ["punctuation", ":"], "underline", ["punctuation", ";"], ["punct uation", "}"]]],
34 ["punctuation", "("], ["class-id", "#bar"], ["pu nctuation", ")"]
35 ]],
36 ["punctuation", "."]
37 ]],
38 " Foobar"
39 ]],
40
41 ["phrase", [
42 ["inline", [
43 ["punctuation", "*"],
44 ["modifier", [
45 ["css", [["punctuation", "{"], ["property", "col or"], ["punctuation", ":"], "red", ["punctuation", "}"]]]
46 ]],
47 ["bold", ["bold"]],
48 ["punctuation", "*"]
49 ]],
50 ["link", [
51 ["punctuation", "\""],
52 ["modifier", [
53 ["punctuation", "("], ["class-id", "foo"], ["pun ctuation", ")"],
54 ["punctuation", "["], ["lang", "en"], ["punctuat ion", "]"],
55 ["css", [["punctuation", "{"], ["property", "col or"], ["punctuation", ":"], "blue", ["punctuation", ";"], ["punctuation", "}"]]]
56 ]],
57 ["text", "Foo"],
58 ["punctuation", "\""], ["punctuation", ":"],
59 ["url", "bar"]
60 ]]
61 ]],
62
63 ["phrase", [
64 ["list", [
65 ["punctuation", "#"],
66 ["modifier", [
67 ["punctuation", "["], ["lang", "fr"], ["punctuat ion", "]"],
68 ["punctuation", "("], ["class-id", "#foo"], ["pu nctuation", ")"],
69 ["css", [["punctuation", "{"], ["property", "bac kground"], ["punctuation", ":"], "pink", ["punctuation", "}"]]]
70 ]],
71 " Foobar"
72 ]]
73 ]],
74
75 ["phrase", [
76 ["image", [
77 ["punctuation", "!"],
78 ["modifier", [
79 ["punctuation", "("], ["class-id", "foo"], ["pun ctuation", ")"],
80 ["punctuation", "["], ["lang", "en"], ["punctuat ion", "]"],
81 ["css", [["punctuation", "{"], ["property", "bor der"], ["punctuation", ":"], "1px solid #ccc", ["punctuation", "}"]]]
82 ]],
83 ["source", "foo.png"],
84 ["punctuation", "!"]
85 ]]
86 ]],
87
88 ["phrase", [
89 ["table", [
90 ["modifier", [
91 ["css", [["punctuation", "{"], ["property", "col or"], ["punctuation", ":"], " blue", ["punctuation", "}"]]]
92 ]],
93 ["punctuation", "."], ["punctuation", "|"],
94 ["modifier", [
95 ["css", [["punctuation", "{"], ["property", "fon t-weight"], ["punctuation", ":"], "bold", ["punctuation", "}"]]]
96 ]],
97 ["punctuation", "."], "Baz", ["punctuation", "|"],
98
99 ["modifier", [
100 ["punctuation", "("], ["class-id", "foo#bar"], [ "punctuation", ")"],
101 ["css", [["punctuation", "{"], ["property", "fon t-style"], ["punctuation", ":"], "italic", ["punctuation", "}"]]],
102 ["punctuation", "["], ["lang", "fr"], ["punctuat ion", "]"]
103 ]],
104 ["punctuation", "."], ["punctuation", "|"],
105 ["modifier", [
106 ["css", [["punctuation", "{"], ["property", "bac kground"], ["punctuation", ":"], "red", ["punctuation", ";"], ["punctuation", "} "]]],
107 ["punctuation", "("], ["class-id", "bar#baz"], [ "punctuation", ")"],
108 ["punctuation", "["], ["lang", "en"], ["punctuat ion", "]"]
109 ]],
110 ["punctuation", "."], "Baz", ["punctuation", "|"]
111 ]]
112 ]]
113 ]
114
115 ----------------------------------------------------
116
117 Checks for CSS modifier.
OLDNEW
« no previous file with comments | « lib/src/prism/tests/languages/css+haml/css+haml_usage.test ('k') | lib/src/prism/tests/languages/css/atrule_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698