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

Unified Diff: pkg/http_server/test/utils.dart

Issue 52723007: Revert "Change dart:io Platform.script to return a Uri." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « pkg/docgen/lib/docgen.dart ('k') | pkg/scheduled_test/test/metatest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_server/test/utils.dart
diff --git a/pkg/http_server/test/utils.dart b/pkg/http_server/test/utils.dart
index 85fa8b94d5f13ce2e55cd11874ac079fe040920b..9a444e2365fdba3bf858f9ef1db3a34008138fec 100644
--- a/pkg/http_server/test/utils.dart
+++ b/pkg/http_server/test/utils.dart
@@ -58,7 +58,8 @@ const CERTIFICATE = "localhost_cert";
setupSecure() {
- String certificateDatabase = Platform.script.resolve('pkcert').toFilePath();
+ String scriptDir = dirname(Platform.script);
+ String certificateDatabase = join(scriptDir, 'pkcert');
SecureSocket.initialize(database: certificateDatabase,
password: 'dartdart');
}
« no previous file with comments | « pkg/docgen/lib/docgen.dart ('k') | pkg/scheduled_test/test/metatest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698