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

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

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 'package:compiler/compiler.dart'; 13 import 'package:compiler/compiler.dart';
14 14
15 import 'package:compiler/implementation/dart2jslib.dart' show 15 import 'package:compiler/src/dart2jslib.dart' show
16 MessageKind; 16 MessageKind;
17 17
18 runCompiler(String main, List<String> options, 18 runCompiler(String main, List<String> options,
19 onValue(String code, List errors, List warnings)) { 19 onValue(String code, List errors, List warnings)) {
20 List errors = new List(); 20 List errors = new List();
21 List warnings = new List(); 21 List warnings = new List();
22 22
23 Future<String> localProvider(Uri uri) { 23 Future<String> localProvider(Uri uri) {
24 if (uri.scheme != 'main') return dummy.provider(uri); 24 if (uri.scheme != 'main') return dummy.provider(uri);
25 return new Future<String>.value(main); 25 return new Future<String>.value(main);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // --analyze-signatures-only implies --analyze-only 168 // --analyze-signatures-only implies --analyze-only
169 runCompiler( 169 runCompiler(
170 "", 170 "",
171 ['--analyze-signatures-only', '--analyze-all'], 171 ['--analyze-signatures-only', '--analyze-all'],
172 (String code, List errors, List warnings) { 172 (String code, List errors, List warnings) {
173 Expect.isNull(code); 173 Expect.isNull(code);
174 Expect.isTrue(errors.isEmpty); 174 Expect.isTrue(errors.isEmpty);
175 Expect.isTrue(warnings.isEmpty); 175 Expect.isTrue(warnings.isEmpty);
176 }); 176 });
177 } 177 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/analyze_helper.dart ('k') | tests/compiler/dart2js/analyze_unused_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698