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

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

Issue 1364553002: remove docgen source and targets from build (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: remove scripts Created 5 years, 3 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
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « pkg/docgen/test/metadata_test.dart ('k') | pkg/docgen/test/multi_library_code/lib/dottedLibraryName.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698