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

Side by Side Diff: tests/utils/src/DartdocTest.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 doc. 5 /// Unit tests for doc.
6 #library('dartdoc_tests'); 6 #library('dartdoc_tests');
7 7
8 #import('../../../lib/dartdoc/dartdoc.dart', prefix: 'dd'); 8 #import('../../../lib/dartdoc/dartdoc.dart', prefix: 'dd');
9 #import('../../../lib/dartdoc/markdown.dart', prefix: 'md'); 9 #import('../../../lib/dartdoc/markdown.dart', prefix: 'md');
10 10
11 // TODO(rnystrom): Better path to unittest. 11 // TODO(rnystrom): Better path to unittest.
12 #import('../../../lib/unittest/unittest_vm.dart'); 12 #import('../../../lib/unittest/unittest.dart');
13 #import('../../../frog/lang.dart'); 13 #import('../../../frog/lang.dart');
14 #import('../../../frog/file_system_vm.dart'); 14 #import('../../../frog/file_system_vm.dart');
15 15
16 main() { 16 main() {
17 var files = new VMFileSystem(); 17 var files = new VMFileSystem();
18 parseOptions('../../frog', [], files); 18 parseOptions('../../frog', [], files);
19 initializeWorld(files); 19 initializeWorld(files);
20 20
21 group('countOccurrences', () { 21 group('countOccurrences', () {
22 test('empty text returns 0', () { 22 test('empty text returns 0', () {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 test('to a named constructor', () { 216 test('to a named constructor', () {
217 expect(render(doc.resolveNameReference('new Class.namedConstructor', 217 expect(render(doc.resolveNameReference('new Class.namedConstructor',
218 library: dummy))). 218 library: dummy))).
219 equals('<a class="crossref" ' + 219 equals('<a class="crossref" ' +
220 'href="../dummy/Class.html#new:Class.namedConstructor">new ' + 220 'href="../dummy/Class.html#new:Class.namedConstructor">new ' +
221 'Class.namedConstructor</a>'); 221 'Class.namedConstructor</a>');
222 }); 222 });
223 }); 223 });
224 } 224 }
OLDNEW
« no previous file with comments | « tests/isolate/src/APIv2_unresolvedPortsBrowserTest.dart ('k') | tests/utils/src/MarkdownTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698