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

Side by Side Diff: samples/markdown/test/markdown_tests.dart

Issue 10037027: unittest step2: bye bye to multiple entrypoints for unittest (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 unified diff | Download patch | Annotate | Revision Log
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('markdown_tests'); 6 #library('markdown_tests');
7 7
8 #import('../lib.dart'); 8 #import('../lib.dart');
9 9
10 // TODO(rnystrom): Better path to unittest. 10 // TODO(rnystrom): Better path to unittest.
11 #import('../../../lib/unittest/unittest_vm.dart'); 11 #import('../../../lib/unittest/unittest.dart');
12 12
13 /// Most of these tests are based on observing how showdown behaves: 13 /// Most of these tests are based on observing how showdown behaves:
14 /// http://softwaremaniacs.org/playground/showdown-highlight/ 14 /// http://softwaremaniacs.org/playground/showdown-highlight/
15 void main() { 15 void main() {
16 group('Paragraphs', () { 16 group('Paragraphs', () {
17 validate('consecutive lines form a single paragraph', ''' 17 validate('consecutive lines form a single paragraph', '''
18 This is the first line. 18 This is the first line.
19 This is the second line. 19 This is the second line.
20 ''', ''' 20 ''', '''
21 <p>This is the first line. 21 <p>This is the first line.
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 797
798 // If one string runs out of non-ignored strings, the other must too. 798 // If one string runs out of non-ignored strings, the other must too.
799 if (i == a.length) return j == b.length; 799 if (i == a.length) return j == b.length;
800 if (j == b.length) return i == a.length; 800 if (j == b.length) return i == a.length;
801 801
802 if (a[i] != b[j]) return false; 802 if (a[i] != b[j]) return false;
803 i++; 803 i++;
804 j++; 804 j++;
805 } 805 }
806 } 806 }
OLDNEW
« no previous file with comments | « samples/belay/tests/bcap_tests.dart ('k') | samples/tests/samples/src/dartcombat/DartCombatTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698