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

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

Issue 140803002: Perform override and inheritance checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/warnings_checker.dart
diff --git a/tests/compiler/dart2js/warnings_checker.dart b/tests/compiler/dart2js/warnings_checker.dart
index aa84570fd2e687c845e3c570d6afcf0bdfdc99d1..fc70befa5b410c0399d2d1a549c851bd3ae633d3 100644
--- a/tests/compiler/dart2js/warnings_checker.dart
+++ b/tests/compiler/dart2js/warnings_checker.dart
@@ -29,7 +29,9 @@ void checkWarnings(Map<String, dynamic> tests, [List<String> arguments]) {
Map<int,String> expectedWarnings = {};
int lineNo = 0;
for (String line in source.split('\n')) {
- if (line.contains('///') && line.contains('static type warning')) {
+ if (line.contains('///') &&
+ (line.contains('static type warning') ||
+ line.contains('static warning'))) {
expectedWarnings[lineNo] = line;
}
lineNo++;

Powered by Google App Engine
This is Rietveld 408576698