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

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

Issue 588183002: Emit warning on import of dart:mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 6 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 | 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 Future<bool> run(Uri uri) { 47 Future<bool> run(Uri uri) {
48 test('Compiler.run'); 48 test('Compiler.run');
49 return super.run(uri); 49 return super.run(uri);
50 } 50 }
51 51
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(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 void analyzeElement(Element element) {
63 test('Compiler.analyzeElement'); 63 test('Compiler.analyzeElement');
64 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) {
(...skipping 197 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

Powered by Google App Engine
This is Rietveld 408576698