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

Side by Side Diff: tests/compiler/dart2js/exit_code_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Test the exit code of dart2js in case of exceptions, fatal errors, errors, 5 // Test the exit code of dart2js in case of exceptions, fatal errors, errors,
6 // warnings, etc. 6 // warnings, etc.
7 7
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:io' show Platform; 10 import 'dart:io' show Platform;
11 11
12 import 'package:async_helper/async_helper.dart'; 12 import 'package:async_helper/async_helper.dart';
13 import 'package:expect/expect.dart'; 13 import 'package:expect/expect.dart';
14 14
15 import 'package:compiler/compiler.dart' as api; 15 import 'package:compiler/compiler.dart' as api;
16 import 'package:compiler/implementation/dart2js.dart' as entry; 16 import 'package:compiler/src/dart2js.dart' as entry;
17 import 'package:compiler/implementation/dart2jslib.dart'; 17 import 'package:compiler/src/dart2jslib.dart';
18 import 'package:compiler/implementation/apiimpl.dart' as apiimpl; 18 import 'package:compiler/src/apiimpl.dart' as apiimpl;
19 import 'package:compiler/implementation/elements/elements.dart'; 19 import 'package:compiler/src/elements/elements.dart';
20 import 'package:compiler/implementation/library_loader.dart'; 20 import 'package:compiler/src/library_loader.dart';
21 import 'package:compiler/implementation/resolution/resolution.dart'; 21 import 'package:compiler/src/resolution/resolution.dart';
22 import 'package:compiler/implementation/scanner/scannerlib.dart'; 22 import 'package:compiler/src/scanner/scannerlib.dart';
23 import 'package:compiler/implementation/util/util.dart'; 23 import 'package:compiler/src/util/util.dart';
24 24
25 class TestCompiler extends apiimpl.Compiler { 25 class TestCompiler extends apiimpl.Compiler {
26 final String testMarker; 26 final String testMarker;
27 final String testType; 27 final String testType;
28 final Function onTest; 28 final Function onTest;
29 29
30 TestCompiler(api.CompilerInputProvider inputProvider, 30 TestCompiler(api.CompilerInputProvider inputProvider,
31 api.CompilerOutputProvider outputProvider, 31 api.CompilerOutputProvider outputProvider,
32 api.DiagnosticHandler handler, 32 api.DiagnosticHandler handler,
33 Uri libraryRoot, 33 Uri libraryRoot,
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 int countResults(Map runType) { 265 int countResults(Map runType) {
266 return runType.length * 266 return runType.length *
267 tests.values.where((r) => r == runType).length; 267 tests.values.where((r) => r == runType).length;
268 } 268 }
269 269
270 Expect.equals(countResults(beforeRun) + countResults(duringRun), 270 Expect.equals(countResults(beforeRun) + countResults(duringRun),
271 checkedResults); 271 checkedResults);
272 asyncEnd(); 272 asyncEnd();
273 }); 273 });
274 } 274 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/erroneous_element_test.dart ('k') | tests/compiler/dart2js/field_type_simple_inferer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698