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

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

Issue 11412033: Rename File.readAsText to File.readAsString. There is no Text type in Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « sdk/lib/io/file_impl.dart ('k') | tests/standalone/io/file_fuzz_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_error_test.dart
diff --git a/tests/standalone/io/file_error_test.dart b/tests/standalone/io/file_error_test.dart
index 4a6a30989150809fbb4fead9543f710a6072d233..3c8d08431919800ac5fe968e37f2757ec5d04fdc 100644
--- a/tests/standalone/io/file_error_test.dart
+++ b/tests/standalone/io/file_error_test.dart
@@ -273,12 +273,12 @@ void testReadAsTextNonExistent() {
var file = new File("${temp.path}/nonExistentFile4");
// Non-existing file should throw exception.
- Expect.throws(() => file.readAsTextSync(),
+ Expect.throws(() => file.readAsStringSync(),
(e) => checkOpenNonExistentFileException(e));
- var readAsTextFuture = file.readAsText(Encoding.ASCII);
- readAsTextFuture.then((data) => Expect.fail("Unreachable code"));
- readAsTextFuture.handleException((e) {
+ var readAsStringFuture = file.readAsString(Encoding.ASCII);
+ readAsStringFuture.then((data) => Expect.fail("Unreachable code"));
+ readAsStringFuture.handleException((e) {
checkOpenNonExistentFileException(e);
p.toSendPort().send(null);
return true;
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | tests/standalone/io/file_fuzz_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698