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

Unified Diff: tests/lib/mirrors/invoke_call_through_getter_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_getter_test.dart
diff --git a/tests/lib/mirrors/invoke_call_through_getter_test.dart b/tests/lib/mirrors/invoke_call_through_getter_test.dart
index a4afdd6599f04162e4da0d738ad0e96d1dd08798..c0652994698bf4c010a674d02020b742545a4ba2 100644
--- a/tests/lib/mirrors/invoke_call_through_getter_test.dart
+++ b/tests/lib/mirrors/invoke_call_through_getter_test.dart
@@ -51,14 +51,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 {
@@ -90,8 +90,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);
}
@@ -123,8 +123,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);
}

Powered by Google App Engine
This is Rietveld 408576698