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

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

Issue 17406010: Move getters from Options to Platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed Dart_GetType Created 7 years, 6 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/test_extension_fail_test.dart
diff --git a/tests/standalone/io/test_extension_fail_test.dart b/tests/standalone/io/test_extension_fail_test.dart
index 96d0a3a542969ebda115dad3aee60b5ca86904b3..aa10592db3c32fd7e277bacc49325e1ab89e4c24 100644
--- a/tests/standalone/io/test_extension_fail_test.dart
+++ b/tests/standalone/io/test_extension_fail_test.dart
@@ -37,10 +37,8 @@ Path getExtensionPath(Path buildDirectory) {
}
void main() {
- Options options = new Options();
-
- Path scriptDirectory = new Path(options.script).directoryPath;
- Path buildDirectory = new Path(options.executable).directoryPath;
+ Path scriptDirectory = new Path(Platform.script).directoryPath;
+ Path buildDirectory = new Path(Platform.executable).directoryPath;
Directory tempDirectory = new Directory('').createTempSync();
Path testDirectory = new Path(tempDirectory.path);
@@ -56,7 +54,7 @@ void main() {
return copyFileToDirectory(testExtensionTesterFile, testDirectory);
}).then((_) {
Path script = testDirectory.append('test_extension_fail_tester.dart');
- return Process.run(options.executable, [script.toNativePath()]);
+ return Process.run(Platform.executable, [script.toNativePath()]);
}).then((ProcessResult result) {
print("ERR: ${result.stderr}\n\n");
print("OUT: ${result.stdout}\n\n");
« no previous file with comments | « tests/standalone/io/socket_upgrade_to_secure_test.dart ('k') | tests/standalone/io/test_extension_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698