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

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

Issue 24745003: Implement invoking methods with optional arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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: dart/tests/lib/mirrors/invoke_named_test.dart
diff --git a/dart/tests/lib/mirrors/invoke_named_test.dart b/dart/tests/lib/mirrors/invoke_named_test.dart
index 7da881bbe78770e20527becccccb2d767adc1a77..da0b54b2c2c5b69f8be767e7190eef2f30205bea 100644
--- a/dart/tests/lib/mirrors/invoke_named_test.dart
+++ b/dart/tests/lib/mirrors/invoke_named_test.dart
@@ -77,7 +77,6 @@ testSyncInvoke(ObjectMirror om) {
isNoSuchMethodError,
'Unmatched named argument');
- if (!isDart2js) {
result = om.invoke(const Symbol('c'), ['X']);
Expect.equals('X-null-C', result.reflectee);
result = om.invoke(const Symbol('c'), ['X', 'Y']);
@@ -108,7 +107,6 @@ testSyncInvoke(ObjectMirror om) {
Expect.throws(() => om.invoke(const Symbol('d'), ['X'], {const Symbol('undef'): 'Y'}),
isNoSuchMethodError,
'Unmatched named argument');
- }
result = om.invoke(const Symbol('e'), ['X', 'Y', 'Z']);
Expect.equals('X-Y-Z', result.reflectee);
@@ -163,7 +161,6 @@ testAsyncInvoke(ObjectMirror om) {
future = om.invokeAsync(const Symbol('b'), ['X'], {const Symbol('undef'): 'Y'});
expectError(future, isNoSuchMethodError, 'Unmatched named argument');
- if (!isDart2js) {
future = om.invokeAsync(const Symbol('c'), ['X']);
expectValueThen(future, (result) {
Expect.equals('X-null-C', result.reflectee);
@@ -204,7 +201,6 @@ testAsyncInvoke(ObjectMirror om) {
expectError(future, isNoSuchMethodError, 'Extra positional arguments');
future = om.invokeAsync(const Symbol('d'), ['X'], {const Symbol('undef'): 'Y'});
expectError(future, isNoSuchMethodError, 'Unmatched named argument');
- }
future = om.invokeAsync(const Symbol('e'), ['X', 'Y', 'Z']);
expectValueThen(future, (result) {

Powered by Google App Engine
This is Rietveld 408576698