Index: tests/try/poi/library_updater_test.dart |
diff --git a/tests/try/poi/library_updater_test.dart b/tests/try/poi/library_updater_test.dart |
index dbaea15e9836f304e02d8623800a38423c5425da..8513442fa1003064dbe1bd3492d8dceea7fe95ac 100644 |
--- a/tests/try/poi/library_updater_test.dart |
+++ b/tests/try/poi/library_updater_test.dart |
@@ -23,7 +23,7 @@ void nolog(_) {} |
Script newScriptFrom(LibraryElement library, String newSource) { |
Script script = library.entryCompilationUnit.script; |
return script.copyWithFile( |
- new StringSourceFile(script.file.filename, newSource)); |
+ new StringSourceFile.fromUri(script.file.uri, newSource)); |
} |
class LibraryUpdaterTestCase extends CompilerTestCase { |