summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorlfbrock <lf.brock@spinpunch.com>2015-12-08 15:49:37 -0500
committerlfbrock <lf.brock@spinpunch.com>2015-12-08 15:49:37 -0500
commitd7d1cbb79867f531ab5a3144e7b4125101da60b8 (patch)
tree05a9fa1c128727aca7c0d969092e12950f597d69 /doc
parentcce301c8b52a15428b6d2dad0e3d15479b223e72 (diff)
downloadchat-d7d1cbb79867f531ab5a3144e7b4125101da60b8.tar.gz
chat-d7d1cbb79867f531ab5a3144e7b4125101da60b8.tar.bz2
chat-d7d1cbb79867f531ab5a3144e7b4125101da60b8.zip
Create test-tables.md
Diffstat (limited to 'doc')
-rw-r--r--doc/developer/tests/test-tables.md80
1 files changed, 80 insertions, 0 deletions
diff --git a/doc/developer/tests/test-tables.md b/doc/developer/tests/test-tables.md
new file mode 100644
index 000000000..87d8af856
--- /dev/null
+++ b/doc/developer/tests/test-tables.md
@@ -0,0 +1,80 @@
+# Markdown Tables
+
+Verify that all tables render as described.
+
+### Normal Tables
+
+These tables use different raw text as inputs, but all three should render as the same table.
+
+#### Table 1
+
+Raw text:
+
+```
+First Header | Second Header
+------------- | -------------
+Content Cell | Content Cell
+Content Cell | Content Cell
+```
+
+Renders as:
+
+First Header | Second Header
+------------- | -------------
+Content Cell | Content Cell
+Content Cell | Content Cell
+
+#### Table 2
+
+Raw Text:
+
+```
+| First Header | Second Header |
+| ------------- | ------------- |
+| Content Cell | Content Cell |
+| Content Cell | Content Cell |
+```
+
+Renders as:
+
+| First Header | Second Header |
+| ------------- | ------------- |
+| Content Cell | Content Cell |
+| Content Cell | Content Cell |
+
+#### Table 3
+
+Raw Text:
+
+```
+| First Header | Second Header |
+| ------------- | ----------- |
+| Content Cell | Content Cell|
+| Content Cell | Content Cell |
+```
+
+Renders as:
+
+| First Header | Second Header |
+| ------------- | ----------- |
+| Content Cell | Content Cell|
+| Content Cell | Content Cell |
+
+### Tables Containing Markdown
+
+This table should contain A1: Strikethrough, A2: Bold, B1: Italics, B2: Dolphin emoticon.
+
+| Column\Row | 1 | 2 |
+| ------------- | ------------- |------------- |
+| A | ~~Strikethrough~~ | **Bold** |
+| B | _italics_ | :dolphin: |
+
+### Table with Left, Center, and Right Aligned Columns
+
+The left column should be left aligned, the center column centered and the right column should be right aligned.
+
+| Left-Aligned | Center Aligned | Right Aligned |
+| :------------ |:---------------:| -----:|
+| 1 | this text | $100 |
+| 2 | is | $10 |
+| 3 | centered | $1 |