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

Side by Side Diff: dart/pkg/dartdoc/test/dartdoc_test.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 // TODO(rnystrom): Use "package:" URL (#4968). 8 // TODO(rnystrom): Use "package:" URL (#4968).
9 import '../lib/dartdoc.dart' as dd; 9 #import('../lib/dartdoc.dart', prefix: 'dd');
10 import '../lib/markdown.dart' as md; 10 #import('../lib/markdown.dart', prefix: 'md');
11 11
12 // TODO(rnystrom): Better path to unittest. 12 // TODO(rnystrom): Better path to unittest.
13 import '../../unittest/unittest.dart'; 13 #import('../../unittest/unittest.dart');
14 14
15 main() { 15 main() {
16 group('countOccurrences', () { 16 group('countOccurrences', () {
17 test('empty text returns 0', () { 17 test('empty text returns 0', () {
18 expect(dd.countOccurrences('', 'needle'), equals(0)); 18 expect(dd.countOccurrences('', 'needle'), equals(0));
19 }); 19 });
20 20
21 test('one occurrence', () { 21 test('one occurrence', () {
22 expect(dd.countOccurrences('bananarama', 'nara'), equals(1)); 22 expect(dd.countOccurrences('bananarama', 'nara'), equals(1));
23 }); 23 });
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 '../../other/sub/file.html')); 110 '../../other/sub/file.html'));
111 }); 111 });
112 112
113 test('from nested to directory with different path', () { 113 test('from nested to directory with different path', () {
114 doc.startFile('dir/sub/file.html'); 114 doc.startFile('dir/sub/file.html');
115 expect(doc.relativePath('other/file.html'), equals( 115 expect(doc.relativePath('other/file.html'), equals(
116 '../../other/file.html')); 116 '../../other/file.html'));
117 }); 117 });
118 }); 118 });
119 } 119 }
OLDNEW
« no previous file with comments | « dart/pkg/dartdoc/test/dartdoc_search_test.dart ('k') | dart/pkg/dartdoc/test/markdown_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698