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

Side by Side Diff: dart/tests/compiler/dart2js/exit_code_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) 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 '../../../sdk/lib/_internal/compiler/compiler.dart' as api; 15 import 'package:compiler/compiler.dart' as api;
16 import '../../../sdk/lib/_internal/compiler/implementation/dart2js.dart' as entr y; 16 import 'package:compiler/implementation/dart2js.dart' as entry;
17 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'; 17 import 'package:compiler/implementation/dart2jslib.dart';
18 import '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart' as apii mpl; 18 import 'package:compiler/implementation/apiimpl.dart' as apiimpl;
19 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t'; 19 import 'package:compiler/implementation/elements/elements.dart';
20 import '../../../sdk/lib/_internal/compiler/implementation/resolution/resolution .dart'; 20 import 'package:compiler/implementation/resolution/resolution.dart';
21 import '../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.da rt'; 21 import 'package:compiler/implementation/scanner/scannerlib.dart';
22 import '../../../sdk/lib/_internal/compiler/implementation/util/util.dart'; 22 import 'package:compiler/implementation/util/util.dart';
23 23
24 class TestCompiler extends apiimpl.Compiler { 24 class TestCompiler extends apiimpl.Compiler {
25 final String testMarker; 25 final String testMarker;
26 final String testType; 26 final String testType;
27 final Function onTest; 27 final Function onTest;
28 28
29 TestCompiler(api.CompilerInputProvider inputProvider, 29 TestCompiler(api.CompilerInputProvider inputProvider,
30 api.CompilerOutputProvider outputProvider, 30 api.CompilerOutputProvider outputProvider,
31 api.DiagnosticHandler handler, 31 api.DiagnosticHandler handler,
32 Uri libraryRoot, 32 Uri libraryRoot,
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 int countResults(Map runType) { 264 int countResults(Map runType) {
265 return runType.length * 265 return runType.length *
266 tests.values.where((r) => r == runType).length; 266 tests.values.where((r) => r == runType).length;
267 } 267 }
268 268
269 Expect.equals(countResults(beforeRun) + countResults(duringRun), 269 Expect.equals(countResults(beforeRun) + countResults(duringRun),
270 checkedResults); 270 checkedResults);
271 asyncEnd(); 271 asyncEnd();
272 }); 272 });
273 } 273 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698