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

Unified Diff: tests/utils/src/MarkdownTest.dart

Issue 10073001: Fix HTTP links in URI docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 months 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
« lib/uri/uri.dart ('K') | « lib/uri/uri.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/src/MarkdownTest.dart
diff --git a/tests/utils/src/MarkdownTest.dart b/tests/utils/src/MarkdownTest.dart
index b3cd0a5b91f314680adbf3f472ab66001054c97e..50a41a70387a2135a7323c6853645688cab555ff 100644
--- a/tests/utils/src/MarkdownTest.dart
+++ b/tests/utils/src/MarkdownTest.dart
@@ -707,6 +707,20 @@ void main() {
''', '''
<p>[bad] <code>code</code></p>
''');
+ validate('empty reference uses text from link', '''
+ links [are][] awesome
+
+ [are]: http://foo.com
+ ''', '''
+ <p>links <a href="http://foo.com">are</a> awesome</p>
+ ''');
+ validate('references are case-insensitive', '''
+ links [ARE][] awesome
+
+ [are]: http://foo.com
+ ''', '''
+ <p>links <a href="http://foo.com">ARE</a> awesome</p>
+ ''');
});
group('Inline links', () {
« lib/uri/uri.dart ('K') | « lib/uri/uri.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698