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

Unified Diff: tests/standalone/io/secure_unauthorized_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_unauthorized_test.dart
diff --git a/tests/standalone/io/secure_unauthorized_test.dart b/tests/standalone/io/secure_unauthorized_test.dart
index 400ae7eb1c49b448b0d675115c74c9971c9b20bf..453b8b1bd4bc57c5dca288096c2355fddd116cee 100644
--- a/tests/standalone/io/secure_unauthorized_test.dart
+++ b/tests/standalone/io/secure_unauthorized_test.dart
@@ -15,7 +15,7 @@ const CERTIFICATE = "localhost_cert";
Future<SecureServerSocket> runServer() {
SecureSocket.initialize(
- database: join(dirname(Platform.script), 'pkcert'),
+ database: Platform.script.resolve('pkcert').toFilePath(),
password: 'dartdart');
return SecureServerSocket.bind(HOST_NAME, 0, CERTIFICATE)
@@ -31,8 +31,9 @@ Future<SecureServerSocket> runServer() {
}
void main() {
- var clientScript = join(dirname(Platform.script),
- 'secure_unauthorized_client.dart');
+ var clientScript = Platform.script
+ .resolve('secure_unauthorized_client.dart')
+ .toFilePath();
Future clientProcess(int port) {
return Process.run(Platform.executable,

Powered by Google App Engine
This is Rietveld 408576698