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

Side by Side Diff: lib/src/prism/tests/languages/textile/inline_feature.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 *bold*
2 **bold**
3 _italic_
4 __italic__
5 ??cite??
6 @code@
7 +inserted+
8 -deleted-
9 %span%
10 ^superscript^
11 ~subscript~
12
13 *{color:red}bold*
14 __(foo#bar)[fr]italique__
15 %{text-decoration:underline}span *[en]bold*%
16
17 *_a_ __b__ ??c?? @d@ +e+ -f- %g% ^h^ ~i~*
18 **_a_ __b__ ??c?? @d@ +e+ -f- %g% ^h^ ~i~**
19 _*a* **b** ??c?? @d@ +e+ -f- %g% ^h^ ~i~_
20 __*a* **b** ??c?? @d@ +e+ -f- %g% ^h^ ~i~__
21 +*a* **b** _c_ __d__ ??e?? @f@ -g- %h% ^i^ ~j~+
22 -*a* **b** _c_ __d__ ??e?? @f@ +g+ %h% ^i^ ~j~-
23 %*a* **b** _c_ __d__ ??e?? @f@ +g+ -h- ^i^ ~j~%
24
25 ----------------------------------------------------
26
27 [
28 ["phrase", [
29 ["inline", [["punctuation", "*"], ["bold", ["bold"]], ["punctuat ion", "*"]]],
30 ["inline", [["punctuation", "**"], ["bold", ["bold"]], ["punctua tion", "**"]]],
31 ["inline", [["punctuation", "_"], ["italic", ["italic"]], ["punc tuation", "_"]]],
32 ["inline", [["punctuation", "__"], ["italic", ["italic"]], ["pun ctuation", "__"]]],
33 ["inline", [["punctuation", "??"], ["cite", "cite"], ["punctuati on", "??"]]],
34 ["inline", [["punctuation", "@"], ["code", "code"], ["punctuatio n", "@"]]],
35 ["inline", [["punctuation", "+"], ["inserted", ["inserted"]], [" punctuation", "+"]]],
36 ["inline", [["punctuation", "-"], ["deleted", ["deleted"]], ["pu nctuation", "-"]]],
37 ["inline", [["punctuation", "%"], ["span", ["span"]], ["punctuat ion", "%"]]],
38 ["inline", [["punctuation", "^"], "superscript", ["punctuation", "^"]]],
39 ["inline", [["punctuation", "~"], "subscript", ["punctuation", " ~"]]]
40 ]],
41
42 ["phrase", [
43 ["inline", [
44 ["punctuation", "*"],
45 ["modifier", [
46 ["css", ["{color:red}"]]
47 ]],
48 ["bold", ["bold"]],
49 ["punctuation", "*"]
50 ]],
51 ["inline", [
52 ["punctuation", "__"],
53 ["modifier", [
54 ["punctuation", "("], ["class-id", "foo#bar"], [ "punctuation", ")"],
55 ["punctuation", "["], ["lang", "fr"], ["punctuat ion", "]"]
56 ]],
57 ["italic", ["italique"]],
58 ["punctuation", "__"]
59 ]],
60 ["inline", [
61 ["punctuation", "%"],
62 ["modifier", [
63 ["css", ["{text-decoration:underline}"]]
64 ]],
65 ["span", [
66 "span ",
67 ["inline", [
68 ["punctuation", "*"],
69 ["modifier", [
70 ["punctuation", "["], ["lang", " en"], ["punctuation", "]"]
71 ]],
72 ["bold", "bold"],
73 ["punctuation", "*"]
74 ]]
75 ]],
76 ["punctuation", "%"]
77 ]]
78 ]],
79
80 ["phrase", [
81 ["inline", [["punctuation", "*"], ["bold", [
82 ["inline", [["punctuation", "_"], ["italic", "a"], ["pun ctuation", "_"]]],
83 ["inline", [["punctuation", "__"], ["italic", "b"], ["pu nctuation", "__"]]],
84 ["inline", [["punctuation", "??"], ["cite", "c"], ["punc tuation", "??"]]],
85 ["inline", [["punctuation", "@"], ["code", "d"], ["punct uation", "@"]]],
86 ["inline", [["punctuation", "+"], ["inserted", "e"], ["p unctuation", "+"]]],
87 ["inline", [["punctuation", "-"], ["deleted", "f"], ["pu nctuation", "-"]]],
88 ["inline", [["punctuation", "%"], ["span", "g"], ["punct uation", "%"]]],
89 ["inline", [["punctuation", "^"], "h", ["punctuation", " ^"]]],
90 ["inline", [["punctuation", "~"], "i", ["punctuation", " ~"]]]
91 ]], ["punctuation", "*"]]],
92 ["inline", [["punctuation", "**"], ["bold", [
93 ["inline", [["punctuation", "_"], ["italic", "a"], ["pun ctuation", "_"]]],
94 ["inline", [["punctuation", "__"], ["italic", "b"], ["pu nctuation", "__"]]],
95 ["inline", [["punctuation", "??"], ["cite", "c"], ["punc tuation", "??"]]],
96 ["inline", [["punctuation", "@"], ["code", "d"], ["punct uation", "@"]]],
97 ["inline", [["punctuation", "+"], ["inserted", "e"], ["p unctuation", "+"]]],
98 ["inline", [["punctuation", "-"], ["deleted", "f"], ["pu nctuation", "-"]]],
99 ["inline", [["punctuation", "%"], ["span", "g"], ["punct uation", "%"]]],
100 ["inline", [["punctuation", "^"], "h", ["punctuation", " ^"]]],
101 ["inline", [["punctuation", "~"], "i", ["punctuation", " ~"]]]
102 ]], ["punctuation", "**"]]],
103 ["inline", [["punctuation", "_"], ["italic", [
104 ["inline", [["punctuation", "*"], ["bold", "a"], ["punct uation", "*"]]],
105 ["inline", [["punctuation", "**"], ["bold", "b"], ["punc tuation", "**"]]],
106 ["inline", [["punctuation", "??"], ["cite", "c"], ["punc tuation", "??"]]],
107 ["inline", [["punctuation", "@"], ["code", "d"], ["punct uation", "@"]]],
108 ["inline", [["punctuation", "+"], ["inserted", "e"], ["p unctuation", "+"]]],
109 ["inline", [["punctuation", "-"], ["deleted", "f"], ["pu nctuation", "-"]]],
110 ["inline", [["punctuation", "%"], ["span", "g"], ["punct uation", "%"]]],
111 ["inline", [["punctuation", "^"], "h", ["punctuation", " ^"]]],
112 ["inline", [["punctuation", "~"], "i", ["punctuation", " ~"]]]
113 ]], ["punctuation", "_"]]],
114 ["inline", [["punctuation", "__"], ["italic", [
115 ["inline", [["punctuation", "*"], ["bold", "a"], ["punct uation", "*"]]],
116 ["inline", [["punctuation", "**"], ["bold", "b"], ["punc tuation", "**"]]],
117 ["inline", [["punctuation", "??"], ["cite", "c"], ["punc tuation", "??"]]],
118 ["inline", [["punctuation", "@"], ["code", "d"], ["punct uation", "@"]]],
119 ["inline", [["punctuation", "+"], ["inserted", "e"], ["p unctuation", "+"]]],
120 ["inline", [["punctuation", "-"], ["deleted", "f"], ["pu nctuation", "-"]]],
121 ["inline", [["punctuation", "%"], ["span", "g"], ["punct uation", "%"]]],
122 ["inline", [["punctuation", "^"], "h", ["punctuation", " ^"]]],
123 ["inline", [["punctuation", "~"], "i", ["punctuation", " ~"]]]
124 ]], ["punctuation", "__"]]],
125 ["inline", [["punctuation", "+"], ["inserted", [
126 ["inline", [["punctuation", "*"], ["bold", "a"], ["punct uation", "*"]]],
127 ["inline", [["punctuation", "**"], ["bold", "b"], ["punc tuation", "**"]]],
128 ["inline", [["punctuation", "_"], ["italic", "c"], ["pun ctuation", "_"]]],
129 ["inline", [["punctuation", "__"], ["italic", "d"], ["pu nctuation", "__"]]],
130 ["inline", [["punctuation", "??"], ["cite", "e"], ["punc tuation", "??"]]],
131 ["inline", [["punctuation", "@"], ["code", "f"], ["punct uation", "@"]]],
132 ["inline", [["punctuation", "-"], ["deleted", "g"], ["pu nctuation", "-"]]],
133 ["inline", [["punctuation", "%"], ["span", "h"], ["punct uation", "%"]]],
134 ["inline", [["punctuation", "^"], "i", ["punctuation", " ^"]]],
135 ["inline", [["punctuation", "~"], "j", ["punctuation", " ~"]]]
136 ]], ["punctuation", "+"]]],
137 ["inline", [["punctuation", "-"], ["deleted", [
138 ["inline", [["punctuation", "*"], ["bold", "a"], ["punct uation", "*"]]],
139 ["inline", [["punctuation", "**"], ["bold", "b"], ["punc tuation", "**"]]],
140 ["inline", [["punctuation", "_"], ["italic", "c"], ["pun ctuation", "_"]]],
141 ["inline", [["punctuation", "__"], ["italic", "d"], ["pu nctuation", "__"]]],
142 ["inline", [["punctuation", "??"], ["cite", "e"], ["punc tuation", "??"]]],
143 ["inline", [["punctuation", "@"], ["code", "f"], ["punct uation", "@"]]],
144 ["inline", [["punctuation", "+"], ["inserted", "g"], ["p unctuation", "+"]]],
145 ["inline", [["punctuation", "%"], ["span", "h"], ["punct uation", "%"]]],
146 ["inline", [["punctuation", "^"], "i", ["punctuation", " ^"]]],
147 ["inline", [["punctuation", "~"], "j", ["punctuation", " ~"]]]
148 ]], ["punctuation", "-"]]],
149 ["inline", [["punctuation", "%"], ["span", [
150 ["inline", [["punctuation", "*"], ["bold", "a"], ["punct uation", "*"]]],
151 ["inline", [["punctuation", "**"], ["bold", "b"], ["punc tuation", "**"]]],
152 ["inline", [["punctuation", "_"], ["italic", "c"], ["pun ctuation", "_"]]],
153 ["inline", [["punctuation", "__"], ["italic", "d"], ["pu nctuation", "__"]]],
154 ["inline", [["punctuation", "??"], ["cite", "e"], ["punc tuation", "??"]]],
155 ["inline", [["punctuation", "@"], ["code", "f"], ["punct uation", "@"]]],
156 ["inline", [["punctuation", "+"], ["inserted", "g"], ["p unctuation", "+"]]],
157 ["inline", [["punctuation", "-"], ["deleted", "h"], ["pu nctuation", "-"]]],
158 ["inline", [["punctuation", "^"], "i", ["punctuation", " ^"]]],
159 ["inline", [["punctuation", "~"], "j", ["punctuation", " ~"]]]
160 ]], ["punctuation", "%"]]]
161 ]]
162 ]
163
164 ----------------------------------------------------
165
166 Checks for inline styles and nesting.
OLDNEW
« no previous file with comments | « lib/src/prism/tests/languages/textile/image_feature.test ('k') | lib/src/prism/tests/languages/textile/link-ref_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698