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

Unified Diff: tests/compiler/dart2js/inference/inference_test_helper.dart

Issue 2667983002: Add test for expected source mappings (Closed)
Patch Set: Update comment. Created 3 years, 11 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
Index: tests/compiler/dart2js/inference/inference_test_helper.dart
diff --git a/tests/compiler/dart2js/inference/inference_test_helper.dart b/tests/compiler/dart2js/inference/inference_test_helper.dart
index 4a916afe0df34900c57938c3e3e1b98c32664275..43fb2cc643f27283b50701d16fbc97d69c82104a 100644
--- a/tests/compiler/dart2js/inference/inference_test_helper.dart
+++ b/tests/compiler/dart2js/inference/inference_test_helper.dart
@@ -15,7 +15,7 @@ import '../memory_compiler.dart';
import 'enumerator.dart';
checkCode(String annotatedCode) async {
- AnnotatedCode code = new AnnotatedCode(annotatedCode);
+ AnnotatedCode code = new AnnotatedCode.fromText(annotatedCode);
Map<Id, String> expectedMap = computeExpectedMap(code);
Compiler compiler =
compilerFor(memorySourceFiles: {'main.dart': code.sourceCode});
« no previous file with comments | « tests/compiler/dart2js/annotated_code_helper.dart ('k') | tests/compiler/dart2js/sourcemaps/mapping_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698