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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « tests/standalone/io/directory_error_test.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/directory_fuzz_test.dart
diff --git a/tests/standalone/io/directory_fuzz_test.dart b/tests/standalone/io/directory_fuzz_test.dart
index dd6fe0d14736046a28ed3f434d3e7f69b96a4e80..116f91802f24d9bd3dd7baf623fb9229520ba330 100644
--- a/tests/standalone/io/directory_fuzz_test.dart
+++ b/tests/standalone/io/directory_fuzz_test.dart
@@ -5,10 +5,11 @@
// 'fuzz' test the directory APIs by providing unexpected type
// arguments. The test passes if the VM does not crash.
-import "dart:io";
-import "dart:isolate";
+import 'dart:async';
+import 'dart:io';
+import 'dart:isolate';
-import "fuzz_support.dart";
+import 'fuzz_support.dart';
fuzzSyncMethods() {
typeMapping.forEach((k, v) {
@@ -44,12 +45,12 @@ fuzzAsyncMethods() {
futures.add(doItAsync(d.create));
futures.add(doItAsync(d.delete));
futures.add(doItAsync(() {
- return d.createTemp().chain((temp) {
+ return d.createTemp().then((temp) {
return temp.delete();
});
}));
futures.add(doItAsync(() {
- return d.exists().chain((res) {
+ return d.exists().then((res) {
if (!res) return d.delete(recursive: true);
return new Future.immediate(true);
});
« no previous file with comments | « tests/standalone/io/directory_error_test.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698