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

Side by Side Diff: dart/tests/compiler/dart2js/analyze_only_test.dart

Issue 341923005: Update imports to use package:compiler and package:try. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r37512. Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Smoke test of the dart2js compiler API. 5 // Smoke test of the dart2js compiler API.
6 library analyze_only; 6 library analyze_only;
7 7
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 import 'dart:async'; 9 import 'dart:async';
10 import "package:async_helper/async_helper.dart"; 10 import "package:async_helper/async_helper.dart";
11 11
12 import '../../utils/dummy_compiler_test.dart' as dummy; 12 import '../../utils/dummy_compiler_test.dart' as dummy;
13 import '../../../sdk/lib/_internal/compiler/compiler.dart'; 13 import 'package:compiler/compiler.dart';
14 14
15 runCompiler(String main, List<String> options, 15 runCompiler(String main, List<String> options,
16 onValue(String code, List errors, List warnings)) { 16 onValue(String code, List errors, List warnings)) {
17 List errors = new List(); 17 List errors = new List();
18 List warnings = new List(); 18 List warnings = new List();
19 19
20 Future<String> localProvider(Uri uri) { 20 Future<String> localProvider(Uri uri) {
21 if (uri.scheme != 'main') return dummy.provider(uri); 21 if (uri.scheme != 'main') return dummy.provider(uri);
22 return new Future<String>.value(main); 22 return new Future<String>.value(main);
23 } 23 }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // --analyze-signatures-only implies --analyze-only 157 // --analyze-signatures-only implies --analyze-only
158 runCompiler( 158 runCompiler(
159 "", 159 "",
160 ['--analyze-signatures-only', '--analyze-all'], 160 ['--analyze-signatures-only', '--analyze-all'],
161 (String code, List errors, List warnings) { 161 (String code, List errors, List warnings) {
162 Expect.isNull(code); 162 Expect.isNull(code);
163 Expect.isTrue(errors.isEmpty); 163 Expect.isTrue(errors.isEmpty);
164 Expect.isTrue(warnings.isEmpty); 164 Expect.isTrue(warnings.isEmpty);
165 }); 165 });
166 } 166 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js/analyze_helper.dart ('k') | dart/tests/compiler/dart2js/analyze_unused_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698