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

Unified Diff: tests/standalone/io/https_unauthorized_test.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 | « tests/standalone/io/https_server_test.dart ('k') | tests/standalone/io/platform_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/https_unauthorized_test.dart
diff --git a/tests/standalone/io/https_unauthorized_test.dart b/tests/standalone/io/https_unauthorized_test.dart
index 0bb6c897ff6b54d3bd797a74f75fc72378d27098..dc3a24623e10e61f6154b58aabbba471a3fb8a36 100644
--- a/tests/standalone/io/https_unauthorized_test.dart
+++ b/tests/standalone/io/https_unauthorized_test.dart
@@ -15,7 +15,7 @@ const CERTIFICATE = "localhost_cert";
Future<SecureServerSocket> runServer() {
SecureSocket.initialize(
- database: Platform.script.resolve('pkcert').toFilePath(),
+ database: join(dirname(Platform.script), 'pkcert'),
password: 'dartdart');
return HttpServer.bindSecure(
@@ -29,9 +29,9 @@ Future<SecureServerSocket> runServer() {
}
void main() {
- var clientScript = Platform.script
- .resolve('https_unauthorized_client.dart')
- .toFilePath();
+ var clientScript = join(dirname(Platform.script),
+ 'https_unauthorized_client.dart');
+
Future clientProcess(int port) {
return Process.run(Platform.executable,
[clientScript, port.toString()])
« no previous file with comments | « tests/standalone/io/https_server_test.dart ('k') | tests/standalone/io/platform_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698