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

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

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 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/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);

Powered by Google App Engine
This is Rietveld 408576698