Index: tests/compiler/dart2js/warnings_checker.dart |
diff --git a/tests/compiler/dart2js/warnings_checker.dart b/tests/compiler/dart2js/warnings_checker.dart |
index 396f6b4a68cd65501b651d8f71856b8597ef9729..e1dba07546fa5be6b760c83d7626b6534a9960f0 100644 |
--- a/tests/compiler/dart2js/warnings_checker.dart |
+++ b/tests/compiler/dart2js/warnings_checker.dart |
@@ -25,7 +25,7 @@ void checkWarnings(Map<String, dynamic> tests, [List<String> arguments]) { |
Uri uri = script.resolve('../../$test'); |
String source = UTF8.decode(readAll(uriPathToNative(uri.path))); |
SourceFile file = new StringSourceFile( |
- relativize(currentDirectory, uri, isWindows), source); |
+ uri, relativize(currentDirectory, uri, isWindows), source); |
Map<int,String> expectedWarnings = {}; |
int lineNo = 0; |
for (String line in source.split('\n')) { |