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

Unified Diff: tests/lib/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart

Issue 195793013: Add support for closure calls through getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix status file and remove bad type.wq 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
Index: tests/lib/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart
diff --git a/tests/lib/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart b/tests/lib/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart
index edda37cfb8cd5aea3e5b6a791c4071b6eec7e65a..a65c82d4264d5a88cf5c53b370bd3631f42d1914 100644
--- a/tests/lib/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart
+++ b/tests/lib/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart
@@ -57,14 +57,14 @@ testInstanceReflective() {
im.invoke(#closure, [9, 10]).reflectee);
Expect.equals('3 C 11 12 13 null',
im.invoke(#closureOpt, [11, 12, 13]).reflectee);
- Expect.equals('4 C 14 15 null 16',
- im.invoke(#closureNamed, [14, 15], {#w: 16}).reflectee);
+ Expect.equals('4 C 14 15 null 16', /// named: ok
+ im.invoke(#closureNamed, [14, 15], {#w: 16}).reflectee); /// named: continued
Expect.equals('DNU',
im.invoke(#doesNotExist, [17, 18]).reflectee);
- Expect.throws(() => im.invoke(#closure, ['wrong arity']),
- (e) => e is NoSuchMethodError);
- Expect.throws(() => im.invoke(#notAClosure, []),
- (e) => e is NoSuchMethodError);
+ Expect.throws(() => im.invoke(#closure, ['wrong arity']), /// getter_call_stub: ok
+ (e) => e is NoSuchMethodError); /// getter_call_stub: continued
+ Expect.throws(() => im.invoke(#notAClosure, []), /// getter_call_stub: continued
+ (e) => e is NoSuchMethodError); /// getter_call_stub: continued
}
class D {
@@ -96,8 +96,8 @@ testClassReflective() {
cm.invoke(#closure, [9, 10]).reflectee);
Expect.equals('3 11 12 13 null',
cm.invoke(#closureOpt, [11, 12, 13]).reflectee);
- Expect.equals('4 14 15 null 16',
- cm.invoke(#closureNamed, [14, 15], {#w: 16}).reflectee);
+ Expect.equals('4 14 15 null 16', /// named: continued
+ cm.invoke(#closureNamed, [14, 15], {#w: 16}).reflectee); /// named: continued
Expect.throws(() => cm.invoke(#closure, ['wrong arity']),
(e) => e is NoSuchMethodError);
}
@@ -129,8 +129,8 @@ testLibraryReflective() {
lm.invoke(#closure, [9, 10]).reflectee);
Expect.equals('3 11 12 13 null',
lm.invoke(#closureOpt, [11, 12, 13]).reflectee);
- Expect.equals('4 14 15 null 16',
- lm.invoke(#closureNamed, [14, 15], {#w: 16}).reflectee);
+ Expect.equals('4 14 15 null 16', /// named: continued
+ lm.invoke(#closureNamed, [14, 15], {#w: 16}).reflectee); /// named: continued
Expect.throws(() => lm.invoke(#closure, ['wrong arity']),
(e) => e is NoSuchMethodError);
}
« no previous file with comments | « tests/lib/mirrors/invoke_call_through_getter_test.dart ('k') | tests/lib/mirrors/invoke_closurization_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698