| Index: tests/corelib/src/ListImplementation2VMTest.dart
|
| ===================================================================
|
| --- tests/corelib/src/ListImplementation2VMTest.dart (revision 505)
|
| +++ tests/corelib/src/ListImplementation2VMTest.dart (working copy)
|
| @@ -3,14 +3,14 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
| // Test GrowableArray.dart.
|
|
|
| -#library("GrowableObjectArray2Test.dart");
|
| +#library("ListImplementation2Test.dart");
|
| #import("dart:coreimpl");
|
|
|
| -class GrowableObjectArray2Test {
|
| +class ListImplementation2Test {
|
| static testMain() {
|
| - var g = new GrowableObjectArray();
|
| + var g = new ListImplementation();
|
| Expect.equals(true, g is List);
|
| - Expect.equals(true, g is GrowableObjectArray);
|
| + Expect.equals(true, g is ListImplementation);
|
| Expect.equals(true, g.isEmpty());
|
| for (int i = 0; i < 100; i++) {
|
| g.add(1);
|
| @@ -23,7 +23,7 @@
|
| Expect.equals(1001, g.removeLast());
|
| Expect.equals(100, g.length);
|
|
|
| - var f = new GrowableObjectArray();
|
| + var f = new ListImplementation();
|
| var list = new List(20);
|
| for (int i = 0; i < list.length; i++) {
|
| f.add(2);
|
| @@ -45,7 +45,7 @@
|
| Expect.equals(true, exceptionCaught);
|
|
|
| List<int> plainArray = [4, 3, 9, 12, -4, 9];
|
| - GrowableObjectArray h = new GrowableObjectArray.withCapacity(4);
|
| + ListImplementation h = new ListImplementation.withCapacity(4);
|
| plainArray.forEach((elem) { h.add(elem); });
|
| int compare(a, b) {
|
| if (a < b) return -1;
|
| @@ -70,5 +70,5 @@
|
| }
|
|
|
| main() {
|
| - GrowableObjectArray2Test.testMain();
|
| + ListImplementation2Test.testMain();
|
| }
|
|
|