Chromium Code Reviews| Index: lib/src/prism/tests/languages/markdown/italic_feature.test |
| diff --git a/lib/src/prism/tests/languages/markdown/italic_feature.test b/lib/src/prism/tests/languages/markdown/italic_feature.test |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..02ced180274c2d50ed53b98b3a063eada6dfadd9 |
| --- /dev/null |
| +++ b/lib/src/prism/tests/languages/markdown/italic_feature.test |
| @@ -0,0 +1,46 @@ |
| +*foobar* |
| +*foo |
| +bar* |
| +_foobar_ |
| +_foo |
| +bar_ |
| + |
| +_foo[bar](baz)_ |
| + |
| +---------------------------------------------------- |
| + |
| +[ |
| + ["italic", [ |
| + ["punctuation", "*"], |
| + "foobar", |
| + ["punctuation", "*"] |
| + ]], |
| + ["italic", [ |
| + ["punctuation", "*"], |
| + "foo\r\nbar", |
| + ["punctuation", "*"] |
| + ]], |
| + ["italic", [ |
| + ["punctuation", "_"], |
| + "foobar", |
| + ["punctuation", "_"] |
| + ]], |
| + ["italic", [ |
| + ["punctuation", "_"], |
| + "foo\r\nbar", |
| + ["punctuation", "_"] |
| + ]], |
| + |
| + ["italic", [ |
| + ["punctuation", "_"], |
| + "foo", |
| + ["url", [ |
| + "[bar](baz)" |
| + ]], |
| + ["punctuation", "_"] |
| + ]] |
| +] |
| + |
| +---------------------------------------------------- |
| + |
| +Checks for italic. Also tests for inclusion of url. |