Index: tests/compiler/dart2js/unparser2_test.dart |
diff --git a/tests/compiler/dart2js/unparser2_test.dart b/tests/compiler/dart2js/unparser2_test.dart |
index e2eb006fb443ed0b76845200f47021a1f1f5b794..cd0d458f2ca4226c04f408aa81cbeccf50026515 100644 |
--- a/tests/compiler/dart2js/unparser2_test.dart |
+++ b/tests/compiler/dart2js/unparser2_test.dart |
@@ -60,7 +60,7 @@ String doUnparse(String source) { |
Script script = new Script(null, null); |
LibraryElement lib = new LibraryElementX(script); |
CompilationUnitElement element = new CompilationUnitElementX(script, lib); |
- StringScanner scanner = new StringScanner(source); |
+ StringScanner scanner = new StringScanner.fromString(source); |
Token beginToken = scanner.tokenize(); |
NodeListener listener = new NodeListener(diagnosticListener, element); |
Parser parser = new Parser(listener); |