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

Unified Diff: lib/src/prism/tests/languages/haml/multiline-code_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/haml/multiline-code_feature.test
diff --git a/lib/src/prism/tests/languages/haml/multiline-code_feature.test b/lib/src/prism/tests/languages/haml/multiline-code_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..06cb2b439da5b3a6da6dd1f2932217cfc624e9ea
--- /dev/null
+++ b/lib/src/prism/tests/languages/haml/multiline-code_feature.test
@@ -0,0 +1,58 @@
+ ~ 1,
+ 1,
+ 1
+~ 2 |
+ 2 |
+ 2 |
+
+- 3,
+ 3,
+ 3
+ - 4 |
+ 4 |
+ 4 |
+
+ = 5,
+ 5,
+ 5
+= 6 |
+ 6 |
+ 6 |
+
+&= 7,
+ 7,
+ 7
+ &= 8 |
+ 8 |
+ 8 |
+
+!= 9,
+ 9,
+ 9
+!= 10 |
+ 10 |
+ 10 |
+
+----------------------------------------------------
+
+[
+ ["punctuation", "~"], ["multiline-code", [["number", "1"], ["punctuation", ","], ["number", "1"], ["punctuation", ","], ["number", "1"]]],
+ ["punctuation", "~"], ["multiline-code", [["number", "2"], ["operator", "|"], ["number", "2"], ["operator", "|"], ["number", "2"], ["operator", "|"]]],
+
+ ["punctuation", "-"], ["multiline-code", [["number", "3"], ["punctuation", ","], ["number", "3"], ["punctuation", ","], ["number", "3"]]],
+ ["punctuation", "-"], ["multiline-code", [["number", "4"], ["operator", "|"], ["number", "4"], ["operator", "|"], ["number", "4"], ["operator", "|"]]],
+
+ ["punctuation", "="], ["multiline-code", [["number", "5"], ["punctuation", ","], ["number", "5"], ["punctuation", ","], ["number", "5"]]],
+ ["punctuation", "="], ["multiline-code", [["number", "6"], ["operator", "|"], ["number", "6"], ["operator", "|"], ["number", "6"], ["operator", "|"]]],
+
+ ["punctuation", "&="], ["multiline-code", [["number", "7"], ["punctuation", ","], ["number", "7"], ["punctuation", ","], ["number", "7"]]],
+ ["punctuation", "&="], ["multiline-code", [["number", "8"], ["operator", "|"], ["number", "8"], ["operator", "|"], ["number", "8"], ["operator", "|"]]],
+
+ ["punctuation", "!="], ["multiline-code", [["number", "9"], ["punctuation", ","], ["number", "9"], ["punctuation", ","], ["number", "9"]]],
+ ["punctuation", "!="], ["multiline-code", [["number", "10"], ["operator", "|"], ["number", "10"], ["operator", "|"], ["number", "10"], ["operator", "|"]]]
+]
+
+----------------------------------------------------
+
+Checks for inline code, with all possible prefixes, some not indented, some
+indented with two spaces, some indented with one tab.

Powered by Google App Engine
This is Rietveld 408576698