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

Unified Diff: tests/compiler/dart2js/sourcemaps/stacktrace_test.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
« no previous file with comments | « tests/compiler/dart2js/sourcemaps/mapping_test.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/sourcemaps/stacktrace_test.dart
diff --git a/tests/compiler/dart2js/sourcemaps/stacktrace_test.dart b/tests/compiler/dart2js/sourcemaps/stacktrace_test.dart
index 2a4589ba1ac8a417e6e732b2999ca1c7b8ea5c82..6bd7621b47c6f648d3933424d7833558a4e1a58f 100644
--- a/tests/compiler/dart2js/sourcemaps/stacktrace_test.dart
+++ b/tests/compiler/dart2js/sourcemaps/stacktrace_test.dart
@@ -209,14 +209,10 @@ class Test {
Test(this.code, this.expectedLines, this.unexpectedLines);
}
-const int _LF = 0x0A;
-const int _CR = 0x0D;
-const int _LBRACE = 0x7B;
-
Test processTestCode(String code) {
Map<int, StackTraceLine> stackTraceMap = <int, StackTraceLine>{};
List<StackTraceLine> unexpectedLines = <StackTraceLine>[];
- AnnotatedCode annotatedCode = new AnnotatedCode(code);
+ AnnotatedCode annotatedCode = new AnnotatedCode.fromText(code);
for (Annotation annotation in annotatedCode.annotations) {
int colonIndex = annotation.text.indexOf(':');
String indexText = annotation.text.substring(0, colonIndex);
« no previous file with comments | « tests/compiler/dart2js/sourcemaps/mapping_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698