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

Unified Diff: tests/language/src/ConstListTest.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/ConstInitTest.dart ('k') | tests/language/src/ConstNamedTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/ConstListTest.dart
diff --git a/tests/language/src/ConstListTest.dart b/tests/language/src/ConstListTest.dart
deleted file mode 100644
index e05f7a779bf56cf4e284fb9405634d5bd59b01fc..0000000000000000000000000000000000000000
--- a/tests/language/src/ConstListTest.dart
+++ /dev/null
@@ -1,40 +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.
-
-class ConstListTest {
-
- static testMain() {
- List fixedList = new List(4);
- List fixedList2 = new List(4);
- List growableList = new List();
- List growableList2 = new List();
- for (int i = 0; i < 4; i++) {
- fixedList[i] = i;
- fixedList2[i] = i;
- growableList.add(i);
- growableList2.add(i);
- }
- Expect.equals(true, growableList == growableList);
- Expect.equals(false, growableList == growableList2);
- Expect.equals(true, fixedList == fixedList);
- Expect.equals(false, fixedList == fixedList2);
- Expect.equals(false, fixedList == growableList);
- growableList.add(4);
- Expect.equals(false, fixedList == growableList);
- Expect.equals(4, growableList.removeLast());
- Expect.equals(false, fixedList == growableList);
- fixedList[3] = 0;
- Expect.equals(false, fixedList == growableList);
- var a = [1, 2, 3.1];
- var b = [1, 2, 3.1];
- Expect.equals(false, a == b);
- a = const [1, 2, 3.1];
- b = const [1, 2, 3.1];
- Expect.equals(true, a == b);
- }
-}
-
-main() {
- ConstListTest.testMain();
-}
« no previous file with comments | « tests/language/src/ConstInitTest.dart ('k') | tests/language/src/ConstNamedTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698