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

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

Issue 17638007: Create LinkExceptions using the right arguments, in dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added test 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
« no previous file with comments | « sdk/lib/io/link.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/link_test.dart
diff --git a/tests/standalone/io/link_test.dart b/tests/standalone/io/link_test.dart
index 0562cb3bb61e93d42cf5f75c44f948e310d7cb27..7bef4c55641f77018c4ea7c8b6a89645d3cf386a 100644
--- a/tests/standalone/io/link_test.dart
+++ b/tests/standalone/io/link_test.dart
@@ -173,7 +173,15 @@ testCreateLoopingLink() {
new Directory.fromPath(base).delete(recursive: true));
}
+void testLinkErrorSync() {
+ Expect.throws(() =>
+ new Link('some-dir-that-doent exist/some link file/bla/fisk').createSync(
+ 'bla bla bla/b lalal/blfir/sdfred/es'),
+ (e) => e is LinkException);
+}
+
main() {
testCreateSync();
testCreateLoopingLink();
+ testLinkErrorSync();
}
« no previous file with comments | « sdk/lib/io/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698