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

Unified Diff: lib/src/prism/tests/languages/rest/table_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/table_feature.test
diff --git a/lib/src/prism/tests/languages/rest/table_feature.test b/lib/src/prism/tests/languages/rest/table_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..c8085a225bb639a54bb59023d4c1aec7029ffacd
--- /dev/null
+++ b/lib/src/prism/tests/languages/rest/table_feature.test
@@ -0,0 +1,64 @@
++-----+---------+
+| foo | bar |
++=====+=========+
+| foo | bar |
++-----+---------+
+
+ +---+
+ | 1 |
+ +---+
+
+=== ===
+ a b
+=== ===
+ 1 2
+=== ===
+
+ ==== ==== =====
+ foo bar
+ --------- -----
+ ab cd e
+ ==== ==== =====
+ 1 2 3
+ 4 5 6
+ ==== ==== =====
+
+----------------------------------------------------
+
+[
+ ["table", [
+ ["punctuation", "+-----+---------+"],
+ ["punctuation", "|"], " foo ", ["punctuation", "|"], " bar ", ["punctuation", "|"],
+ ["punctuation", "+=====+=========+"],
+ ["punctuation", "|"], " foo ", ["punctuation", "|"], " bar ", ["punctuation", "|"],
+ ["punctuation", "+-----+---------+"]
+ ]],
+
+ ["table", [
+ ["punctuation", "+---+"],
+ ["punctuation", "|"], " 1 ", ["punctuation", "|"],
+ ["punctuation", "+---+"]
+ ]],
+
+ ["table", [
+ ["punctuation", "==="], ["punctuation", "==="],
+ "\r\n a b\r\n",
+ ["punctuation", "==="], ["punctuation", "==="],
+ "\r\n 1 2\r\n",
+ ["punctuation", "==="], ["punctuation", "==="]
+ ]],
+
+ ["table", [
+ ["punctuation", "===="], ["punctuation", "===="], ["punctuation", "====="],
+ "\r\n\t foo bar\r\n\t",
+ ["punctuation", "---------"], ["punctuation", "-----"],
+ "\r\n\t ab cd e\r\n\t",
+ ["punctuation", "===="], ["punctuation", "===="], ["punctuation", "====="],
+ "\r\n\t 1 2 3\r\n\t 4 5 6\r\n\t",
+ ["punctuation", "===="], ["punctuation", "===="], ["punctuation", "====="]
+ ]]
+]
+
+----------------------------------------------------
+
+Checks for grid tables and simple tables.

Powered by Google App Engine
This is Rietveld 408576698