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

Unified Diff: utils/markdown/test/markdown_tests.dart

Issue 8725007: Lots of stuff hooking up markdown to dartdoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to awesome reviews. Created 9 years, 1 month 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
« no previous file with comments | « utils/markdown/markdown.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/markdown/test/markdown_tests.dart
diff --git a/utils/markdown/test/markdown_tests.dart b/utils/markdown/test/markdown_tests.dart
index 10e5b9e25ba2fe9cba6bce5f42c73e240eb600cf..33d643de7785b7ced77539491f00465767c5f9c1 100644
--- a/utils/markdown/test/markdown_tests.dart
+++ b/utils/markdown/test/markdown_tests.dart
@@ -603,6 +603,14 @@ void main() {
<p>before <code>`tick`</code> after</p>
''');
+ validate('multiline double backticks with spaces', '''
+ before ``in `tick`
+ another`` after
+ ''', '''
+ <p>before <code>in `tick`
+ another</code> after</p>
+ ''');
+
validate('ignore markup inside code', '''
before `*b* _c_` after
''', '''
@@ -614,6 +622,12 @@ void main() {
''', '''
<p><code>&lt;&amp;&gt;</code></p>
''');
+
+ validate('escape HTML tags', '''
+ '*' `<em>`
+ ''', '''
+ <p>'*' <code>&lt;em&gt;</code></p>
+ ''');
});
group('HTML encoding', () {
@@ -688,6 +702,11 @@ void main() {
''', '''
<p>links <a href="http://foo.com"><em>are</em></a> awesome</p>
''');
+ validate('inline styles after a bad link are processed', '''
+ [bad] `code`
+ ''', '''
+ <p>[bad] <code>code</code></p>
+ ''');
});
group('Inline links', () {
« no previous file with comments | « utils/markdown/markdown.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698