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

Unified Diff: tests/standalone/io/platform_test.dart

Issue 37033002: dart:io | Remove uses of Options class from standalone tests. Mark Options deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove commented lines from standalone.status. 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_unauthorized_test.dart ('k') | tests/standalone/io/print_env.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/platform_test.dart
diff --git a/tests/standalone/io/platform_test.dart b/tests/standalone/io/platform_test.dart
index 6c009e889c0013f0b924338e6296407603169ccd..1bcfbd7b9619f165ed1207973a031e8186f8d115 100644
--- a/tests/standalone/io/platform_test.dart
+++ b/tests/standalone/io/platform_test.dart
@@ -48,12 +48,6 @@ void f() {
if (msg == "Platform.executableArguments") {
reply.send(Platform.executableArguments);
}
- if (msg == "new Options().executable") {
- reply.send(new Options().executable);
- }
- if (msg == "new Options().script") {
- reply.send(new Options().script);
- }
if (msg == "close") {
reply.send("closed");
port.close();
@@ -67,14 +61,10 @@ testIsolate() {
Future.wait([sendPort.call("Platform.executable"),
sendPort.call("Platform.script"),
sendPort.call("Platform.packageRoot"),
- sendPort.call("Platform.executableArguments"),
- sendPort.call("new Options().executable"),
- sendPort.call("new Options().script")])
+ sendPort.call("Platform.executableArguments")])
.then((results) {
Expect.equals(Platform.executable, results[0]);
- Expect.equals(Platform.executable, results[4]);
Uri uri = Uri.parse(results[1]);
- Expect.equals(uri, Uri.parse(results[5]));
Expect.equals("file", uri.scheme);
Expect.isTrue(uri.path.endsWith('tests/standalone/io/platform_test.dart'));
Expect.equals(Platform.packageRoot, results[2]);
« no previous file with comments | « tests/standalone/io/https_unauthorized_test.dart ('k') | tests/standalone/io/print_env.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698