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

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

Issue 25687003: IssueRead for DirectoryWatcherHandle as soon as the watcher starts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/file_system_watcher_test.dart
diff --git a/tests/standalone/io/file_system_watcher_test.dart b/tests/standalone/io/file_system_watcher_test.dart
index fef2d6ea333067868623bf5abb40214697cd8471..41f494894e21fc71109ed737b997bf0b22bb1af8 100644
--- a/tests/standalone/io/file_system_watcher_test.dart
+++ b/tests/standalone/io/file_system_watcher_test.dart
@@ -29,7 +29,7 @@ void testWatchCreateFile() {
throw e;
});
- runAsync(file.createSync);
+ file.createSync();
}
@@ -54,7 +54,7 @@ void testWatchModifyFile() {
throw e;
});
- runAsync(() => file.writeAsStringSync('a'));
+ file.writeAsStringSync('a');
}
@@ -82,7 +82,7 @@ void testWatchMoveFile() {
throw e;
});
- runAsync(() => file.renameSync(dir.path + '/file2'));
+ file.renameSync(dir.path + '/file2');
}
@@ -107,7 +107,7 @@ void testWatchDeleteFile() {
throw e;
});
- runAsync(file.deleteSync);
+ file.deleteSync();
}
@@ -130,10 +130,8 @@ void testWatchOnlyModifyFile() {
throw e;
});
- runAsync(() {
- file.createSync();
- file.writeAsStringSync('a');
- });
+ file.createSync();
+ file.writeAsStringSync('a');
}
@@ -175,12 +173,10 @@ void testMultipleEvents() {
state = newState;
});
- runAsync(() {
- file.createSync();
- file.writeAsStringSync('a');
- file.renameSync(file2.path);
- file2.deleteSync();
- });
+ file.createSync();
+ file.writeAsStringSync('a');
+ file.renameSync(file2.path);
+ file2.deleteSync();
}
@@ -209,7 +205,7 @@ void testWatchRecursive() {
throw e;
});
- runAsync(file.createSync());
+ file.createSync();
}
@@ -232,7 +228,7 @@ void testWatchNonRecursive() {
throw e;
});
- runAsync(file.createSync);
+ file.createSync();
new Timer(const Duration(milliseconds: 300), () {
sub.cancel();
« runtime/bin/file_system_watcher_win.cc ('K') | « runtime/bin/file_system_watcher_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698