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

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

Issue 24493006: Implement named arguments in InstanceMirror.invoke. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Tweaked test to get a little test coverage 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
« no previous file with comments | « dart/tests/lib/mirrors/invoke_named_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/lib/mirrors/invoke_test.dart
diff --git a/dart/tests/lib/mirrors/invoke_test.dart b/dart/tests/lib/mirrors/invoke_test.dart
index 3ba673251c86818595b68a6e6473f58de17bef7a..2d225d18499e52590536bd2887b7d83491db123a 100644
--- a/dart/tests/lib/mirrors/invoke_test.dart
+++ b/dart/tests/lib/mirrors/invoke_test.dart
@@ -6,6 +6,8 @@ library test.invoke_test;
import 'dart:mirrors';
+import 'dart:async' show Future;
+
import 'package:expect/expect.dart';
import "package:async_helper/async_helper.dart";
@@ -18,7 +20,7 @@ class C {
set setter(v) => field = 'set $v';
method(x, y, z) => '$x+$y+$z';
toString() => 'a C';
-
+
noSuchMethod(invocation) => 'DNU';
static var staticField = 'initial';
@@ -34,7 +36,7 @@ libraryFunction(x,y) => '$x$y';
Future expectValueThen(Future future, Function onValue) {
asyncStart();
- wrappedOnValue(resultIn) {
+ wrappedOnValue(resultIn) {
var resultOut = onValue(resultIn);
asyncEnd();
return resultOut;
@@ -47,7 +49,7 @@ Future expectValueThen(Future future, Function onValue) {
Future expectError(Future future, Function errorPredicate, String reason) {
asyncStart();
- onValue(result) {
+ onValue(result) {
Expect.fail("Error expected ($reason)");
}
onError(e) {
@@ -273,7 +275,7 @@ testAsync() {
}).then((result) {
Expect.equals('sbar', result.reflectee);
Expect.equals('sbar', C.staticField);
- return cm.setFieldAsync(const Symbol('staticField'), im);;
+ return cm.setFieldAsync(const Symbol('staticField'), im);
}).then((result) {
Expect.equals(im.reflectee, result.reflectee);
Expect.equals(c, C.staticField);
« no previous file with comments | « dart/tests/lib/mirrors/invoke_named_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698