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

Unified Diff: tests/standalone/precompilation_dart2js_test.dart

Issue 1536043002: - Fix more bad uses of Platform.packageRoot. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « tests/compiler/dart2js/memory_compiler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/precompilation_dart2js_test.dart
diff --git a/tests/standalone/precompilation_dart2js_test.dart b/tests/standalone/precompilation_dart2js_test.dart
index 303c95576f1ddf1f2d103891a1be0f208104641c..5d3900ee34655d03c05696aab9e33780b647d6ee 100644
--- a/tests/standalone/precompilation_dart2js_test.dart
+++ b/tests/standalone/precompilation_dart2js_test.dart
@@ -43,8 +43,7 @@ main(List args) {
return;
}
- var pkgRoot = Uri.parse(Platform.packageRoot);
- var abs_package_root = new File.fromUri(pkgRoot).absolute.path;
+ var abs_package_root = Uri.parse(Platform.packageRoot).toFilePath();
Lasse Reichstein Nielsen 2015/12/18 16:17:51 This code will still fail if Platform.packageRoot
var dart_executable =
Directory.current.path + Platform.pathSeparator + Platform.executable;
Directory tmp;
« no previous file with comments | « tests/compiler/dart2js/memory_compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698