| 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 'package:path/path.dart' as p; | 7 import 'package:path/path.dart' as p; |
| 8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 9 | 9 |
| 10 import '../lib/docgen.dart'; | 10 import '../lib/docgen.dart'; |
| 11 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.
dart' | 11 import '../lib/src/exports/mirrors_util.dart' as dart2js_util; |
| 12 as dart2js_util; | |
| 13 | 12 |
| 14 import 'util.dart'; | 13 import 'util.dart'; |
| 15 | 14 |
| 16 List<Uri> _writeLibFiles() { | 15 List<Uri> _writeLibFiles() { |
| 17 var codePath = getMultiLibraryCodePath(); | 16 var codePath = getMultiLibraryCodePath(); |
| 18 | 17 |
| 19 codePath = p.join(codePath, 'lib'); | 18 codePath = p.join(codePath, 'lib'); |
| 20 | 19 |
| 21 return ['test_lib.dart', 'test_lib_bar.dart', 'test_lib_foo.dart'] | 20 return ['test_lib.dart', 'test_lib_bar.dart', 'test_lib_foo.dart'] |
| 22 .map((name) => p.join(codePath, name)) | 21 .map((name) => p.join(codePath, name)) |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 expect(methodParameterDocComment, 'test_lib.B'); | 84 expect(methodParameterDocComment, 'test_lib.B'); |
| 86 | 85 |
| 87 methodParameterDocComment = exportedClass.fixReference( | 86 methodParameterDocComment = exportedClass.fixReference( |
| 88 'testFunc').children.first.text; | 87 'testFunc').children.first.text; |
| 89 expect(methodParameterDocComment, 'test_lib.testFunc'); | 88 expect(methodParameterDocComment, 'test_lib.testFunc'); |
| 90 | 89 |
| 91 }); | 90 }); |
| 92 }); | 91 }); |
| 93 }); | 92 }); |
| 94 } | 93 } |
| OLD | NEW |