619bfcb37f
BUG= R=alanknight@google.com Review URL: https://codereview.chromium.org//263013006 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35866 260f80e4-7a28-3924-810f-c04153c831b5
28 lines
1.0 KiB
Dart
28 lines
1.0 KiB
Dart
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
library docgen.test.method_param;
|
|
|
|
import 'package:path/path.dart' as path;
|
|
import 'package:scheduled_test/scheduled_test.dart';
|
|
|
|
import 'util.dart';
|
|
import '../lib/docgen.dart' as gen;
|
|
|
|
void main() {
|
|
test('method function parameters', () {
|
|
var lib_file = path.toUri(path.join(getMultiLibraryCodePath(), 'lib',
|
|
'test_lib2.dart'));
|
|
return gen.getMirrorSystem([lib_file], false)
|
|
.then((mirrorSystem) {
|
|
var library = new gen.Library(mirrorSystem.libraries[lib_file]);
|
|
|
|
// Test that libraries do recursive exports correctly.
|
|
var funcParams = library.functions['fooFunc'].parameters;
|
|
expect('Symbol("dart.core.int")', library.functions['fooFunc']
|
|
.parameters['fooFuncParam'].functionDeclaration.parameters['x']
|
|
.type.mirror.qualifiedName.toString());
|
|
});
|
|
});
|
|
} |