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

Side by Side Diff: frog/tests/leg_only/closure7_test.dart

Issue 10250002: test rename overhaul: step 5 - frog and leg tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 var foo; 5 var foo;
6 bar() => foo(3, 99); 6 bar() => foo(3, 99);
7 gee(f) => foo(fun: f); 7 gee(f) => foo(fun: f);
8 8
9 get foo2() => foo; 9 get foo2() => foo;
10 bar2() => foo2(3, 99); 10 bar2() => foo2(3, 99);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 A.foo = (x, y) => x + y; 49 A.foo = (x, y) => x + y;
50 Expect.equals(102, A.bar2()); 50 Expect.equals(102, A.bar2());
51 A.foo = ([fun = null]) => fun(41); 51 A.foo = ([fun = null]) => fun(41);
52 Expect.equals(42, A.gee2((x) => x + 1)); 52 Expect.equals(42, A.gee2((x) => x + 1));
53 } 53 }
54 54
55 main() { 55 main() {
56 globalTest(); 56 globalTest();
57 staticTest(); 57 staticTest();
58 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698