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

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

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
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
11 import 'package:async_helper/async_helper.dart'; 11 import 'package:async_helper/async_helper.dart';
12 import 'package:expect/expect.dart'; 12 import 'package:expect/expect.dart';
13 13
14 import 'package:compiler/compiler.dart' as old_api; 14 import 'package:compiler/compiler.dart' as old_api;
15 import 'package:compiler/compiler_new.dart' as api; 15 import 'package:compiler/compiler_new.dart' as api;
16 import 'package:compiler/src/common/codegen.dart';
16 import 'package:compiler/src/compile_time_constants.dart'; 17 import 'package:compiler/src/compile_time_constants.dart';
18 import 'package:compiler/src/compiler.dart';
17 import 'package:compiler/src/dart2js.dart' as entry; 19 import 'package:compiler/src/dart2js.dart' as entry;
18 import 'package:compiler/src/dart2jslib.dart'; 20 import 'package:compiler/src/diagnostics/invariant.dart';
21 import 'package:compiler/src/diagnostics/spannable.dart';
19 import 'package:compiler/src/apiimpl.dart' as apiimpl; 22 import 'package:compiler/src/apiimpl.dart' as apiimpl;
20 import 'package:compiler/src/enqueue.dart'; 23 import 'package:compiler/src/enqueue.dart';
21 import 'package:compiler/src/elements/elements.dart'; 24 import 'package:compiler/src/elements/elements.dart';
22 import 'package:compiler/src/library_loader.dart'; 25 import 'package:compiler/src/library_loader.dart';
23 import 'package:compiler/src/messages.dart'; 26 import 'package:compiler/src/messages.dart';
24 import 'package:compiler/src/null_compiler_output.dart'; 27 import 'package:compiler/src/null_compiler_output.dart';
25 import 'package:compiler/src/old_to_new_api.dart'; 28 import 'package:compiler/src/old_to_new_api.dart';
26 import 'package:compiler/src/resolution/resolution.dart'; 29 import 'package:compiler/src/resolution/resolution.dart';
27 import 'package:compiler/src/scanner/scannerlib.dart'; 30 import 'package:compiler/src/scanner/scannerlib.dart';
28 import 'package:compiler/src/util/util.dart';
29 31
30 class TestCompiler extends apiimpl.Compiler { 32 class TestCompiler extends apiimpl.Compiler {
31 final String testMarker; 33 final String testMarker;
32 final String testType; 34 final String testType;
33 final Function onTest; 35 final Function onTest;
34 36
35 TestCompiler(api.CompilerInput inputProvider, 37 TestCompiler(api.CompilerInput inputProvider,
36 api.CompilerOutput outputProvider, 38 api.CompilerOutput outputProvider,
37 api.CompilerDiagnostics handler, 39 api.CompilerDiagnostics handler,
38 Uri libraryRoot, 40 Uri libraryRoot,
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 277
276 expected = _expectedExitCode( 278 expected = _expectedExitCode(
277 beforeRun: tests[marker], fatalWarnings: true); 279 beforeRun: tests[marker], fatalWarnings: true);
278 totalExpectedErrors += expected.length; 280 totalExpectedErrors += expected.length;
279 await testExitCodes(marker, expected, ['--fatal-warnings']); 281 await testExitCodes(marker, expected, ['--fatal-warnings']);
280 } 282 }
281 283
282 Expect.equals(totalExpectedErrors, checkedResults); 284 Expect.equals(totalExpectedErrors, checkedResults);
283 }); 285 });
284 } 286 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/deferred_not_in_main_test.dart ('k') | tests/compiler/dart2js/expect_annotations_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698