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

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

Issue 12812010: dart:io | Add Link.targetSync on all platforms. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix memory leak. Improve OS error for Link.target of a non-link. Created 7 years, 9 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/link_test.dart
diff --git a/tests/standalone/io/link_test.dart b/tests/standalone/io/link_test.dart
index afcffb84eaccaf829003a56d1d7eb167ef4b608a..6a404c05cc645d34aac300aadfb80f32d12a7195 100644
--- a/tests/standalone/io/link_test.dart
+++ b/tests/standalone/io/link_test.dart
@@ -28,6 +28,8 @@ testCreateSync() {
Expect.isTrue(new Directory(target).existsSync());
Expect.isTrue(new Link(link).existsSync());
Expect.isFalse(new Link(target).existsSync());
+ Expect.equals(target, new Link(link).targetSync());
+ Expect.throws(() => new Link(target).targetSync());
String createdThroughLink =
base.append('link/createdThroughLink').toNativePath();

Powered by Google App Engine
This is Rietveld 408576698