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

Unified Diff: lib/src/prism/tests/languages/rest/link_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/link_feature.test
diff --git a/lib/src/prism/tests/languages/rest/link_feature.test b/lib/src/prism/tests/languages/rest/link_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..9f850408102d9d211af537280a47a9fe4d3a02a9
--- /dev/null
+++ b/lib/src/prism/tests/languages/rest/link_feature.test
@@ -0,0 +1,33 @@
+[1]_
+[2]_
+[#]_
+[#foobar]_
+[CIT2002]_
+
+foobar_
+foo__
+foo:bar_
+`foo:bar`_
+`foo bar baz`__
+_`inline internal target`
+
+----------------------------------------------------
+
+[
+ ["link", [["punctuation", "["], "1", ["punctuation", "]_"]]],
+ ["link", [["punctuation", "["], "2", ["punctuation", "]_"]]],
+ ["link", [["punctuation", "["], "#", ["punctuation", "]_"]]],
+ ["link", [["punctuation", "["], "#foobar", ["punctuation", "]_"]]],
+ ["link", [["punctuation", "["], "CIT2002", ["punctuation", "]_"]]],
+
+ ["link", ["foobar", ["punctuation", "_"]]],
+ ["link", ["foo", ["punctuation", "__"]]],
+ ["link", ["foo:bar", ["punctuation", "_"]]],
+ ["link", [["punctuation", "`"], "foo:bar", ["punctuation", "`_"]]],
+ ["link", [["punctuation", "`"], "foo bar baz", ["punctuation", "`__"]]],
+ ["link", [["punctuation", "_`"], "inline internal target", ["punctuation", "`"]]]
+]
+
+----------------------------------------------------
+
+Checks for links.

Powered by Google App Engine
This is Rietveld 408576698