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

Unified Diff: lib/src/prism/tests/languages/rest/substitution-def_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/rest/substitution-def_feature.test
diff --git a/lib/src/prism/tests/languages/rest/substitution-def_feature.test b/lib/src/prism/tests/languages/rest/substitution-def_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..69436da78bc146ed9b6b86315f21c020cd79f60b
--- /dev/null
+++ b/lib/src/prism/tests/languages/rest/substitution-def_feature.test
@@ -0,0 +1,69 @@
+.. |biohazard| image:: biohazard.png
+.. |Red light| image:: red_light.png
+
+.. |Michael| user:: mjones
+.. |Jon| user:: jhl
+
+----------------------------------------------------
+
+[
+ ["punctuation", ".."],
+ ["substitution-def", [
+ ["substitution", [
+ ["punctuation", "|"],
+ "biohazard",
+ ["punctuation", "|"]
+ ]],
+ ["directive", [
+ "image",
+ ["punctuation", "::"]
+ ]]
+ ]],
+ " biohazard.png\r\n",
+
+ ["punctuation", ".."],
+ ["substitution-def", [
+ ["substitution", [
+ ["punctuation", "|"],
+ "Red light",
+ ["punctuation", "|"]
+ ]],
+ ["directive", [
+ "image",
+ ["punctuation", "::"]
+ ]]
+ ]],
+ " red_light.png\r\n\r\n",
+
+ ["punctuation", ".."],
+ ["substitution-def", [
+ ["substitution", [
+ ["punctuation", "|"],
+ "Michael",
+ ["punctuation", "|"]
+ ]],
+ ["directive", [
+ "user",
+ ["punctuation", "::"]
+ ]]
+ ]],
+ " mjones\r\n",
+
+ ["punctuation", ".."],
+ ["substitution-def", [
+ ["substitution", [
+ ["punctuation", "|"],
+ "Jon",
+ ["punctuation", "|"]
+ ]],
+ ["directive", [
+ "user",
+ ["punctuation", "::"]
+ ]]
+ ]],
+ " jhl"
+]
+
+----------------------------------------------------
+
+Checks for substitution definitions.

Powered by Google App Engine
This is Rietveld 408576698