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

Side by Side Diff: tests/utils/dartdoc_test.dart

Issue 10836241: Move unittest from lib to pkg. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « tests/lib/unittest/unittest_test.dart ('k') | tests/utils/markdown_test.dart » ('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) 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.dart'); 12 #import('../../pkg/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/lib/unittest/unittest_test.dart ('k') | tests/utils/markdown_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698