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

Unified Diff: tests/standalone/io/test_extension_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_test.dart
diff --git a/tests/standalone/io/test_extension_test.dart b/tests/standalone/io/test_extension_test.dart
index 9961daf58c641f750192dcf2df38fd6615952ef3..f4b73c8f6bc28099b831ffd01e3f42e1248b698a 100644
--- a/tests/standalone/io/test_extension_test.dart
+++ b/tests/standalone/io/test_extension_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_tester.dart');
- return Process.run(options.executable, [script.toNativePath()]);
+ return Process.run(Platform.executable, [script.toNativePath()]);
})..then((ProcessResult result) {
Expect.equals(0, result.exitCode);
tempDirectory.deleteSync(recursive: true);
« no previous file with comments | « tests/standalone/io/test_extension_fail_test.dart ('k') | tests/standalone/io/test_runner_exit_code_script.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698