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

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

Issue 1146813009: Introduce WorldImpact (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 Future onLibraryScanned(LibraryElement element, LibraryLoader loader) { 52 Future onLibraryScanned(LibraryElement element, LibraryLoader loader) {
53 test('Compiler.onLibraryScanned'); 53 test('Compiler.onLibraryScanned');
54 return super.onLibraryScanned(element, loader); 54 return super.onLibraryScanned(element, loader);
55 } 55 }
56 56
57 Future onLibrariesLoaded(LoadedLibraries loadedLibraries) { 57 Future onLibrariesLoaded(LoadedLibraries loadedLibraries) {
58 test('Compiler.onLibrariesLoaded'); 58 test('Compiler.onLibrariesLoaded');
59 return super.onLibrariesLoaded(loadedLibraries); 59 return super.onLibrariesLoaded(loadedLibraries);
60 } 60 }
61 61
62 void analyzeElement(Element element) { 62 WorldImpact analyzeElement(Element element) {
63 test('Compiler.analyzeElement'); 63 test('Compiler.analyzeElement');
64 super.analyzeElement(element); 64 return super.analyzeElement(element);
65 } 65 }
66 66
67 void codegen(CodegenWorkItem work, CodegenEnqueuer world) { 67 WorldImpact codegen(CodegenWorkItem work, CodegenEnqueuer world) {
68 test('Compiler.codegen'); 68 test('Compiler.codegen');
69 super.codegen(work, world); 69 return super.codegen(work, world);
70 } 70 }
71 71
72 withCurrentElement(Element element, f()) { 72 withCurrentElement(Element element, f()) {
73 return super.withCurrentElement(element, () { 73 return super.withCurrentElement(element, () {
74 test('Compiler.withCurrentElement'); 74 test('Compiler.withCurrentElement');
75 return f(); 75 return f();
76 }); 76 });
77 } 77 }
78 78
79 test(String marker) { 79 test(String marker) {
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 expected = _expectedExitCode( 264 expected = _expectedExitCode(
265 beforeRun: tests[marker], fatalWarnings: true); 265 beforeRun: tests[marker], fatalWarnings: true);
266 totalExpectedErrors += expected.length; 266 totalExpectedErrors += expected.length;
267 await testExitCodes(marker, expected, ['--fatal-warnings']); 267 await testExitCodes(marker, expected, ['--fatal-warnings']);
268 } 268 }
269 269
270 Expect.equals(totalExpectedErrors, checkedResults); 270 Expect.equals(totalExpectedErrors, checkedResults);
271 }); 271 });
272 } 272 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698