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

Unified Diff: tests/language/src/ConstructorNamedArgumentsTest.dart

Issue 10248007: test rename overhaul: step 8 - language 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: tests/language/src/ConstructorNamedArgumentsTest.dart
diff --git a/tests/language/src/ConstructorNamedArgumentsTest.dart b/tests/language/src/ConstructorNamedArgumentsTest.dart
deleted file mode 100644
index 6f05de91976fd77cb29e93d00fcd57c05ce98de5..0000000000000000000000000000000000000000
--- a/tests/language/src/ConstructorNamedArgumentsTest.dart
+++ /dev/null
@@ -1,52 +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.
-// Dart test program for default constructors.
-
-String message;
-
-foo() {
- message = message.concat('foo');
- return 1;
-}
-
-bar() {
- message = message.concat('bar');
- return 2;
-}
-
-class X {
- var i;
- var j;
- X([a = 'defa', b = 'defb']) : this.i = a, this.j = b;
- X.foo() : this(b: 1, a: 2);
- X.bar() : this(
- 1, /// 01: runtime error
- a: 2);
- X.baz() : this(a: 1, b: 2);
- X.qux() : this(1, 2);
- X.hest() : this();
- X.fisk() : this(b: bar(), a: foo());
- X.naebdyr() : this(a: foo(), b: bar());
-}
-
-test(x, a, b) {
- Expect.equals(x.i, a);
- Expect.equals(x.j, b);
-}
-
-main() {
- test(new X.foo(), 2, 1);
- test(new X.bar(), 2, 'defb');
- test(new X.baz(), 1, 2);
- test(new X.qux(), 1, 2);
- test(new X.hest(), 'defa', 'defb');
-
- message = '';
- new X.fisk();
- Expect.equals('barfoo', message);
-
- message = '';
- new X.naebdyr();
- Expect.equals('foobar', message);
-}
« no previous file with comments | « tests/language/src/ConstructorDuplicateInitializersTest.dart ('k') | tests/language/src/ConstructorNegativeTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698