Chromium Code Reviews| Index: lib/src/prism/tests/languages/rest/directive_feature.test |
| diff --git a/lib/src/prism/tests/languages/rest/directive_feature.test b/lib/src/prism/tests/languages/rest/directive_feature.test |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e114a6dbda64d3941dae299025349df2c75724e5 |
| --- /dev/null |
| +++ b/lib/src/prism/tests/languages/rest/directive_feature.test |
| @@ -0,0 +1,33 @@ |
| +.. image:: mylogo.jpeg |
| +.. figure:: foo.png |
| + |
| +.. note:: This is a paragraph. |
| + |
| +---------------------------------------------------- |
| + |
| +[ |
| + ["punctuation", ".."], |
| + ["directive", [ |
| + "image", |
| + ["punctuation", "::"] |
| + ]], |
| + " mylogo.jpeg\r\n", |
| + |
| + ["punctuation", ".."], |
| + ["directive", [ |
| + "figure", |
| + ["punctuation", "::"] |
| + ]], |
| + " foo.png\r\n\r\n", |
| + |
| + ["punctuation", ".."], |
| + ["directive", [ |
| + "note", |
| + ["punctuation", "::"] |
| + ]], |
| + " This is a paragraph." |
| +] |
| + |
| +---------------------------------------------------- |
| + |
| +Checks for directives. |