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

Unified Diff: tests/compiler/dart2js/mirrors_test.dart

Issue 12446003: Support full dart2js output for dartdoc/apidoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/dartdoc/lib/dartdoc.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mirrors_test.dart
diff --git a/tests/compiler/dart2js/mirrors_test.dart b/tests/compiler/dart2js/mirrors_test.dart
index 9f10a8c4c8d348cd42a7d0fdfc3bc586b30ce8f0..20c3f35e59a498218b36f138fb5922418a8669c6 100644
--- a/tests/compiler/dart2js/mirrors_test.dart
+++ b/tests/compiler/dart2js/mirrors_test.dart
@@ -4,6 +4,7 @@
import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart';
import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart';
+import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart';
import 'dart:io';
@@ -38,11 +39,14 @@ main() {
var dirPath = scriptPath.directoryPath;
var libPath = dirPath.join(new Path('../../../sdk/'));
var inputPath = dirPath.join(new Path('mirrors_helper.dart'));
- var compilation = new Compilation.library([inputPath], libPath, null,
- <String>['--preserve-comments']);
- Expect.isNotNull(compilation, "No compilation created");
+ var result = analyze([inputPath], libPath,
+ options: <String>['--preserve-comments']);
+ result.then((MirrorSystem mirrors) {
+ test(mirrors);
+ });
+}
- var mirrors = compilation.mirrors;
+void test(MirrorSystem mirrors) {
Expect.isNotNull(mirrors, "No mirror system returned from compilation");
var libraries = mirrors.libraries;
« no previous file with comments | « sdk/lib/_internal/dartdoc/lib/dartdoc.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698