Index: tests/compiler/dart2js/warnings_checker.dart |
diff --git a/tests/compiler/dart2js/warnings_checker.dart b/tests/compiler/dart2js/warnings_checker.dart |
index 8e6d531aff6139c84bdc64239c772fe927b1ffcd..d6009710a8d9d6cd6013ecbb8dc02de48d0fb0e2 100644 |
--- a/tests/compiler/dart2js/warnings_checker.dart |
+++ b/tests/compiler/dart2js/warnings_checker.dart |
@@ -59,7 +59,7 @@ void checkWarnings(Map<String, dynamic> tests, [List<String> arguments]) { |
} |
for (CollectedMessage message in collector.warnings) { |
Expect.equals(uri, message.uri); |
- int lineNo = file.getLine(message.begin); |
+ int lineNo = file.getLocation(message.begin).line - 1; |
if (expectedWarnings.containsKey(lineNo)) { |
unseenWarnings.remove(lineNo); |
} else if (!unexpectedStatus.contains(lineNo + 1)) { |