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

Unified Diff: tests/standalone/io/secure_socket_renegotiate_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/standalone/io/secure_socket_renegotiate_test.dart
diff --git a/tests/standalone/io/secure_socket_renegotiate_test.dart b/tests/standalone/io/secure_socket_renegotiate_test.dart
index 922e9d08dd5f6ea5544eedd99ccba6c4c8587d38..595dd0d0ac25e552b7256c0b5c82d6cdc5ad10ea 100644
--- a/tests/standalone/io/secure_socket_renegotiate_test.dart
+++ b/tests/standalone/io/secure_socket_renegotiate_test.dart
@@ -17,7 +17,7 @@ const HOST_NAME = "localhost";
const CERTIFICATE = "localhost_cert";
-String certificateDatabase() => join(dirname(Platform.script), 'pkcert');
+String certificateDatabase() => Platform.script.resolve('pkcert').toFilePath();
Future<SecureServerSocket> runServer() {
@@ -65,8 +65,9 @@ Future<SecureServerSocket> runServer() {
void main() {
runServer()
.then((SecureServerSocket server) {
- var clientScript =
- Platform.script.replaceFirst("_test.dart", "_client.dart");
+ var clientScript = Platform.script
+ .toFilePath()
+ .replaceFirst("_test.dart", "_client.dart");
Expect.isTrue(clientScript.endsWith("_client.dart"));
Process.run(Platform.executable,
[clientScript,

Powered by Google App Engine
This is Rietveld 408576698