| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 library docgen.test.method_param; | |
| 6 | |
| 7 import 'package:path/path.dart' as path; | |
| 8 import 'package:scheduled_test/scheduled_test.dart'; | |
| 9 | |
| 10 import 'util.dart'; | |
| 11 import '../lib/docgen.dart' as gen; | |
| 12 | |
| 13 void main() { | |
| 14 test('method function parameters', () { | |
| 15 var lib_file = path.toUri(path.join(getMultiLibraryCodePath(), 'lib', | |
| 16 'test_lib2.dart')); | |
| 17 return gen.getMirrorSystem([lib_file], false) | |
| 18 .then((mirrorSystem) { | |
| 19 var library = new gen.Library(mirrorSystem.libraries[lib_file]); | |
| 20 | |
| 21 // Test that libraries do recursive exports correctly. | |
| 22 var funcParams = library.functions['fooFunc'].parameters; | |
| 23 expect('Symbol("dart.core.int")', library.functions['fooFunc'] | |
| 24 .parameters['fooFuncParam'].functionDeclaration.parameters['x'] | |
| 25 .type.mirror.qualifiedName.toString()); | |
| 26 }); | |
| 27 }); | |
| 28 } | |
| OLD | NEW |