diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-02-18 10:07:56 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-02-18 10:07:56 -0500 |
commit | daa06ad41e0fe8c9b2b443952e893af354addd95 (patch) | |
tree | d34a4bfbf53e52d48cefbd699fbcac1e8032c879 /tests/test-tables.md | |
parent | 8b9ff64881aae5694f616612f994991b2a3d7c59 (diff) | |
parent | a7fae6e62fbddc5565b10995f0eaeaca0af6c818 (diff) | |
download | chat-daa06ad41e0fe8c9b2b443952e893af354addd95.tar.gz chat-daa06ad41e0fe8c9b2b443952e893af354addd95.tar.bz2 chat-daa06ad41e0fe8c9b2b443952e893af354addd95.zip |
Merge pull request #2189 from mattermost/plt-2042
PLT-2042 Moving /loadtest url tests to /tests and removing /doc folder.
Diffstat (limited to 'tests/test-tables.md')
-rw-r--r-- | tests/test-tables.md | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/tests/test-tables.md b/tests/test-tables.md new file mode 100644 index 000000000..87d8af856 --- /dev/null +++ b/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 | |