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

Side by Side Diff: sdk/lib/_internal/dartdoc/test/markdown_test.dart

Issue 12782016: Switch pkg packages, pub, and dartdoc to use package: imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/_internal/dartdoc/test/dartdoc_test.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Unit tests for markdown. 5 /// Unit tests for markdown.
6 library markdownTests; 6 library markdownTests;
7 7
8 import 'package:unittest/unittest.dart';
9
8 // TODO(rnystrom): Use "package:" URL (#4968). 10 // TODO(rnystrom): Use "package:" URL (#4968).
9 import '../lib/markdown.dart'; 11 import '../lib/markdown.dart';
10 12
11 // TODO(rnystrom): Better path to unittest.
12 import '../../../../../pkg/unittest/lib/unittest.dart';
13
14 /// Most of these tests are based on observing how showdown behaves: 13 /// Most of these tests are based on observing how showdown behaves:
15 /// http://softwaremaniacs.org/playground/showdown-highlight/ 14 /// http://softwaremaniacs.org/playground/showdown-highlight/
16 void main() { 15 void main() {
17 group('Paragraphs', () { 16 group('Paragraphs', () {
18 validate('consecutive lines form a single paragraph', ''' 17 validate('consecutive lines form a single paragraph', '''
19 This is the first line. 18 This is the first line.
20 This is the second line. 19 This is the second line.
21 ''', ''' 20 ''', '''
22 <p>This is the first line. 21 <p>This is the first line.
23 This is the second line.</p> 22 This is the second line.</p>
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 903
905 // If one string runs out of non-ignored strings, the other must too. 904 // If one string runs out of non-ignored strings, the other must too.
906 if (i == a.length) return j == b.length; 905 if (i == a.length) return j == b.length;
907 if (j == b.length) return i == a.length; 906 if (j == b.length) return i == a.length;
908 907
909 if (a[i] != b[j]) return false; 908 if (a[i] != b[j]) return false;
910 i++; 909 i++;
911 j++; 910 j++;
912 } 911 }
913 } 912 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/dartdoc/test/dartdoc_test.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698