| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |