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

Unified Diff: tests/standalone/src/io/DirectoryTest.dart

Issue 9630012: Error reporting on File in dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased and implemented on all platforms Created 8 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/src/io/DirectoryTest.dart
diff --git a/tests/standalone/src/io/DirectoryTest.dart b/tests/standalone/src/io/DirectoryTest.dart
index fe332737dd49446f6133d7b40804584a54412833..35bfb71ed4d020fe550cfdfd3cc3189745dca9ce 100644
--- a/tests/standalone/src/io/DirectoryTest.dart
+++ b/tests/standalone/src/io/DirectoryTest.dart
@@ -438,8 +438,8 @@ String illegalTempDirectoryLocation() {
testCreateTempErrorSync() {
var location = illegalTempDirectoryLocation();
if (location != null) {
- Expect.throws(new Directory(location).createTempSync,
- (e) => e is DirectoryException);
+ Expect.throws(() => new Directory(location).createTempSync(),
Mads Ager (google) 2012/03/13 10:56:17 Is this change needed?
Søren Gjesse 2012/03/13 12:39:49 No, reverted.
+ (e) => e is DirectoryIOException);
}
}

Powered by Google App Engine
This is Rietveld 408576698