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

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

Issue 1409803006: Rename apiimpl.Compiler to CompilerImpl. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix long lines Created 5 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
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, errors, warnings, etc. 5 // Test the exit code of dart2js in case of exceptions, errors, warnings, etc.
6 6
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:io' show Platform; 9 import 'dart:io' show Platform;
10 10
(...skipping 14 matching lines...) Expand all
25 import 'package:compiler/src/enqueue.dart'; 25 import 'package:compiler/src/enqueue.dart';
26 import 'package:compiler/src/elements/elements.dart'; 26 import 'package:compiler/src/elements/elements.dart';
27 import 'package:compiler/src/library_loader.dart'; 27 import 'package:compiler/src/library_loader.dart';
28 import 'package:compiler/src/null_compiler_output.dart'; 28 import 'package:compiler/src/null_compiler_output.dart';
29 import 'package:compiler/src/old_to_new_api.dart'; 29 import 'package:compiler/src/old_to_new_api.dart';
30 import 'package:compiler/src/resolution/resolution.dart'; 30 import 'package:compiler/src/resolution/resolution.dart';
31 import 'package:compiler/src/scanner/scanner_task.dart'; 31 import 'package:compiler/src/scanner/scanner_task.dart';
32 import 'package:compiler/src/universe/world_impact.dart'; 32 import 'package:compiler/src/universe/world_impact.dart';
33 import 'diagnostic_reporter_helper.dart'; 33 import 'diagnostic_reporter_helper.dart';
34 34
35 class TestCompiler extends apiimpl.Compiler { 35 class TestCompiler extends apiimpl.CompilerImpl {
36 final String testMarker; 36 final String testMarker;
37 final String testType; 37 final String testType;
38 final Function onTest; 38 final Function onTest;
39 DiagnosticReporter reporter; 39 DiagnosticReporter reporter;
40 40
41 TestCompiler(api.CompilerInput inputProvider, 41 TestCompiler(api.CompilerInput inputProvider,
42 api.CompilerOutput outputProvider, 42 api.CompilerOutput outputProvider,
43 api.CompilerDiagnostics handler, 43 api.CompilerDiagnostics handler,
44 Uri libraryRoot, 44 Uri libraryRoot,
45 Uri packageRoot, 45 Uri packageRoot,
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 expected = _expectedExitCode( 293 expected = _expectedExitCode(
294 beforeRun: tests[marker], fatalWarnings: true); 294 beforeRun: tests[marker], fatalWarnings: true);
295 totalExpectedErrors += expected.length; 295 totalExpectedErrors += expected.length;
296 await testExitCodes(marker, expected, ['--fatal-warnings']); 296 await testExitCodes(marker, expected, ['--fatal-warnings']);
297 } 297 }
298 298
299 Expect.equals(totalExpectedErrors, checkedResults); 299 Expect.equals(totalExpectedErrors, checkedResults);
300 }); 300 });
301 } 301 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/deferred_load_mapping_test.dart ('k') | tests/compiler/dart2js/incremental/compile_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698