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

Side by Side Diff: tests/standalone/io/platform_test.dart

Issue 899243002: Make standalone tests not dependent on current working directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove stray blank line Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/read_into_const_list_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "dart:async"; 5 import "dart:async";
6 import "dart:io"; 6 import "dart:io";
7 import "dart:isolate"; 7 import "dart:isolate";
8 8
9 import "package:async_helper/async_helper.dart"; 9 import "package:async_helper/async_helper.dart";
10 import "package:expect/expect.dart"; 10 import "package:expect/expect.dart";
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 Expect.equals("file", uri.scheme); 60 Expect.equals("file", uri.scheme);
61 Expect.isTrue(uri.path.endsWith('tests/standalone/io/platform_test.dart')); 61 Expect.isTrue(uri.path.endsWith('tests/standalone/io/platform_test.dart'));
62 Expect.equals(Platform.packageRoot, results["Platform.packageRoot"]); 62 Expect.equals(Platform.packageRoot, results["Platform.packageRoot"]);
63 Expect.listEquals(Platform.executableArguments, 63 Expect.listEquals(Platform.executableArguments,
64 results["Platform.executableArguments"]); 64 results["Platform.executableArguments"]);
65 asyncEnd(); 65 asyncEnd();
66 }); 66 });
67 } 67 }
68 68
69 main() { 69 main() {
70 // This tests assumes paths relative to dart main directory
71 Directory.current = Platform.script.resolve('../../..').toFilePath();
70 test(); 72 test();
71 testIsolate(); 73 testIsolate();
72 } 74 }
OLDNEW
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/read_into_const_list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698