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

Unified Diff: frog/tests/leg_only/src/ClosureTest.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, 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: frog/tests/leg_only/src/ClosureTest.dart
diff --git a/frog/tests/leg_only/src/ClosureTest.dart b/frog/tests/leg_only/src/ClosureTest.dart
deleted file mode 100644
index d5d5519d7397fd2c1cbb43e75c5081f1f5021d18..0000000000000000000000000000000000000000
--- a/frog/tests/leg_only/src/ClosureTest.dart
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-closure0() {
- // TODO(floitsch): remove name from functions.
- var f = fun() { return 499; };
- Expect.equals(499, f());
-}
-
-class A {
- closure1() {
- var f = fun() { return 499; };
- Expect.equals(499, f());
- }
-}
-
-applyFun(f) {
- return f();
-}
-
-closure2() {
- Expect.equals(499, applyFun(fun() { return 499; }));
-}
-
-closure3() {
- var f = fun(x) { return 400 + x; };
- Expect.equals(499, f(99));
-}
-
-applyFun2(f) {
- return f(400, 99);
-}
-
-closure4() {
- Expect.equals(499, applyFun2(fun(x, y) { return x + y; }));
-}
-
-main() {
- closure0();
- new A().closure1();
- closure2();
- closure3();
- closure4();
-}

Powered by Google App Engine
This is Rietveld 408576698