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

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

Issue 11748017: Add synchronous directory listing to dart:io Directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments, move tests that fail on Windows due to VM bug 7157 to a separate test file. Created 7 years, 12 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/directory_invalid_arguments_test.dart
diff --git a/tests/standalone/io/directory_invalid_arguments_test.dart b/tests/standalone/io/directory_invalid_arguments_test.dart
index 262df4564533493015f8010a2fc466b674df6c67..029eccd2cc1918bde23acb34d97830309035628c 100644
--- a/tests/standalone/io/directory_invalid_arguments_test.dart
+++ b/tests/standalone/io/directory_invalid_arguments_test.dart
@@ -39,8 +39,12 @@ class DirectoryInvalidArgumentsTest {
Expect.isTrue(e is ArgumentError);
}
testFailingList(d, false);
+ Expect.throws(() => d.listSync(recursive: true),
+ (e) => e is ArgumentError);
d = new Directory(".");
testFailingList(d, 1);
+ Expect.throws(() => d.listSync(recursive: 1),
+ (e) => e is ArgumentError);
}
static void testMain() {
« no previous file with comments | « tests/standalone/io/directory_fuzz_test.dart ('k') | tests/standalone/io/directory_list_nonexistent_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698