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

Unified 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, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: lib/src/prism/tests/languages/textile/inline_feature.test
diff --git a/lib/src/prism/tests/languages/textile/inline_feature.test b/lib/src/prism/tests/languages/textile/inline_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..3debc04a157c8a8f3945da8f9eb0ea6d69e27e2e
--- /dev/null
+++ b/lib/src/prism/tests/languages/textile/inline_feature.test
@@ -0,0 +1,166 @@
+*bold*
+**bold**
+_italic_
+__italic__
+??cite??
+@code@
++inserted+
+-deleted-
+%span%
+^superscript^
+~subscript~
+
+*{color:red}bold*
+__(foo#bar)[fr]italique__
+%{text-decoration:underline}span *[en]bold*%
+
+*_a_ __b__ ??c?? @d@ +e+ -f- %g% ^h^ ~i~*
+**_a_ __b__ ??c?? @d@ +e+ -f- %g% ^h^ ~i~**
+_*a* **b** ??c?? @d@ +e+ -f- %g% ^h^ ~i~_
+__*a* **b** ??c?? @d@ +e+ -f- %g% ^h^ ~i~__
++*a* **b** _c_ __d__ ??e?? @f@ -g- %h% ^i^ ~j~+
+-*a* **b** _c_ __d__ ??e?? @f@ +g+ %h% ^i^ ~j~-
+%*a* **b** _c_ __d__ ??e?? @f@ +g+ -h- ^i^ ~j~%
+
+----------------------------------------------------
+
+[
+ ["phrase", [
+ ["inline", [["punctuation", "*"], ["bold", ["bold"]], ["punctuation", "*"]]],
+ ["inline", [["punctuation", "**"], ["bold", ["bold"]], ["punctuation", "**"]]],
+ ["inline", [["punctuation", "_"], ["italic", ["italic"]], ["punctuation", "_"]]],
+ ["inline", [["punctuation", "__"], ["italic", ["italic"]], ["punctuation", "__"]]],
+ ["inline", [["punctuation", "??"], ["cite", "cite"], ["punctuation", "??"]]],
+ ["inline", [["punctuation", "@"], ["code", "code"], ["punctuation", "@"]]],
+ ["inline", [["punctuation", "+"], ["inserted", ["inserted"]], ["punctuation", "+"]]],
+ ["inline", [["punctuation", "-"], ["deleted", ["deleted"]], ["punctuation", "-"]]],
+ ["inline", [["punctuation", "%"], ["span", ["span"]], ["punctuation", "%"]]],
+ ["inline", [["punctuation", "^"], "superscript", ["punctuation", "^"]]],
+ ["inline", [["punctuation", "~"], "subscript", ["punctuation", "~"]]]
+ ]],
+
+ ["phrase", [
+ ["inline", [
+ ["punctuation", "*"],
+ ["modifier", [
+ ["css", ["{color:red}"]]
+ ]],
+ ["bold", ["bold"]],
+ ["punctuation", "*"]
+ ]],
+ ["inline", [
+ ["punctuation", "__"],
+ ["modifier", [
+ ["punctuation", "("], ["class-id", "foo#bar"], ["punctuation", ")"],
+ ["punctuation", "["], ["lang", "fr"], ["punctuation", "]"]
+ ]],
+ ["italic", ["italique"]],
+ ["punctuation", "__"]
+ ]],
+ ["inline", [
+ ["punctuation", "%"],
+ ["modifier", [
+ ["css", ["{text-decoration:underline}"]]
+ ]],
+ ["span", [
+ "span ",
+ ["inline", [
+ ["punctuation", "*"],
+ ["modifier", [
+ ["punctuation", "["], ["lang", "en"], ["punctuation", "]"]
+ ]],
+ ["bold", "bold"],
+ ["punctuation", "*"]
+ ]]
+ ]],
+ ["punctuation", "%"]
+ ]]
+ ]],
+
+ ["phrase", [
+ ["inline", [["punctuation", "*"], ["bold", [
+ ["inline", [["punctuation", "_"], ["italic", "a"], ["punctuation", "_"]]],
+ ["inline", [["punctuation", "__"], ["italic", "b"], ["punctuation", "__"]]],
+ ["inline", [["punctuation", "??"], ["cite", "c"], ["punctuation", "??"]]],
+ ["inline", [["punctuation", "@"], ["code", "d"], ["punctuation", "@"]]],
+ ["inline", [["punctuation", "+"], ["inserted", "e"], ["punctuation", "+"]]],
+ ["inline", [["punctuation", "-"], ["deleted", "f"], ["punctuation", "-"]]],
+ ["inline", [["punctuation", "%"], ["span", "g"], ["punctuation", "%"]]],
+ ["inline", [["punctuation", "^"], "h", ["punctuation", "^"]]],
+ ["inline", [["punctuation", "~"], "i", ["punctuation", "~"]]]
+ ]], ["punctuation", "*"]]],
+ ["inline", [["punctuation", "**"], ["bold", [
+ ["inline", [["punctuation", "_"], ["italic", "a"], ["punctuation", "_"]]],
+ ["inline", [["punctuation", "__"], ["italic", "b"], ["punctuation", "__"]]],
+ ["inline", [["punctuation", "??"], ["cite", "c"], ["punctuation", "??"]]],
+ ["inline", [["punctuation", "@"], ["code", "d"], ["punctuation", "@"]]],
+ ["inline", [["punctuation", "+"], ["inserted", "e"], ["punctuation", "+"]]],
+ ["inline", [["punctuation", "-"], ["deleted", "f"], ["punctuation", "-"]]],
+ ["inline", [["punctuation", "%"], ["span", "g"], ["punctuation", "%"]]],
+ ["inline", [["punctuation", "^"], "h", ["punctuation", "^"]]],
+ ["inline", [["punctuation", "~"], "i", ["punctuation", "~"]]]
+ ]], ["punctuation", "**"]]],
+ ["inline", [["punctuation", "_"], ["italic", [
+ ["inline", [["punctuation", "*"], ["bold", "a"], ["punctuation", "*"]]],
+ ["inline", [["punctuation", "**"], ["bold", "b"], ["punctuation", "**"]]],
+ ["inline", [["punctuation", "??"], ["cite", "c"], ["punctuation", "??"]]],
+ ["inline", [["punctuation", "@"], ["code", "d"], ["punctuation", "@"]]],
+ ["inline", [["punctuation", "+"], ["inserted", "e"], ["punctuation", "+"]]],
+ ["inline", [["punctuation", "-"], ["deleted", "f"], ["punctuation", "-"]]],
+ ["inline", [["punctuation", "%"], ["span", "g"], ["punctuation", "%"]]],
+ ["inline", [["punctuation", "^"], "h", ["punctuation", "^"]]],
+ ["inline", [["punctuation", "~"], "i", ["punctuation", "~"]]]
+ ]], ["punctuation", "_"]]],
+ ["inline", [["punctuation", "__"], ["italic", [
+ ["inline", [["punctuation", "*"], ["bold", "a"], ["punctuation", "*"]]],
+ ["inline", [["punctuation", "**"], ["bold", "b"], ["punctuation", "**"]]],
+ ["inline", [["punctuation", "??"], ["cite", "c"], ["punctuation", "??"]]],
+ ["inline", [["punctuation", "@"], ["code", "d"], ["punctuation", "@"]]],
+ ["inline", [["punctuation", "+"], ["inserted", "e"], ["punctuation", "+"]]],
+ ["inline", [["punctuation", "-"], ["deleted", "f"], ["punctuation", "-"]]],
+ ["inline", [["punctuation", "%"], ["span", "g"], ["punctuation", "%"]]],
+ ["inline", [["punctuation", "^"], "h", ["punctuation", "^"]]],
+ ["inline", [["punctuation", "~"], "i", ["punctuation", "~"]]]
+ ]], ["punctuation", "__"]]],
+ ["inline", [["punctuation", "+"], ["inserted", [
+ ["inline", [["punctuation", "*"], ["bold", "a"], ["punctuation", "*"]]],
+ ["inline", [["punctuation", "**"], ["bold", "b"], ["punctuation", "**"]]],
+ ["inline", [["punctuation", "_"], ["italic", "c"], ["punctuation", "_"]]],
+ ["inline", [["punctuation", "__"], ["italic", "d"], ["punctuation", "__"]]],
+ ["inline", [["punctuation", "??"], ["cite", "e"], ["punctuation", "??"]]],
+ ["inline", [["punctuation", "@"], ["code", "f"], ["punctuation", "@"]]],
+ ["inline", [["punctuation", "-"], ["deleted", "g"], ["punctuation", "-"]]],
+ ["inline", [["punctuation", "%"], ["span", "h"], ["punctuation", "%"]]],
+ ["inline", [["punctuation", "^"], "i", ["punctuation", "^"]]],
+ ["inline", [["punctuation", "~"], "j", ["punctuation", "~"]]]
+ ]], ["punctuation", "+"]]],
+ ["inline", [["punctuation", "-"], ["deleted", [
+ ["inline", [["punctuation", "*"], ["bold", "a"], ["punctuation", "*"]]],
+ ["inline", [["punctuation", "**"], ["bold", "b"], ["punctuation", "**"]]],
+ ["inline", [["punctuation", "_"], ["italic", "c"], ["punctuation", "_"]]],
+ ["inline", [["punctuation", "__"], ["italic", "d"], ["punctuation", "__"]]],
+ ["inline", [["punctuation", "??"], ["cite", "e"], ["punctuation", "??"]]],
+ ["inline", [["punctuation", "@"], ["code", "f"], ["punctuation", "@"]]],
+ ["inline", [["punctuation", "+"], ["inserted", "g"], ["punctuation", "+"]]],
+ ["inline", [["punctuation", "%"], ["span", "h"], ["punctuation", "%"]]],
+ ["inline", [["punctuation", "^"], "i", ["punctuation", "^"]]],
+ ["inline", [["punctuation", "~"], "j", ["punctuation", "~"]]]
+ ]], ["punctuation", "-"]]],
+ ["inline", [["punctuation", "%"], ["span", [
+ ["inline", [["punctuation", "*"], ["bold", "a"], ["punctuation", "*"]]],
+ ["inline", [["punctuation", "**"], ["bold", "b"], ["punctuation", "**"]]],
+ ["inline", [["punctuation", "_"], ["italic", "c"], ["punctuation", "_"]]],
+ ["inline", [["punctuation", "__"], ["italic", "d"], ["punctuation", "__"]]],
+ ["inline", [["punctuation", "??"], ["cite", "e"], ["punctuation", "??"]]],
+ ["inline", [["punctuation", "@"], ["code", "f"], ["punctuation", "@"]]],
+ ["inline", [["punctuation", "+"], ["inserted", "g"], ["punctuation", "+"]]],
+ ["inline", [["punctuation", "-"], ["deleted", "h"], ["punctuation", "-"]]],
+ ["inline", [["punctuation", "^"], "i", ["punctuation", "^"]]],
+ ["inline", [["punctuation", "~"], "j", ["punctuation", "~"]]]
+ ]], ["punctuation", "%"]]]
+ ]]
+]
+
+----------------------------------------------------
+
+Checks for inline styles and nesting.
« 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