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

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

Issue 53313007: Change dart:io Platform.script to return a URI. Change all uses of Platform.script to work with th… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dom.py docs 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/mirrors_test.dart
diff --git a/tests/compiler/dart2js/mirrors_test.dart b/tests/compiler/dart2js/mirrors_test.dart
index 80cda92be506659dae1260a49b191e2ebe3f18a6..3536683675f625c3e7e199b06c22f56d8b1cb3e1 100644
--- a/tests/compiler/dart2js/mirrors_test.dart
+++ b/tests/compiler/dart2js/mirrors_test.dart
@@ -8,7 +8,7 @@ import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart'
import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart';
import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart';
import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'
- show currentDirectory, nativeToUriPath;
+ show currentDirectory;
import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider.dart';
import 'dart:io';
@@ -42,8 +42,7 @@ DeclarationMirror findMirror(Iterable<DeclarationMirror> list, String name) {
}
main() {
- Uri scriptUri =
- currentDirectory.resolve(nativeToUriPath(Platform.script));
+ Uri scriptUri = currentDirectory.resolveUri(Platform.script);
Uri libUri = scriptUri.resolve('../../../sdk/');
Uri inputUri = scriptUri.resolve('mirrors_helper.dart');
var provider = new CompilerSourceFileProvider();

Powered by Google App Engine
This is Rietveld 408576698