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

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

Issue 368833002: Cleanup warnings in unit tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix outdated type annotations. Created 6 years, 5 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;
(...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(Map<Uri, LibraryElement> loadedLibraries) { 57 Future onLibrariesLoaded(Map<Uri, LibraryElement> loadedLibraries) {
58 test('Compiler.onLibrariesLoaded'); 58 test('Compiler.onLibrariesLoaded');
59 return super.onLibrariesLoaded(loadedLibraries); 59 return super.onLibrariesLoaded(loadedLibraries);
60 } 60 }
61 61
62 TreeElements analyzeElement(Element element) { 62 void analyzeElement(Element element) {
63 test('Compiler.analyzeElement'); 63 test('Compiler.analyzeElement');
64 return super.analyzeElement(element); 64 super.analyzeElement(element);
65 } 65 }
66 66
67 void codegen(CodegenWorkItem work, CodegenEnqueuer world) { 67 void codegen(CodegenWorkItem work, CodegenEnqueuer world) {
68 test('Compiler.codegen'); 68 test('Compiler.codegen');
69 super.codegen(work, world); 69 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');
(...skipping 190 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/dart_backend_test.dart ('k') | tests/compiler/dart2js/find_my_name_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698