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

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

Issue 27524003: Generate tear-off closures dynamically. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r30954 Created 7 years 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
Index: dart/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
diff --git a/dart/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart b/dart/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
index fb4c28248b23b441ee943812871fc850d59a01d2..406eb4a330ca928292f6cfe7ad2dd419584bf57d 100644
--- a/dart/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
+++ b/dart/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
@@ -25,7 +25,7 @@ readFoo() {
main() {
Expect.throws(() { foo('a'); }, isNoSuchMethodError);
- Expect.isNull(readFoo());
+ Expect.throws(readFoo, isNoSuchMethodError);
int counter = 0;
asyncStart();
lazy.load().then((bool didLoad) {
@@ -48,5 +48,5 @@ main() {
});
Expect.equals(0, counter);
Expect.throws(() { foo('a'); }, isNoSuchMethodError);
- Expect.isNull(readFoo());
+ Expect.throws(readFoo, isNoSuchMethodError);
}

Powered by Google App Engine
This is Rietveld 408576698