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

Unified Diff: tests/compiler/dart2js/type_test_helper.dart

Issue 574683002: Use ConstExp for storing constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_test_helper.dart
diff --git a/tests/compiler/dart2js/type_test_helper.dart b/tests/compiler/dart2js/type_test_helper.dart
index 34fa22add132d9098210ba06d17cd856924ce1aa..c0f2e60555a8bb25342933f3d420771bc7cdee0f 100644
--- a/tests/compiler/dart2js/type_test_helper.dart
+++ b/tests/compiler/dart2js/type_test_helper.dart
@@ -52,6 +52,7 @@ class TypeEnvironment {
uri,
analyzeAll: !stopAfterTypeInference,
analyzeOnly: !stopAfterTypeInference);
+ mockCompiler.diagnosticHandler = mock.createHandler(mockCompiler, source);
getErrors = () => mockCompiler.errors;
getWarnings = () => mockCompiler.warnings;
compiler = mockCompiler;
@@ -61,7 +62,7 @@ class TypeEnvironment {
compiler = memory.compilerFor(
{'main.dart': source},
diagnosticHandler: collector,
- options: stopAfterTypeInference
+ options: stopAfterTypeInference
? [] : ['--analyze-all', '--analyze-only']);
getErrors = () => collector.errors;
getWarnings = () => collector.warnings;
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698