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

Unified Diff: frog/tests/leg_only/src/OptionalParameterTest.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/OptionalParameterTest.dart
diff --git a/frog/tests/leg_only/src/OptionalParameterTest.dart b/frog/tests/leg_only/src/OptionalParameterTest.dart
deleted file mode 100644
index 82f2f849b14d153d7952c6ea33b522dd353d3e38..0000000000000000000000000000000000000000
--- a/frog/tests/leg_only/src/OptionalParameterTest.dart
+++ /dev/null
@@ -1,28 +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.
-
-class A {
- foo([a]) {
- return a;
- }
-
- bar(a, [b]) {
- return b;
- }
-
- noSuchMethod(name, args) {
- return 0;
- }
-}
-
-main() {
- A a = new A();
- Expect.equals(42, a.foo(42));
- Expect.equals(null, a.foo());
- Expect.equals(null, a.bar(42));
- Expect.equals(42, a.bar(null, 42));
- Expect.equals(0, a.foo(1, 2));
- Expect.equals(0, a.bar());
- Expect.equals(0, a.bar(1, 2, 3));
-}

Powered by Google App Engine
This is Rietveld 408576698