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

Unified Diff: tests/language/src/Constructor7Test.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
« no previous file with comments | « tests/language/src/Constructor6Test.dart ('k') | tests/language/src/ConstructorBodyTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/Constructor7Test.dart
diff --git a/tests/language/src/Constructor7Test.dart b/tests/language/src/Constructor7Test.dart
deleted file mode 100644
index 1d963949948cda273082dff0c84809d1cdb76ebd..0000000000000000000000000000000000000000
--- a/tests/language/src/Constructor7Test.dart
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2011, 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 constructors and initializers.
-
-// Expect the initializer expressions E(i) to be evaluated
-// in the order 1, 2, 3, ...
-// This test has no inheritance but many fields to flush out issues with
-// ordering of fields.
-
-String trace = "";
-
-int E(int i) {
- trace = trace.concat("$i-");
- return i;
-}
-
-class A {
- var j; // Names are in reverse order to detect sorting by name...
- var i = 0; // Initialized odd/even to detect these inits affecting order.
- var h;
- var g = 0;
- var f;
- var e = 0;
- var d;
- var c = 0;
- var b;
- var a = 0;
-
- A()
- : a = E(1), // Initializations in different order to decls. Ascending...
- b = E(2),
- c = E(3),
-
- f = E(4), // Descending to be perverse...
- e = E(5),
- d = E(6),
-
- g = E(7), // Ascending again.
- h = E(8),
- i = E(9),
- j = E(10) {
-
- Expect.equals(1, a);
- Expect.equals(2, b);
- Expect.equals(3, c);
-
- Expect.equals(4, f);
- Expect.equals(5, e);
- Expect.equals(6, d);
-
- Expect.equals(7, g);
- Expect.equals(8, h);
- Expect.equals(9, i);
- Expect.equals(10, j);
- }
-}
-
-main() {
- var x = new A();
- Expect.equals('1-2-3-4-5-6-7-8-9-10-', trace);
-}
« no previous file with comments | « tests/language/src/Constructor6Test.dart ('k') | tests/language/src/ConstructorBodyTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698