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

Unified Diff: tests/compiler/dart2js_extra/deferred/deferred_class_test.dart

Issue 232563006: Insert checks before deferred calls and accesses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Correct update to co19 Created 6 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/co19/co19-dart2js.status ('k') | tests/compiler/dart2js_extra/deferred/deferred_function_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/deferred/deferred_class_test.dart
diff --git a/tests/compiler/dart2js_extra/deferred/deferred_class_test.dart b/tests/compiler/dart2js_extra/deferred/deferred_class_test.dart
index 5df6c73438f3a1ddd156a015bbf363b69ea54711..ff7e328e82486257caca7a635dae71c19581a47a 100644
--- a/tests/compiler/dart2js_extra/deferred/deferred_class_test.dart
+++ b/tests/compiler/dart2js_extra/deferred/deferred_class_test.dart
@@ -11,11 +11,11 @@ import 'dart:async';
const lazy = const DeferredLibrary('deferred_class_library');
-isNoSuchMethodError(e) => e is NoSuchMethodError;
+isError(e) => e is Error;
main() {
var x;
- Expect.throws(() { x = new lib.MyClass(); }, isNoSuchMethodError);
+ Expect.throws(() { x = new lib.MyClass(); }, isError);
Expect.isNull(x);
int counter = 0;
asyncStart();
@@ -38,6 +38,6 @@ main() {
});
Expect.equals(0, counter);
Expect.isNull(x);
- Expect.throws(() { x = new lib.MyClass(); }, isNoSuchMethodError);
+ Expect.throws(() { x = new lib.MyClass(); }, isError);
Expect.isNull(x);
}
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/compiler/dart2js_extra/deferred/deferred_function_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698