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

Unified Diff: dart/tests/compiler/dart2js/mock_compiler.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
« no previous file with comments | « dart/tests/compiler/dart2js/compiler_helper.dart ('k') | dart/tests/compiler/dart2js/parser_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js/mock_compiler.dart
diff --git a/dart/tests/compiler/dart2js/mock_compiler.dart b/dart/tests/compiler/dart2js/mock_compiler.dart
index 97bbadec3c2512056ff188628aa5989eb7a3e8b4..e1379387f7cab1210f845aa121724f9ada3f9a4a 100644
--- a/dart/tests/compiler/dart2js/mock_compiler.dart
+++ b/dart/tests/compiler/dart2js/mock_compiler.dart
@@ -74,7 +74,7 @@ class MockCompiler extends Compiler {
: warnings = [], errors = [],
sourceFiles = new Map<String, SourceFile>(),
super() {
- Uri uri = new Uri(scheme: "source");
+ Uri uri = new Uri.fromComponents(scheme: "source");
var script = new Script(uri, new MockFile(coreSource));
coreLibrary = new LibraryElement(script);
parseScript(coreSource, coreLibrary);
@@ -199,7 +199,7 @@ void importLibrary(LibraryElement target, LibraryElement imported,
}
LibraryElement mockLibrary(Compiler compiler, String source) {
- Uri uri = new Uri(scheme: "source");
+ Uri uri = new Uri.fromComponents(scheme: "source");
var library = new LibraryElement(new Script(uri, new MockFile(source)));
importLibrary(library, compiler.coreLibrary, compiler);
return library;
« no previous file with comments | « dart/tests/compiler/dart2js/compiler_helper.dart ('k') | dart/tests/compiler/dart2js/parser_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698