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

Unified Diff: tests/html/fileapi_test.dart

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 8 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/compiler/dart2js/analyze_only_test.dart ('k') | tests/html/xhr_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/fileapi_test.dart
diff --git a/tests/html/fileapi_test.dart b/tests/html/fileapi_test.dart
index 697f17603f1c1d2a3a79b459c3f658ef322a97e0..bc2e254385de8360a524e47179f8aa308fc76756 100644
--- a/tests/html/fileapi_test.dart
+++ b/tests/html/fileapi_test.dart
@@ -44,8 +44,8 @@ main() {
test('directoryDoesntExist', () {
return fs.root.getDirectory(
'directory2')
- .catchError((e) {
- expect(e.error.code, equals(FileError.NOT_FOUND_ERR));
+ .catchError((error) {
+ expect(error.code, equals(FileError.NOT_FOUND_ERR));
}, test: (e) => e is FileError);
});
@@ -66,8 +66,8 @@ main() {
test('fileDoesntExist', () {
return fs.root.getFile(
'file2')
- .catchError((e) {
- expect(e.error.code, equals(FileError.NOT_FOUND_ERR));
+ .catchError((error) {
+ expect(error.code, equals(FileError.NOT_FOUND_ERR));
}, test: (e) => e is FileError);
});
@@ -152,8 +152,8 @@ main() {
expect(entry.name, 'movedFile');
expect(entry.fullPath, '/directory3/movedFile');
return fs.root.getFile('file4');
- }).catchError((e) {
- expect(e.error.code, equals(FileError.NOT_FOUND_ERR));
+ }).catchError((error) {
+ expect(error.code, equals(FileError.NOT_FOUND_ERR));
}, test: (e) => e is FileError);
});
« no previous file with comments | « tests/compiler/dart2js/analyze_only_test.dart ('k') | tests/html/xhr_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698