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

Unified Diff: tests/language/argument_definition3_test.dart

Issue 17977002: - Remove arguments definition test from the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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: tests/language/argument_definition3_test.dart
===================================================================
--- tests/language/argument_definition3_test.dart (revision 24474)
+++ tests/language/argument_definition3_test.dart (working copy)
@@ -1,78 +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.
-
-import "package:expect/expect.dart";
-
-main() {
- new Param.test1(false);
- new Param.test1(true, 42);
-
- new Param.test2(false);
- new Param.test2(true, 42);
-
- new Param.test3(false);
- new Param.test3(true, 42);
-
- new Param.test4();
- new Param.test5();
-
- new Param.test6(false);
- new Param.test6(true, 42);
-
- new Param.test7();
- new Param.test8();
-}
-
-class Super {
- var superField;
- var otherSuperField;
-
- Super();
- Super.withParameters(passed, op, value) {
- Expect.equals(passed, op);
- Expect.equals(passed ? 42 : 0, value);
- }
-
- Super.withOptional(passed, [int a]) : superField = ?a {
- Expect.equals(passed, ?a);
- Expect.equals(passed, superField);
- }
-
- Super.withUpdate(passed, [int a = 0])
- : superField = ?a, otherSuperField = a++ {
- Expect.equals(passed, ?a);
- Expect.equals(passed, superField);
- Expect.equals(passed ? 43 : 1, a);
- }
-}
-
-class Param extends Super {
- var field;
- var otherField;
-
- Param.test1(a_check, [int a]) {
- Expect.equals(a_check, ?a);
- }
-
- Param.test2(passed, [int a]) : field = ?a {
- Expect.equals(passed, ?a);
- Expect.equals(passed, field);
- }
-
- Param.test3(passed, [int a = 0]) : super.withParameters(passed, ?a, a) {
- Expect.equals(passed, ?a);
- }
-
- Param.test4() : super.withOptional(true, 42);
- Param.test5() : super.withOptional(false);
-
- Param.test6(passed, [int a = 0]) : field = ?a, otherField = a++ {
- Expect.equals(passed, ?a);
- Expect.equals(passed, field);
- Expect.equals(passed ? 43 : 1, a);
- }
-
- Param.test7() : super.withUpdate(true, 42);
- Param.test8() : super.withUpdate(false);
-}

Powered by Google App Engine
This is Rietveld 408576698