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

Unified Diff: tests/compiler/dart2js_extra/closure5_test.dart

Issue 11227038: Fix and reenable dart2js extra tests and dart2js native tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « tests/compiler/dart2js_extra/closure3_test.dart ('k') | tests/compiler/dart2js_extra/closure6_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/closure5_test.dart
===================================================================
--- tests/compiler/dart2js_extra/closure5_test.dart (revision 13907)
+++ tests/compiler/dart2js_extra/closure5_test.dart (working copy)
@@ -4,7 +4,7 @@
class A {
foo() => 499;
- bar([a = 1, b = 7, c = 99]) => a + b + c;
+ bar({a: 1, b: 7, c: 99}) => a + b + c;
toto() => bar;
gee(f) => f(toto);
}
@@ -15,9 +15,9 @@
Expect.equals(499, foo());
var bar = a.bar;
Expect.equals(107, bar());
- Expect.equals(3, bar(1, 1, 1));
+ Expect.equals(3, bar(a: 1, b: 1, c: 1));
Expect.equals(10, bar(c: 2));
var toto = a.toto;
var gee = a.gee;
- Expect.equals(-10, gee((f) => f()(-1, -2, c: -7)));
+ Expect.equals(-10, gee((f) => f()(a: -1, b: -2, c: -7)));
}
« no previous file with comments | « tests/compiler/dart2js_extra/closure3_test.dart ('k') | tests/compiler/dart2js_extra/closure6_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698