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

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

Issue 10850015: Changed default Uri constructor to Uri.fromComponents(), new default constructor is Uri.fromString(… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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: dart/tests/compiler/dart2js/parser_helper.dart
diff --git a/dart/tests/compiler/dart2js/parser_helper.dart b/dart/tests/compiler/dart2js/parser_helper.dart
index 899f4654e8afb84c34403cd075fbde52e5d5c5e8..0c1cd2b7889e91b2e6ec4677cc865e2f6f7a1382 100644
--- a/dart/tests/compiler/dart2js/parser_helper.dart
+++ b/dart/tests/compiler/dart2js/parser_helper.dart
@@ -28,7 +28,10 @@ Token scan(String text) => new StringScanner(text).tokenize();
Node parseBodyCode(String text, Function parseMethod) {
Token tokens = scan(text);
LoggerCanceler lc = new LoggerCanceler();
- Script script = new Script(new Uri(scheme: "source"), new MockFile(text));
+ Script script =
+ new Script(
+ new Uri.fromComponents(scheme: "source"),
+ new MockFile(text));
LibraryElement library = new LibraryElement(script);
library.canUseNative = true;
NodeListener listener = new NodeListener(lc, library);
@@ -62,7 +65,7 @@ class MockFile extends SourceFile {
Link<Element> parseUnit(String text, Compiler compiler,
LibraryElement library) {
Token tokens = scan(text);
- Uri uri = new Uri(scheme: "source");
+ Uri uri = new Uri.fromComponents(scheme: "source");
var script = new Script(uri, new MockFile(text));
var unit = new CompilationUnitElement(script, library);
int id = 0;
« no previous file with comments | « dart/tests/compiler/dart2js/mock_compiler.dart ('k') | dart/tests/compiler/dart2js/source_mapping_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698