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

Unified Diff: runtime/tests/vm/dart/isolate_mirror_local_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 | « runtime/lib/isolate_patch.dart ('k') | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tests/vm/dart/isolate_mirror_local_test.dart
diff --git a/runtime/tests/vm/dart/isolate_mirror_local_test.dart b/runtime/tests/vm/dart/isolate_mirror_local_test.dart
index 6d1827db74bbd9696512d7fdd6b9fd4fb42dd4c7..772ce66a2e769619ef9503c4b967dfc0e9c091be 100644
--- a/runtime/tests/vm/dart/isolate_mirror_local_test.dart
+++ b/runtime/tests/vm/dart/isolate_mirror_local_test.dart
@@ -478,13 +478,13 @@ void testMirrorErrors(MirrorSystem mirrors) {
// Should not reach here.
Expect.isTrue(false);
})
- .catchError((exc) {
- Expect.isTrue(exc.error is MirroredUncaughtExceptionError);
+ .catchError((error) {
+ Expect.isTrue(error is MirroredUncaughtExceptionError);
Expect.equals(const Symbol('MyException'),
- exc.error.exception_mirror.type.simpleName);
+ error.exception_mirror.type.simpleName);
Expect.equals('MyException: from methodWithException',
- exc.error.exception_string);
- Expect.isTrue(exc.error.stacktrace.toString().contains(
+ error.exception_string);
+ Expect.isTrue(error.stacktrace.toString().contains(
'isolate_mirror_local_test.dart'));
testDone('testMirrorErrors1');
});
@@ -494,9 +494,9 @@ void testMirrorErrors(MirrorSystem mirrors) {
// Should not reach here.
Expect.isTrue(false);
})
- .catchError((exc) {
- Expect.isTrue(exc.error is MirroredCompilationError);
- Expect.isTrue(exc.error.message.contains('unexpected token'));
+ .catchError((error) {
+ Expect.isTrue(error is MirroredCompilationError);
+ Expect.isTrue(error.message.contains('unexpected token'));
testDone('testMirrorErrors2');
});
@@ -508,9 +508,9 @@ void testMirrorErrors(MirrorSystem mirrors) {
// Should not reach here.
Expect.isTrue(false);
})
- .catchError((exc) {
- Expect.isTrue(exc.error is MirroredCompilationError);
- Expect.isTrue(exc.error.message.contains(
+ .catchError((error) {
+ Expect.isTrue(error is MirroredCompilationError);
+ Expect.isTrue(error.message.contains(
"did not find top-level function 'methodNotFound'"));
testDone('testMirrorErrors3');
});
« no previous file with comments | « runtime/lib/isolate_patch.dart ('k') | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698