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

Side by Side Diff: pkg/docgen/test/single_library_test.dart

Issue 242363004: pkg/docgen: moved model classes into minilibs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cl nits Created 6 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library single_library_test; 5 library single_library_test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:path/path.dart' as path; 9 import 'package:path/path.dart' as path;
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
11 11
12 import '../lib/src/exports/mirrors_util.dart' as dart2js_util;
12 import '../lib/docgen.dart'; 13 import '../lib/docgen.dart';
13 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util. dart'
14 as dart2js_util;
15 14
16 const String DART_LIBRARY = ''' 15 const String DART_LIBRARY = '''
17 library test; 16 library test;
18 /** 17 /**
19 * Doc comment for class [A]. 18 * Doc comment for class [A].
20 * 19 *
21 * Multiline Test 20 * Multiline Test
22 */ 21 */
23 /* 22 /*
24 * Normal comment for class A. 23 * Normal comment for class A.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 'doThis').children.first.text; 122 'doThis').children.first.text;
124 expect(methodDocComment, 'test.A.doThis'); 123 expect(methodDocComment, 'test.A.doThis');
125 124
126 // Testing something with no reference 125 // Testing something with no reference
127 var libraryDocComment = method.fixReference('foobar').text; 126 var libraryDocComment = method.fixReference('foobar').text;
128 expect(libraryDocComment, 'foobar'); 127 expect(libraryDocComment, 'foobar');
129 }).whenComplete(() => temporaryDir.deleteSync(recursive: true)); 128 }).whenComplete(() => temporaryDir.deleteSync(recursive: true));
130 }); 129 });
131 }); 130 });
132 } 131 }
OLDNEW
« pkg/docgen/lib/src/generator.dart ('K') | « pkg/docgen/test/multi_library_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698