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

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

Issue 44033002: Update status file, and fix unit tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library mock_compiler; 5 library mock_compiler;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 10
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 abstract class Map<K,V> {} 198 abstract class Map<K,V> {}
199 class DateTime { 199 class DateTime {
200 DateTime(year); 200 DateTime(year);
201 DateTime.utc(year); 201 DateTime.utc(year);
202 } 202 }
203 abstract class Pattern {} 203 abstract class Pattern {}
204 bool identical(Object a, Object b) { return true; }'''; 204 bool identical(Object a, Object b) { return true; }''';
205 205
206 const String DEFAULT_ISOLATE_HELPERLIB = r''' 206 const String DEFAULT_ISOLATE_HELPERLIB = r'''
207 var startRootIsolate;
208 var _currentIsolate;
209 var _callInIsolate;
207 class _WorkerBase {}'''; 210 class _WorkerBase {}''';
208 211
209 class MockCompiler extends Compiler { 212 class MockCompiler extends Compiler {
210 api.DiagnosticHandler diagnosticHandler; 213 api.DiagnosticHandler diagnosticHandler;
211 List<WarningMessage> warnings; 214 List<WarningMessage> warnings;
212 List<WarningMessage> errors; 215 List<WarningMessage> errors;
213 List<WarningMessage> hints; 216 List<WarningMessage> hints;
214 List<WarningMessage> infos; 217 List<WarningMessage> infos;
215 final Map<String, SourceFile> sourceFiles; 218 final Map<String, SourceFile> sourceFiles;
216 Node parsedTree; 219 Node parsedTree;
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 } else { 502 } else {
500 sourceFile = compiler.sourceFiles[uri.toString()]; 503 sourceFile = compiler.sourceFiles[uri.toString()];
501 } 504 }
502 if (sourceFile != null && begin != null && end != null) { 505 if (sourceFile != null && begin != null && end != null) {
503 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x)); 506 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x));
504 } else { 507 } else {
505 print(message); 508 print(message);
506 } 509 }
507 }; 510 };
508 } 511 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698