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

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

Issue 1187053005: Fix checked mode errors in previous commit (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_write_only_test.dart
diff --git a/tests/standalone/io/file_write_only_test.dart b/tests/standalone/io/file_write_only_test.dart
index c06be4741ef80a9a58aa2ec1b7ce16f26b92d8f5..ed7be4d154df7c42cbc6f75fd8def7bdc476c494 100644
--- a/tests/standalone/io/file_write_only_test.dart
+++ b/tests/standalone/io/file_write_only_test.dart
@@ -19,7 +19,7 @@ Future withTempDir(String prefix, void test(Directory dir)) async {
}
}
-void withTempDirSync(String prefix, void test(Directory dir)) async {
+void withTempDirSync(String prefix, void test(Directory dir)) {
var tempDir = Directory.systemTemp.createTempSync(prefix);
try {
test(tempDir);
@@ -28,7 +28,7 @@ void withTempDirSync(String prefix, void test(Directory dir)) async {
}
}
-Futire expectThrowsAsync(Future future, String message) {
+Future expectThrowsAsync(Future future, String message) {
return future.then((r) => Expect.fail(message))
.catchError((e) {});
}
@@ -54,7 +54,7 @@ Future write(Directory dir) async {
Expect.equals(f.lengthSync(), 10);
}
-Future writeSync(Directory dir) {
+void writeSync(Directory dir) {
var f = new File('x');
var raf = f.openSync(mode: WRITE_ONLY);
raf.writeStringSync('Hello');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698